drm/amd/display: use extended receiver cap for dpcd ver
authorTony Cheng <tony.cheng@amd.com>
Tue, 14 Mar 2017 05:40:53 +0000 (01:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:20:05 +0000 (17:20 -0400)
Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

index 80002795adc22d693b451fc67a6d3f245280f354..282bb59ea2f3fbf64c94fd2328329c8a2bc20a44 100644 (file)
@@ -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];