drm/amd/display: Fixed if statement parameters to add a delay on disconnect
authorJohn Barberiz <[email protected]>
Tue, 23 Jan 2018 16:47:15 +0000 (11:47 -0500)
committerAlex Deucher <[email protected]>
Mon, 19 Feb 2018 19:19:33 +0000 (14:19 -0500)
Signed-off-by: John Barberiz <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/display/dc/core/dc_link.c

index 629aa042f9ddee250d90640ecf38c3ae1c555796..5f7896db6dd05d844c44b17fd3dfab6d68fce0bc 100644 (file)
@@ -699,8 +699,8 @@ bool dc_link_detect(struct dc_link *link, enum dc_detect_reason reason)
                }
 
                /* Add delay for certain monitors */
-               if (sink->edid_caps.panel_patch.disconnect_delay > 0 &&
-                               SIGNAL_TYPE_HDMI_TYPE_A)
+               if (sink->edid_caps.panel_patch.disconnect_delay > 0
+                               && sink->sink_signal == SIGNAL_TYPE_HDMI_TYPE_A)
                        program_hpd_filter(link, sink->edid_caps.panel_patch.disconnect_delay);
                else
                        program_hpd_filter(link, DEFAULT_DELAY_DISCONNECT);