dmaengine: ste_dma40: add a done queue for completed descriptors
authorFabio Baltieri <fabio.baltieri@linaro.org>
Thu, 13 Dec 2012 12:46:16 +0000 (13:46 +0100)
committerFabio Baltieri <fabio.baltieri@linaro.org>
Mon, 14 Jan 2013 09:50:53 +0000 (10:50 +0100)
commit4226dd86b10ac44f8e98599f6a73e3a1b929f8eb
tree236280805bf3db2b81911303e4b429f7bda79368
parent3cb645dc85a050c8a6b5c2cbdcbe4b8f39dba1b8
dmaengine: ste_dma40: add a done queue for completed descriptors

This is to keep the active queue for only those transfers which are
actually active in the hardware.  Descriptors will be moved to the done
queue after they are completed in the hardware (interrupt handler) but
before all the cleanup work has been completed (tasklet).

Mostly based on a previous patch by Rabin Vincent.

Cc: Rabin Vincent <rabin.vincent@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
drivers/dma/ste_dma40.c