From: Dong Aisheng Date: Tue, 19 Jul 2011 04:09:56 +0000 (+0800) Subject: ARM: mxs-dma: reset after disable channel X-Git-Tag: next-20110727~33^2~11 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a62bae98a93e6c4d53b1e6c20715e94b4a5aca3c;p=karo-tx-linux.git ARM: mxs-dma: reset after disable channel We met some channels in abnormal state after disable. Reset it to get a clean state. Signed-off-by: Dong Aisheng Cc: Vinod Koul Cc: Shawn Guo Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c index f22a237b7dd6..be641cbd36fc 100644 --- a/drivers/dma/mxs-dma.c +++ b/drivers/dma/mxs-dma.c @@ -537,6 +537,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);