linux/drivers/usb/musb
Yauheni Kaliuta 4858f06e7d usb: musb: gadget: clear TXPKTRDY flag when set FLUSHFIFO
Fixes mis-use of MUSB's hardware feature where it won't
flush FIFOs when TXPKTRDY flag was set before and we are
flushing setting both FLUSHFIFO and TXPKTRDY.

In other words, we need to ensure that when we try to
flush FIFOs, we don't accidentaly set TXPKTRDY bit too
due to a read-back of the register.

The MUSB Programming Guide says "May be set simultaneously
with TxPktRdy to abort the packet that is currently being
loaded into the FIFO". This is a situation where TXPKTRDY
hasn't been set yet, but some data already loaded into the
fifo. It looks, that if TXPKTRDY has been set before, and
there is no loading in progress, but we set FLUSHFIFO with
the TXPKTRDY, controller tries to use the same logic to
abort loading and as the result just does nothing (because
there is no packet been loaded currently)

Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@nokia.com>

[ balbi@ti.com : fixed one whitespace git complained about
		 improved the commit log slightly ]

Signed-off-by: Felipe Balbi <balbi@ti.com>
2011-06-09 12:01:03 +03:00
..
Kconfig usb: musb: ux500: add configuration and build options for ux500 dma 2011-05-18 14:43:16 +03:00
Makefile usb: musb: ux500: add configuration and build options for ux500 dma 2011-05-18 14:43:16 +03:00
am35x.c
blackfin.c usb: musb: fix compile error 2011-05-18 14:43:12 +03:00
blackfin.h
cppi_dma.c
cppi_dma.h
da8xx.c
davinci.c
davinci.h
musb_core.c musb: fix prefetch build failure 2011-06-06 16:02:31 -07:00
musb_core.h
musb_debug.h
musb_debugfs.c
musb_dma.h
musb_gadget.c usb: musb: gadget: clear TXPKTRDY flag when set FLUSHFIFO 2011-06-09 12:01:03 +03:00
musb_gadget.h
musb_gadget_ep0.c
musb_host.c usb: musb: host: compare status for negative error values 2011-06-09 12:01:03 +03:00
musb_host.h
musb_io.h
musb_regs.h
musb_virthub.c
musbhsdma.c
musbhsdma.h
omap2430.c
omap2430.h
tusb6010.c usb: musb: fix compile error 2011-05-18 14:43:12 +03:00
tusb6010.h
tusb6010_omap.c
ux500.c
ux500_dma.c usb: musb: ux500: add dma glue layer for ux500 2011-05-18 14:43:15 +03:00