]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68fd8638b81b5ffde0df1d4c2ab6f71d355bf5ef
tree236280805bf3db2b81911303e4b429f7bda79368
parentcfb762fae56d1147147da7af8493a2dcd24d541a
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