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 <b29396@freescale.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
Dong Aisheng 2011-07-19 12:09:56 +08:00 committed by Vinod Koul
parent add56ba711
commit a62bae98a9
1 changed files with 1 additions and 0 deletions

View File

@ -537,6 +537,7 @@ static int mxs_dma_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd,
switch (cmd) { switch (cmd) {
case DMA_TERMINATE_ALL: case DMA_TERMINATE_ALL:
mxs_dma_disable_chan(mxs_chan); mxs_dma_disable_chan(mxs_chan);
mxs_dma_reset_chan(mxs_chan);
break; break;
case DMA_PAUSE: case DMA_PAUSE:
mxs_dma_pause_chan(mxs_chan); mxs_dma_pause_chan(mxs_chan);