Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a62bae98 authored by Dong Aisheng's avatar Dong Aisheng Committed by Vinod Koul
Browse files

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: default avatarDong Aisheng <b29396@freescale.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent add56ba7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);