Skip to content
Commit fbf9865c authored by Robert Morell's avatar Robert Morell Committed by Greg Kroah-Hartman
Browse files

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: default avatarRobert Morell <rmorell@nvidia.com>
Signed-off-by: default avatarBenoit Goby <benoit@android.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 79ad3b5a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment