diff options
author | Bin Liu <b-liu@ti.com> | 2015-08-24 15:28:37 -0500 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2015-10-28 16:38:27 +0100 |
commit | 7fd04a4fb26f351d01fa84485aa12204624be7fa (patch) | |
tree | ad1ba91d996a9c95e647743beae8e3417c899751 | |
parent | c387e4dad5ccd015a5185cfcfb103a20f9624321 (diff) |
usb: musb: fix cppi channel teardown for isoch transfer
commit b431ba8803666e56c1d178a421b3cbc36e8d3d33 upstream.
After a few iterations of start/stop UVC camera streaming, the streaming
stops.
This patch adds 250us delay in the cppi channel abort path to let cppi
drain properly.
Using 50us delay seems to be too aggressive, some webcams are still
broken. 250us is the original value used in TI 3.2 kernel.
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Cc: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
-rw-r--r-- | drivers/usb/musb/musb_cppi41.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_cppi41.c b/drivers/usb/musb/musb_cppi41.c index 1c9c626248fd..2ed1695ff5ad 100644 --- a/drivers/usb/musb/musb_cppi41.c +++ b/drivers/usb/musb/musb_cppi41.c @@ -509,6 +509,9 @@ static int cppi41_dma_channel_abort(struct dma_channel *channel) } else { cppi41_set_autoreq_mode(cppi41_channel, EP_MODE_AUTOREQ_NONE); + /* delay to drain to cppi dma pipeline for isoch */ + udelay(250); + csr = musb_readw(epio, MUSB_RXCSR); csr &= ~(MUSB_RXCSR_H_REQPKT | MUSB_RXCSR_DMAENAB); musb_writew(epio, MUSB_RXCSR, csr); |