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:25:55 +0000 (16:25 +0800)
commit03223102914853b4b9421c60f6b562c6eb5dafaf
treeb2201c9568fcb4892c55cd7fa57a773110042961
parent0990072e0fd7d50e08b9ea77e77ff936ae41705c
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