]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Don't retry 7 times in amdgpu_atombios_dp_get_dpcd()
authorLyude <cpaul@redhat.com>
Sat, 6 Aug 2016 00:30:37 +0000 (20:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Aug 2016 17:28:39 +0000 (13:28 -0400)
commit5cb5817b17bf2a287df3a24f104a50322e3d56e4
treeea6de4fbbf85bea561b856c349f5593adb148343
parent3dabe33f8b66b82399838601c757241de1bcc6cf
drm/amdgpu: Don't retry 7 times in amdgpu_atombios_dp_get_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/amd/amdgpu/atombios_dp.c