]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: Don't retry 7 times in radeon_dp_dpcd()
authorLyude <cpaul@redhat.com>
Sat, 6 Aug 2016 00:30:35 +0000 (20:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Aug 2016 17:28:26 +0000 (13:28 -0400)
commit513e25a833a93baa2597f195a1d4287737fba3d8
treeb978ad74b54c4a7b3d5977db6cc917230f405636
parent0e22cc07467acef0a30d4aa1471f2969987ed1e9
drm/radeon: Don't retry 7 times in radeon_dp_dpcd()

When this code was written, we didn't retry DP aux transactions on any
error, which required retrying important transactions like this in
individual drivers. Since that's no longer the case, retrying here is
not necessary. As well, we retry any aux transaction on any error 32
times. 7 * 32 = 224, which means this loop causes us to retry grabbing
the dpcd 224 times. This is definitely far more then we actually need to
do.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Lyude <cpaul@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/atombios_dp.c