]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf939e53902bb7fc2acd7c5e9385740e380be254f
treed764ade173dcac614583c1ad6742b1a208601117
parentd4b5c63d3396e38832717251508b6c989585387f
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