]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: fix dp link rate selection (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Dec 2015 15:23:34 +0000 (10:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Dec 2015 21:39:02 +0000 (16:39 -0500)
commit1418123a4ee8f15cd287d56cd30400a356007044
tree5d54ecac3886f9f3eee6444b71b22220c75a601a
parent3dc02cd142eb88e514bda013c5802db89a267001
drm/radeon: 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/radeon/atombios_dp.c
drivers/gpu/drm/radeon/radeon_dp_mst.c
drivers/gpu/drm/radeon/radeon_mode.h