public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: vkoul@infradead.org (Vinod Koul)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/1] ARM: mxs-dma: reset after disable channel
Date: Mon, 25 Jul 2011 19:55:37 +0530	[thread overview]
Message-ID: <1311603937.8206.18.camel@vkoul-mobl4> (raw)
In-Reply-To: <1311048596-19932-1-git-send-email-b29396@freescale.com>

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@freescale.com>
> Cc: Vinod Koul <vinod.koul@intel.com>
> Cc: Shawn Guo <shawn.guo@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.

      parent reply	other threads:[~2011-07-25 14:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-19  4:09 [PATCH 1/1] ARM: mxs-dma: reset after disable channel Dong Aisheng
2011-07-19  4:02 ` Shawn Guo
2011-07-19  8:21   ` Wolfram Sang
2011-07-19  8:45     ` Shawn Guo
2011-07-19  9:13       ` Wolfram Sang
2011-07-19  9:20       ` Dong Aisheng-B29396
2011-07-19 13:44   ` Koul, Vinod
2011-07-25 14:25 ` Vinod Koul [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1311603937.8206.18.camel@vkoul-mobl4 \
    --to=vkoul@infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox