USB: ehci: tegra: Align DMA transfers to 32 bytes
authorRobert Morell <rmorell@nvidia.com>
Thu, 27 Jan 2011 03:06:49 +0000 (19:06 -0800)
committerBenoit Goby <benoit@android.com>
Tue, 8 Feb 2011 23:18:24 +0000 (15:18 -0800)
commitda0fbc7f9b0141e7f8665b142509da681f60c9ea
treeabb9e4936627842156a89c3b5a3a6cccd111f43f
parenta0d7774b258a555750ced45ce9afe21aac63a9f0
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>
drivers/usb/host/ehci-tegra.c