drm/radeon: fix endian issues with DP handling (v3)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2013 15:13:53 +0000 (11:13 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Aug 2013 08:51:05 +0000 (16:51 +0800)
commitf57cb1a2d0e5d88484616285a91560a6f5555e68
tree208a20c4d2e89d30405e1da8aca5446a509055bd
parentf92c99de9db693786ffc0f44503eece2bc6a237a
drm/radeon: fix endian issues with DP handling (v3)

commit 34be8c9af7b8728465963740fc11136ae90dfc36 upstream.

The atom interpreter expects data in LE format, so
swap the message buffer as apprioriate.

v2: properly handle non-dw aligned byte counts.
v3: properly handle remainder

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Dong He <hedonghust@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/atombios_dp.c