[PATCH 1/1] ARM: mxs-dma: reset after disable channel

Vinod Koul vkoul at infradead.org
Mon Jul 25 10:25:37 EDT 2011


On Tue, 2011-07-19 at 12:09 +0800, Dong Aisheng wrote:
> We met some channels in abnormal state after disable.
> Reset it to get a clean state.
> 
> Signed-off-by: Dong Aisheng <b29396 at freescale.com>
> Cc: Vinod Koul <vinod.koul at intel.com>
> Cc: Shawn Guo <shawn.guo at linaro.org>
> ---
>  drivers/dma/mxs-dma.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c
> index 88aad4f..5a24010 100644
> --- a/drivers/dma/mxs-dma.c
> +++ b/drivers/dma/mxs-dma.c
> @@ -535,6 +535,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);
Applied, Thanks

-- 
~Vinod Koul
Intel Corp.




More information about the linux-arm-kernel mailing list