aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0633-drm-amd-dal-change-in-MST-connector-detection.patch
blob: 5487224121d9e6a86f6083303c28045d5d57626b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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