Skip to content

Commit b3d09da

Browse files
Peter UjfalusiVinod Koul
authored andcommitted
dmaengine: omap-dma: Add memory barrier to dma_resume path
Add mb() call to resume path to ensure the necessary barrier. Resume can happen after waking up from suspend for example. Signed-off-by: Peter Ujfalusi <[email protected]> Acked-by: Russell King <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
1 parent 9e82bf0 commit b3d09da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/dma/omap-dma.c

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

10191019
if (c->paused) {
1020+
mb();
1021+
10201022
omap_dma_start(c, c->desc);
10211023
c->paused = false;
10221024
}

0 commit comments

Comments
 (0)