dmaengine: jz4740: Fix non-cyclic descriptor completion
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 7 Sep 2014 13:54:39 +0000 (15:54 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 11 Sep 2014 05:24:25 +0000 (10:54 +0530)
commitf498e064e0b97df910163533e78e2704ba0a9570
tree811c64f4245be8263f71bf3aeebf358c0a6b04eb
parent87c9c451101f84ca4ed2cd11b0e32b5b0b66cb8b
dmaengine: jz4740: Fix non-cyclic descriptor completion

We need to make sure to deqeueue the descriptor from the active list before
we call vchan_cookie_complete(). Also we need obviously only set chan->desc
to NULL after we stopped using it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dma-jz4740.c