usb: musb: fix cppi channel teardown for isoch transfer
authorBin Liu <b-liu@ti.com>
Mon, 24 Aug 2015 20:28:37 +0000 (15:28 -0500)
committerSasha Levin <sasha.levin@oracle.com>
Thu, 3 Dec 2015 04:24:46 +0000 (23:24 -0500)
commit111bbf69b6dde18e07c82803012bcd798f21de06
treed8094241a9828293f06d318c316af1de77d83e9c
parent7059616548ef5443e3cf70fa3befdc3d4f9c2da1
usb: musb: fix cppi channel teardown for isoch transfer

[ Upstream commit b431ba8803666e56c1d178a421b3cbc36e8d3d33 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/usb/musb/musb_cppi41.c