]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 12 Oct 2017 14:28:16 +0000 (15:28 +0100)
commit7dc5d81848092f2a7ceb252db83e1cf3e2f29bb7
treebc8360cbd7c6d4012e1d9e7b92999e80f84f276c
parente8a4f7cbb13068b7aaf358e3754d249c7a0b70f8
usb: musb: cppi41: improve rx channel abort routine

commit cb83df77f3ec151d68a1b6be957207e6fc7b7f50 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/musb/musb_cppi41.c