dma: cppi41: start tear down only if channel is busy
authorGeorge Cherian <george.cherian@ti.com>
Thu, 27 Feb 2014 05:14:40 +0000 (10:44 +0530)
committerVinod Koul <vinod.koul@intel.com>
Tue, 11 Mar 2014 10:52:43 +0000 (16:22 +0530)
commit975faaeb9985af9774007277fdb36b3dc897f4c3
treeb9cdf451b48f25ad3752820463d0dc29f862b625
parentf967d104b661c25a9a396e42a1f8ebe3431adc23
dma: cppi41: start tear down only if channel is busy

Start the channel tear down only if the channel is busy, else just
bail out. In some cases its seen that by the time the tear down is
initiated the cppi completes the DMA, especially in ISOCH transfers.

Signed-off-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/cppi41.c