]> git.baikalelectronics.ru Git - kernel.git/commit
usb: Fix tusb6010 for DMA API
authorTony Lindgren <tony@atomide.com>
Sat, 24 Apr 2010 00:41:15 +0000 (17:41 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Apr 2010 16:25:09 +0000 (09:25 -0700)
commit8f5d78c14ecbb42a396656011028e151d9306879
treebe80fb2cb4cc2c236f37ca210f524ea54dec8d96
parent1dc0ffa4867b8dde51571e3f17447fdd2bd0a965
usb: Fix tusb6010 for DMA API

Commit 0ca66dd1bdfa8a7973cd7730b8f0ae82ddf50eb2 introduced
DMA buffer ownership. Fix tusb6010 accordingly. To compile,
also dummy musb_platform_save and restore functions need to
be added.

Also change the order of musb_read_fifo() to happen after
dma_cache_maint to have the DMA operations completed before
moving the remaining unaligned bytes with PIO. The DMA
access and PIO touch different areas of the FIFO, so this
change only makes the code a bit easier to follow.

Tested on n810 and g_ether with variable size ping test.
The test seems to fail for some ping sizes, but that seems to
be a different problem.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/tusb6010.c
drivers/usb/musb/tusb6010_omap.c