usb: musb: cppi41: improve rx channel abort routine
authorBin Liu <b-liu@ti.com>
Mon, 26 Jan 2015 22:22:07 +0000 (16:22 -0600)
committerFelipe Balbi <balbi@ti.com>
Tue, 27 Jan 2015 15:34:58 +0000 (09:34 -0600)
commitcb83df77f3ec151d68a1b6be957207e6fc7b7f50
treed764ade173dcac614583c1ad6742b1a208601117
parent0149b07a9e28b0d8bd2fc1c238ffe7d530c2673f
usb: musb: cppi41: improve rx channel abort routine

1. set AUTOREQ to NONE at the beginning of teardown;

2. add delay for dma pipeline to drain;

3. Do not set USB_TDOWN bit for RX teardown.

  The CPPI hw has an issue that when tearing down a RX channel, if
  another RX channel is receiving data, the CPPI will lockup.

  To workaround the issue, do not set the CPPI TD bit. The steps before
  this point ensures the CPPI channel will be torn down properly.

Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_cppi41.c