drm/radeon/kms: fix regression in DP aux defer handling
authorAlex Deucher <[email protected]>
Mon, 3 Oct 2011 13:13:45 +0000 (09:13 -0400)
committerDave Airlie <[email protected]>
Mon, 3 Oct 2011 17:37:30 +0000 (18:37 +0100)
commit109bc10d30f33e84f1d7289f0039e0c858ade82f
treea7f787307d22b00ccf1a05c8b1ba1da77976c484
parent9b13776977d45505469edc6decc93e9e3799afe2
drm/radeon/kms: fix regression in DP aux defer handling

An incorrect ordering in the error checking code lead
to DP aux defer being skipped in the aux native write
path.  Move the bytes transferred check (ret == 0)
below the defer check.

Tracked down by: Brad Campbell <[email protected]>

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=41121

Signed-off-by: Alex Deucher <[email protected]>
Cc: Brad Campbell <[email protected]>
Cc: [email protected]
Signed-off-by: Dave Airlie <[email protected]>
drivers/gpu/drm/radeon/atombios_dp.c