From 0a5c357a85e99eae6b1914272bc2cf8f49cf511b Mon Sep 17 00:00:00 2001 From: Ayyappa Chandolu Date: Fri, 12 May 2017 17:05:55 +0530 Subject: [PATCH] drm/amd/display: Fix ASSR enablement on DP to EDP converter ASSR mode is not enable when we connect eDP panel via DP to eDP converter. connector_signal is coming as SIGNAL_TYPE_DISPLAY_PORT. Present code ignoring panel_mode_edp for SIGNAL_TYPE_DISPLAY_PORT. Added checking panel_mode_edp for all signals. Signed-off-by: Ayyappa Chandolu Reviewed-by: Tony Cheng Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c index 316df150c1d9..4f46ff14fb69 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c @@ -203,10 +203,10 @@ enum dp_panel_mode dp_get_panel_mode(struct core_link *link) default: break; } + } - if (link->dpcd_caps.panel_mode_edp) { - return DP_PANEL_MODE_EDP; - } + if (link->dpcd_caps.panel_mode_edp) { + return DP_PANEL_MODE_EDP; } return DP_PANEL_MODE_DEFAULT; -- 2.30.2