summaryrefslogtreecommitdiffstats
path: root/drivers/dma/amba-pl08x.c
diff options
context:
space:
mode:
authorRussell King - ARM Linux2012-03-06 23:35:07 +0100
committerVinod Koul2012-03-13 07:07:01 +0100
commitf7fbce07c6ce26a25b4e0cb5f241c361fde87901 (patch)
tree66e6321b5ef49e18479ffeb1ed4fd5169e120f97 /drivers/dma/amba-pl08x.c
parentdmaengine: consolidate assignment of DMA cookies (diff)
downloadkernel-qcow2-linux-f7fbce07c6ce26a25b4e0cb5f241c361fde87901.tar.gz
kernel-qcow2-linux-f7fbce07c6ce26a25b4e0cb5f241c361fde87901.tar.xz
kernel-qcow2-linux-f7fbce07c6ce26a25b4e0cb5f241c361fde87901.zip
dmaengine: provide a common function for completing a dma descriptor
Provide a common function to do the cookie mechanics for completing a DMA descriptor. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Tested-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Jassi Brar <jassisinghbrar@gmail.com> [imx-sdma.c & mxs-dma.c] Tested-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma/amba-pl08x.c')
-rw-r--r--drivers/dma/amba-pl08x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index d8d3dc273f29..346327572cfb 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -1542,7 +1542,7 @@ static void pl08x_tasklet(unsigned long data)
if (txd) {
/* Update last completed */
- plchan->chan.completed_cookie = txd->tx.cookie;
+ dma_cookie_complete(&txd->tx);
}
/* If a new descriptor is queued, set it up plchan->at is NULL here */