usb: musb: Fix cppi_channel_abort() function to handle Tx abort correctly
commit565969237ab6e73ce7192684d00d5b890ee308fa
authorSwaminathan S <swami.iyer@ti.com>
Mon, 28 Dec 2009 11:40:38 +0000 (28 13:40 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:53:46 +0000 (2 14:53 -0800)
tree8abd0d3af156b0593b3dc6e0b91e1e89f8bb3a44
parent5274dab6cb99c529b2e7f16bbc8ff9a79be46e7f
usb: musb: Fix cppi_channel_abort() function to handle Tx abort correctly

This patch fixes the Tx abort/teardown logic. We now wait for the teardown
completion interrupt and acknowledge the same by setting the tx_complete
register to 0.

This change is needed to ensure that abort processing works on DM365 platform.
Without this change after completion of abort processing the system is
overwhelmed with continuous stream of abort interrupts.

This change has been tested on all CPPI3.x platforms (DM644x, DM646x, DM35x,
DM36x).

Signed-off-by: Swaminathan S <swami.iyer@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/cppi_dma.c