]> git.karo-electronics.de Git - linux-beck.git/commit
USB: ehci: tegra: Align DMA transfers to 32 bytes
authorRobert Morell <rmorell@nvidia.com>
Thu, 10 Mar 2011 00:28:57 +0000 (16:28 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Mar 2011 22:22:12 +0000 (14:22 -0800)
commitfbf9865c6d96f4a131092d2018056e86113e5cea
treeee9c5f63d8709bf50817a730360464031761fa27
parent79ad3b5add4a683af02d1b51ccb699d1b01f1fbf
USB: ehci: tegra: Align DMA transfers to 32 bytes

The Tegra2 USB controller doesn't properly deal with misaligned DMA
buffers, causing corruption.  This is especially prevalent with USB
network adapters, where skbuff alignment is often in the middle of a
4-byte dword.

To avoid this, allocate a temporary buffer for the DMA if the provided
buffer isn't sufficiently aligned.

Signed-off-by: Robert Morell <rmorell@nvidia.com>
Signed-off-by: Benoit Goby <benoit@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-tegra.c