drm/amd/display: Fix active dongle hotplug
authorRoman Li <[email protected]>
Fri, 9 Feb 2018 21:57:38 +0000 (16:57 -0500)
committerAlex Deucher <[email protected]>
Mon, 5 Mar 2018 20:46:03 +0000 (15:46 -0500)
Clean fake sink flag after detecting link on downstream port.
Fixing display light-up after  "hot-unplug&plug again" downstream
of an active dongle.

Signed-off-by: Roman Li <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 862835dc054e1ce66c76f114c5c9ccc2cf098d38..bf7c378818fcad3014ad6f66757024bfee537120 100644 (file)
@@ -1037,6 +1037,10 @@ static void handle_hpd_rx_irq(void *param)
                        !is_mst_root_connector) {
                /* Downstream Port status changed. */
                if (dc_link_detect(dc_link, DETECT_REASON_HPDRX)) {
+
+                       if (aconnector->fake_enable)
+                               aconnector->fake_enable = false;
+
                        amdgpu_dm_update_connector_after_detect(aconnector);