UPSTREAM: 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.

BUG=chrome-os-partner:60197
TEST=build and boot caroline

Signed-off-by: Lyude <cpaul@redhat.com>
Reviewed-by: Christian Knig <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
(cherry picked from commit 29f21e0491819d05d28b4a1f7a5b7e68f802c60b)
Signed-off-by: Dominik Behr <dbehr@chromium.org>

Change-Id: Id55ff6836144fd62deb7b0baad149ab5bdbd3afd
Reviewed-on: https://chromium-review.googlesource.com/428436
Commit-Ready: Dominik Behr <dbehr@chromium.org>
Tested-by: Dominik Behr <dbehr@chromium.org>
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/433559
Reviewed-by: Dominik Behr <dbehr@chromium.org>
Commit-Queue: Ryan Lin <ryan.lin@intel.com>
Tested-by: Ryan Lin <ryan.lin@intel.com>
1 file changed