From d9a3ca6816f486312fee0a7639a1334b64463dd9 Mon Sep 17 00:00:00 2001 From: Yongqiang Sun 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 Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- 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