path: root/drivers/gpu
diff options
authorSamson Tam <>2020-08-13 10:50:21 -0400
committerAlex Deucher <>2020-08-26 15:27:51 -0400
commitefbde23a3b0164cef27fd394e7d548f46af5b51d (patch)
treec8d12cac1890404f06dec94994f090417252ab22 /drivers/gpu
parentb61f05622ace5b9498ae279cdfd1c9f0c1ce3f75 (diff)
drm/amd/display: Fix passive dongle mistaken as active dongle in EDID emulation
[Why] dongle_type is set during dongle connection but for passive dongles, dongle_type is not set. If user starts with an active dongle and then switches to a passive dongle, it will still report as an active dongle. Trying to emulate the wrong connecter type results in display not lighting up. [How] Set dpcd_caps.dongle_type for passive dongles in detect_dp(). Signed-off-by: Samson Tam <> Reviewed-by: Joshua Aberback <> Acked-by: Eryk Brol <> Signed-off-by: Alex Deucher <>
Diffstat (limited to 'drivers/gpu')
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
index 405452b736e1..437d1a7a16fe 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
@@ -763,6 +763,7 @@ static bool detect_dp(struct dc_link *link,
sink_caps->signal = dp_passive_dongle_detection(link->ddc,
+ link->dpcd_caps.dongle_type = sink_caps->dongle_type;
return true;