diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2014-09-16 15:45:56 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-09-23 08:52:54 -0400 |
commit | b3d09da7e1771decc6833d1fa662bf994948c8e6 (patch) | |
tree | c22b40698ca82124e706b83c7fff2d3d990dc4e2 /drivers/dma | |
parent | 9e82bf014195d6f0054982c463575cdce24292be (diff) |
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 <peter.ujfalusi@ti.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/omap-dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index 4cf7d9a950d7..c01ea505ee7c 100644 --- a/drivers/dma/omap-dma.c +++ b/drivers/dma/omap-dma.c | |||
@@ -1017,6 +1017,8 @@ static int omap_dma_resume(struct omap_chan *c) | |||
1017 | return -EINVAL; | 1017 | return -EINVAL; |
1018 | 1018 | ||
1019 | if (c->paused) { | 1019 | if (c->paused) { |
1020 | mb(); | ||
1021 | |||
1020 | omap_dma_start(c, c->desc); | 1022 | omap_dma_start(c, c->desc); |
1021 | c->paused = false; | 1023 | c->paused = false; |
1022 | } | 1024 | } |