From: Tony Cheng Date: Tue, 14 Mar 2017 05:40:53 +0000 (-0400) Subject: drm/amd/display: use extended receiver cap for dpcd ver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cc04bf7e4f87730a35b14056e23852e010f079ff;p=openwrt%2Fstaging%2Fblogic.git drm/amd/display: use extended receiver cap for dpcd ver Signed-off-by: Tony Cheng Acked-by: Harry Wentland Reviewed-by: Anthony Koo Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index 80002795adc2..282bb59ea2f3 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -2081,9 +2081,6 @@ static void retrieve_link_cap(struct core_link *link) dpcd_data, sizeof(dpcd_data)); - link->dpcd_caps.dpcd_rev.raw = - dpcd_data[DP_DPCD_REV - DP_DPCD_REV]; - { union training_aux_rd_interval aux_rd_interval; @@ -2099,6 +2096,9 @@ static void retrieve_link_cap(struct core_link *link) } } + link->dpcd_caps.dpcd_rev.raw = + dpcd_data[DP_DPCD_REV - DP_DPCD_REV]; + ds_port.byte = dpcd_data[DP_DOWNSTREAMPORT_PRESENT - DP_DPCD_REV];