usb: musb: implement (un)map_urb_for_dma hooks
authorRuslan Bilovol <ruslan.bilovol@ti.com>
Fri, 29 Mar 2013 17:15:21 +0000 (19:15 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 2 Apr 2013 08:42:49 +0000 (11:42 +0300)
commit8408fd1d83e39bf856d31a36b70bcc53527702fd
treeaede13a3701adefcb50f1587682630e4f682c9d2
parent2f1d57069338b14fcf4765ae2c25fc377da45b1f
usb: musb: implement (un)map_urb_for_dma hooks

MUSB controller cannot work in DMA mode with misaligned buffers,
switching in PIO mode.

HCD core has hooks that allow to override the default DMA
mapping and unmapping routines for host controllers that have
special DMA requirements, such as alignment constraints.

It is observed that work in PIO mode is slow and it's better
to align buffers properly before passing them to MUSB

This increased throughput 80->120 MBits/s over musb@omap4 with
USB Gigabit Ethernet adapter attached.

Some ideas are taken from ehci-tegra.c

Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_host.c