• Bin Liu's avatar
    usb: musb: cppi41: improve rx channel abort routine · cb83df77
    Bin Liu authored
    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: default avatarBin Liu <b-liu@ti.com>
    Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
    cb83df77
musb_cppi41.c 18.9 KB