public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/1] ARM: mxs-dma: reset after disable channel
@ 2011-07-19  4:09 Dong Aisheng
  2011-07-19  4:02 ` Shawn Guo
  2011-07-25 14:25 ` Vinod Koul
  0 siblings, 2 replies; 8+ messages in thread
From: Dong Aisheng @ 2011-07-19  4:09 UTC (permalink / raw)
  To: linux-arm-kernel

We met some channels in abnormal state after disable.
Reset it to get a clean state.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Shawn Guo <shawn.guo@linaro.org>
---
 drivers/dma/mxs-dma.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c
index 88aad4f..5a24010 100644
--- a/drivers/dma/mxs-dma.c
+++ b/drivers/dma/mxs-dma.c
@@ -535,6 +535,7 @@ static int mxs_dma_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd,
 	switch (cmd) {
 	case DMA_TERMINATE_ALL:
 		mxs_dma_disable_chan(mxs_chan);
+		mxs_dma_reset_chan(mxs_chan);
 		break;
 	case DMA_PAUSE:
 		mxs_dma_pause_chan(mxs_chan);
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-07-25 14:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-19  4:09 [PATCH 1/1] ARM: mxs-dma: reset after disable channel Dong Aisheng
2011-07-19  4:02 ` Shawn Guo
2011-07-19  8:21   ` Wolfram Sang
2011-07-19  8:45     ` Shawn Guo
2011-07-19  9:13       ` Wolfram Sang
2011-07-19  9:20       ` Dong Aisheng-B29396
2011-07-19 13:44   ` Koul, Vinod
2011-07-25 14:25 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox