]> git.karo-electronics.de Git - linux-beck.git/commit
drm/dp_helper: Print first error received on failure in drm_dp_dpcd_access()
authorLyude <cpaul@redhat.com>
Sat, 6 Aug 2016 00:30:33 +0000 (20:30 -0400)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 9 Aug 2016 16:23:44 +0000 (18:23 +0200)
commit29f21e0491819d05d28b4a1f7a5b7e68f802c60b
tree4d9eb36c704ad7e0edb04d2f143283d218ccebf0
parent27528c667a210845b35a1f49c810dba469bced52
drm/dp_helper: Print first error received on failure in drm_dp_dpcd_access()

Since we always retry in drm_dp_dpcd_access() regardless of the error,
we're going to make a lot of noise if the aux->transfer function prints
it's own errors (as is the case with radeon). If we can print the error
code here, this reduces the need for drivers to do this. So instead of
having to print "dp_aux_ch timed out" over 32 times we can just print
once.

Signed-off-by: Lyude <cpaul@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1470443443-27252-2-git-send-email-cpaul@redhat.com
drivers/gpu/drm/drm_dp_helper.c