OSDN Git Service

drm/amd/display: link_rate_set should index into table
authorAnthony Koo <Anthony.Koo@amd.com>
Fri, 25 Jan 2019 16:50:31 +0000 (11:50 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Feb 2019 18:30:21 +0000 (13:30 -0500)
commitde00d253bc85978c1a7d3be888d675488d18a5dd
tree9ac6daf2fdf8b9865f002a099bf3e051753b51cb
parent00fbeb4e2f9eda0ebd57eefdcf25e41958f98fa5
drm/amd/display: link_rate_set should index into table

[Why]
Current implementation that maps link_rate_set value to
actual link rate is incorrect.

[How]
Fix this implementation, such that link_rate_set indexes into
the supported_link_rate table.

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c