]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd705a2d79611259a780c1d1f60b4d9f18326605a
treeaede13a3701adefcb50f1587682630e4f682c9d2
parent6d7fe21a042fea85b4a1709a6cfd59973685ec26
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