From: Ruslan Bilovol Date: Fri, 29 Mar 2013 17:15:21 +0000 (+0200) Subject: usb: musb: implement (un)map_urb_for_dma hooks X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~135^2~63^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8408fd1d83e39bf856d31a36b70bcc53527702fd;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed