usb: musb: cppi41: Detect aborted transfers in cppi41_dma_callback()
authorAlexandre Bailon <abailon@baylibre.com>
Tue, 7 Feb 2017 04:53:52 +0000 (22:53 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2017 12:35:05 +0000 (13:35 +0100)
commited232c0b4bebcb7325fbf38a21bcf4f6a8c0153f
tree4f86b9056cdab059cc9574a03bcc100b426257b2
parent050dc900cfe88cc890d145c02e1a492915d93cce
usb: musb: cppi41: Detect aborted transfers in cppi41_dma_callback()

Update cppi41_dma_callback() to detect an aborted transfer.
This was not required before because cppi41_dma_callback() was only
invoked on transfer completion.
In order to make CPPI 4.1 driver more generic, cppi41_dma_callback()
will be invoked after a transfer abort in order to let the MUSB driver
perform some action such as acknowledge the interrupt that may be fired
during a 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/musb_cppi41.c