aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0633-drm-amd-dal-change-in-MST-connector-detection.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0633-drm-amd-dal-change-in-MST-connector-detection.patch')
-rw-r--r--common/recipes-kernel/linux/files/0633-drm-amd-dal-change-in-MST-connector-detection.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0633-drm-amd-dal-change-in-MST-connector-detection.patch b/common/recipes-kernel/linux/files/0633-drm-amd-dal-change-in-MST-connector-detection.patch
new file mode 100644
index 00000000..54872241
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0633-drm-amd-dal-change-in-MST-connector-detection.patch
@@ -0,0 +1,40 @@
+From 4961892bc6ef5703863922ed00a9901e5df8c862 Mon Sep 17 00:00:00 2001
+From: Mykola Lysenko <Mykola.Lysenko@amd.com>
+Date: Thu, 17 Dec 2015 19:32:45 +0800
+Subject: [PATCH 0633/1110] drm/amd/dal: change in MST connector detection
+
+Only report connector as connected when edid available on
+it. This will make sink available on connector in all
+cases.
+
+It also guarantees that we safe if any hotplug notifications
+come.
+
+Signed-off-by: Jordan Lazare <Jordan.Lazare@amd.com>
+Acked-by: Jordan Lazare <Jordan.Lazare@amd.com>
+---
+ drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_mst_types.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_mst_types.c b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_mst_types.c
+index 4704204..7ef2e60 100644
+--- a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_mst_types.c
++++ b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_mst_types.c
+@@ -79,6 +79,14 @@ dm_dp_mst_detect(struct drm_connector *connector, bool force)
+ aconnector->edid = NULL;
+ }
+
++ /*
++ * we do not want to make this connector connected until we have edid on
++ * it
++ */
++ if (status == connector_status_connected &&
++ !aconnector->port->cached_edid)
++ status = connector_status_disconnected;
++
+ return status;
+ }
+
+--
+2.7.4
+