diff options
author | Jassi Brar <jassi.brar@samsung.com> | 2009-11-05 04:44:39 (GMT) |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-11-09 23:51:19 (GMT) |
commit | 336b1a3181d81db85c0af3d0c18fe0a04b4d5126 (patch) | |
tree | 2483475f8c9bacec45fc79ff168e4443486c3dc7 /arch | |
parent | 9b08284bf22f438baa2d6b68015ff17ddb431a61 (diff) | |
download | linux-fsl-qoriq-336b1a3181d81db85c0af3d0c18fe0a04b4d5126.tar.xz |
ARM: S3C64XX: DMA: Free node for non-circular queues
We need to free the buff and lli nodes if the buffer queue is
not CIRCULAR.
Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/plat-s3c64xx/dma.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c64xx/dma.c b/arch/arm/plat-s3c64xx/dma.c index 7d12eb8f..d554b93 100644 --- a/arch/arm/plat-s3c64xx/dma.c +++ b/arch/arm/plat-s3c64xx/dma.c @@ -610,6 +610,12 @@ static irqreturn_t s3c64xx_dma_irq(int irq, void *pw) s3c64xx_dma_bufffdone(chan, buff, res); + /* Free the node and update curr, if non-circular queue */ + if (!(chan->flags & S3C2410_DMAF_CIRCULAR)) { + chan->curr = buff->next; + s3c64xx_dma_freebuff(buff); + } + /* Update 'next' */ buff = chan->next; if (chan->next == chan->end) { |