ARM: mxs-dma: reset after disable channel
authorDong Aisheng <b29396@freescale.com>
Tue, 19 Jul 2011 04:09:56 +0000 (12:09 +0800)
committerVinod Koul <vinod.koul@intel.com>
Tue, 26 Jul 2011 10:03:28 +0000 (15:33 +0530)
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>
drivers/dma/mxs-dma.c

index f22a237b7dd63dac4bea8c1f58810340dc2bb89a..be641cbd36fcb30c16aafaf25f279ecc0064b07a 100644 (file)
@@ -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);
This page took 0.028095 seconds and 5 git commands to generate.