Skip to content

Commit

Permalink
dmaengine: omap-dma: Add memory barrier to dma_resume path
Browse files Browse the repository at this point in the history
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 <peter.ujfalusi@ti.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
  • Loading branch information
Peter Ujfalusi authored and Vinod Koul committed Sep 23, 2014
1 parent 9e82bf0 commit b3d09da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/dma/omap-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,8 @@ static int omap_dma_resume(struct omap_chan *c)
return -EINVAL;

if (c->paused) {
mb();

omap_dma_start(c, c->desc);
c->paused = false;
}
Expand Down

0 comments on commit b3d09da

Please sign in to comment.