]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: VME: Ensure TSI148 link list descriptors are written big endian
authorMartyn Welch <martyn.welch@ge.com>
Thu, 22 Mar 2012 13:27:30 +0000 (13:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 17:37:06 +0000 (10:37 -0700)
commitdbd427e114b1cefc5863ecf6827459c5c67a8896
treee1ddf5411c8b0607f69443fb9e093b1aa08a153c
parent495466074d41ecfa853e55ec9f25e2398d154f0d
Staging: VME: Ensure TSI148 link list descriptors are written big endian

The DMA functionality fails to work on little endian processors, such as
found on x86 based platforms. The DMA engine copies the link list
descriptors from memory into big endian registers. On little endian systems
this results in the values being byte swapped. This patch uses standard
kernel functionality to ensure that the descriptors are stored in big
endian format.

Signed-off-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme/bridges/vme_tsi148.c
drivers/staging/vme/bridges/vme_tsi148.h