usb: musb: musb_cppi41: Workaround DMA stall issue during teardown
authorAlexandre Bailon <abailon@baylibre.com>
Mon, 17 Apr 2017 04:21:18 +0000 (23:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Apr 2017 14:48:26 +0000 (16:48 +0200)
commit593bc4622a98c172dbb939103aef917d1800a663
tree536382265b31a66d28d13dba2af10f8746af3c87
parentd6299b6efbf66c27d2d8cda009e6d49b53dc4cfe
usb: musb: musb_cppi41: Workaround DMA stall issue during teardown

The DMA may hang up if a teardown is initiated while an endpoint is still
active (Advisory 2.3.27 of DA8xx errata).
To workaround this issue, add a delay before to initiate the teardown.

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/da8xx.c
drivers/usb/musb/musb_core.h
drivers/usb/musb/musb_cppi41.c