]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5edfa234070454d3b07557573f17b7d883d186dc
tree94e3c28cc1e11448c74ed0f7be0a19af761f3c6d
parent549336b20be92d2ebea4f5d55862a6d9389d859d
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