aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/radeon/atombios_dp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c
index db42a670f995..5bf825dfaa09 100644
--- a/drivers/gpu/drm/radeon/atombios_dp.c
+++ b/drivers/gpu/drm/radeon/atombios_dp.c
@@ -623,10 +623,8 @@ static int radeon_dp_link_train_init(struct radeon_dp_link_train_info *dp_info)
623 drm_dp_dpcd_writeb(dp_info->aux, 623 drm_dp_dpcd_writeb(dp_info->aux,
624 DP_DOWNSPREAD_CTRL, 0); 624 DP_DOWNSPREAD_CTRL, 0);
625 625
626 if ((dp_info->connector->connector_type == DRM_MODE_CONNECTOR_eDP) && 626 if (dig->panel_mode == DP_PANEL_MODE_INTERNAL_DP2_MODE)
627 (dig->panel_mode == DP_PANEL_MODE_INTERNAL_DP2_MODE)) {
628 drm_dp_dpcd_writeb(dp_info->aux, DP_EDP_CONFIGURATION_SET, 1); 627 drm_dp_dpcd_writeb(dp_info->aux, DP_EDP_CONFIGURATION_SET, 1);
629 }
630 628
631 /* set the lane count on the sink */ 629 /* set the lane count on the sink */
632 tmp = dp_info->dp_lane_count; 630 tmp = dp_info->dp_lane_count;