]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix dp link rate selection (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Dec 2015 14:57:49 +0000 (09:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Dec 2015 21:38:51 +0000 (16:38 -0500)
commitb5f9157a61072a04ead7b3982bbca373e3fc105f
tree2fe4e2f7f046ab7db4d3b2b756f344185391d1ce
parent732975658ffc776f1866cf275d01a16697db2f18
drm/amdgpu: fix dp link rate selection (v2)

Need to properly handle the max link rate in the dpcd.
This prevents some cases where 5.4 Ghz is selected when
it shouldn't be.

v2: simplify logic, add array bounds check

Reviewed-by: Tom St Denis <tom.stdenis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/atombios_dp.c