USB: imx21-hcd accept arbitary transfer buffer alignement.
authorMartin Fuzzey <mfuzzey@gmail.com>
Thu, 30 Sep 2010 22:21:59 +0000 (00:21 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:22:03 +0000 (10:22 -0700)
commitd0cc3d4100e829d726d7c0fbf5b7b8d2146f60ba
tree94e3c28cc1e11448c74ed0f7be0a19af761f3c6d
parent1dae423dd9b247b048eda00cb598c755e5933213
USB: imx21-hcd accept arbitary transfer buffer alignement.

The hardware can only do DMA to 4 byte aligned addresses.
When this requirement is not met use PIO or a bounce buffer.

PIO is used when the buffer is small enough to directly
use the hardware data memory (2*maxpacket).

A bounce buffer is used for larger transfers.

Signed-off-by: Martin Fuzzey <mfuzzey@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/imx21-hcd.c
drivers/usb/host/imx21-hcd.h