From: Dong Aisheng Date: Tue, 19 Jul 2011 04:09:56 +0000 (+0800) Subject: ARM: mxs-dma: reset after disable channel X-Git-Tag: v3.0.35-fsl_4.1.0~1816 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f690af4cdb06a7c4c265399159daae15f7973423;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 221b6f3ebc7d..c303f3497c8e 100644 --- a/drivers/dma/mxs-dma.c +++ b/drivers/dma/mxs-dma.c @@ -540,6 +540,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);