]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: check for dp rev before reading lttpr regs
authorabdoulaye berthe <abdoulaye.berthe@amd.com>
Wed, 18 Sep 2019 15:57:47 +0000 (11:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Nov 2019 20:29:43 +0000 (15:29 -0500)
commit11adfffb394df97830a89e5156313a38313acb47
tree021e753ea4f39dab37a5d92ce8b46c1ac2fc2901
parent96ead06505457581122e92d1b9a31a200f2300fa
drm/amd/display: check for dp rev before reading lttpr regs

[Why]
LTTPR was introduced after DP1.2. Reading LTTPR registers 0xFXXXX
on some DP 1.2 display is causing an unexpected behavior.

[How]
Make sure that we don't read any lttpr registers on 1.2 displays.

Signed-off-by: abdoulaye berthe <abdoulaye.berthe@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c