提交 b3d09da7 编写于 作者: P Peter Ujfalusi 提交者: Vinod Koul

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: NPeter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 9e82bf01
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册