blob: 46ba84f57b573133bab908ff0ef85cb8cbc13ce3 (
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
41
|
From d9a3ca6816f486312fee0a7639a1334b64463dd9 Mon Sep 17 00:00:00 2001
From: Yongqiang Sun <yongqiang.sun@amd.com>
Date: Tue, 8 Mar 2016 15:18:18 -0500
Subject: [PATCH 0886/1110] drm/amd/dal: Fixed active dongle not light up
issue.
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/dal/dc/core/dc_link.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc_link.c b/drivers/gpu/drm/amd/dal/dc/core/dc_link.c
index 68a167b..0232956 100644
--- a/drivers/gpu/drm/amd/dal/dc/core/dc_link.c
+++ b/drivers/gpu/drm/amd/dal/dc/core/dc_link.c
@@ -480,8 +480,8 @@ static void detect_dp(
/* DP active dongles */
if (is_dp_active_dongle(link)) {
+ link->public.type = dc_connection_active_dongle;
if (!link->dpcd_caps.sink_count.bits.SINK_COUNT) {
- link->public.type = dc_connection_none;
/*
* active dongle unplug processing for short irq
*/
@@ -607,7 +607,9 @@ bool dc_link_detect(const struct dc_link *dc_link, bool boot)
&audio_support, boot);
/* Active dongle downstream unplug */
- if (link->public.type == dc_connection_none)
+ if (link->public.type == dc_connection_active_dongle
+ && link->dpcd_caps.sink_count.
+ bits.SINK_COUNT == 0)
return true;
if (link->public.type == dc_connection_mst_branch) {
--
2.7.4
|