[PATCH 20/27] drm/amd/display: Fixed if statement parameters to add a delay on disconnect
Harry Wentland
harry.wentland at amd.com
Wed Jan 31 15:59:19 UTC 2018
From: John Barberiz <jbarberi at amd.com>
Signed-off-by: John Barberiz <jbarberi at amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng at amd.com>
Acked-by: Harry Wentland <harry.wentland at amd.com>
---
drivers/gpu/drm/amd/display/dc/core/dc_link.c | 4 ++--
1 file 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);
--
2.14.1
More information about the amd-gfx
mailing list