Skip to content

Commit 4092dc8

Browse files
committed
Merge branch 'fixes' of git://git.infradead.org/users/vkoul/slave-dma
Pull slave-dmaengine fixes from Vinod Koul: "Two small fixes for omap dmaengine driver which fixes cyclic suspend and resume" * 'fixes' of git://git.infradead.org/users/vkoul/slave-dma: dmaengine: omap-dma: Restore the CLINK_CTRL in resume path dmaengine: omap-dma: Add memory barrier to dma_resume path
2 parents 1e3827b + bfb6074 commit 4092dc8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/dma/omap-dma.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,11 @@ static int omap_dma_resume(struct omap_chan *c)
10171017
return -EINVAL;
10181018

10191019
if (c->paused) {
1020+
mb();
1021+
1022+
/* Restore channel link register */
1023+
omap_dma_chan_write(c, CLNK_CTRL, c->desc->clnk_ctrl);
1024+
10201025
omap_dma_start(c, c->desc);
10211026
c->paused = false;
10221027
}

0 commit comments

Comments
 (0)