drm/amd/display: Fix ASSR enablement on DP to EDP converter
authorAyyappa Chandolu <Ayyappa.Chandolu@amd.com>
Fri, 12 May 2017 11:35:55 +0000 (17:05 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:07:20 +0000 (18:07 -0400)
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 <Ayyappa.Chandolu@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c

index 316df150c1d99193a0d0a71c67ffc24591dda3ee..4f46ff14fb6976f6337290c2762dfe5815035d9e 100644 (file)
@@ -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;