aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Barberiz <[email protected]>2018-01-23 11:47:15 -0500
committerAlex Deucher <[email protected]>2018-02-19 14:19:33 -0500
commite14af1dd747d1132ab1006fea6db0498a613d50c (patch)
tree92bd879a3b909691663c9b0fe0b3e379a0a9ac2b
parentcdb39798082cde564beeab0ca47a469254122ccd (diff)
drm/amd/display: Fixed if statement parameters to add a delay on disconnect
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]>
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc_link.c4
1 files changed, 2 insertions, 2 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 629aa042f9dd..5f7896db6dd0 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
@@ -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);