]> git.karo-electronics.de Git - linux-beck.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)
commitac1a4f2caf7b071a56ca10a48673a37b762f7ac7
treee1ddf5411c8b0607f69443fb9e093b1aa08a153c
parent3abc48ae35ef7cff845a8d57322c19cc153fb482
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