The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: Fabio Baltieri <fabio.baltieri@linaro.org>
Cc: Dan Williams <djbw@fb.com>,
	linux-kernel@vger.kernel.org,
	Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>,
	Linus Walleij <linus.walleij@linaro.org>
Subject: Re: [PATCH] dmaengine: ste_dma40: do not remove descriptors for cyclic transfers
Date: Thu, 14 Feb 2013 19:56:32 +0530	[thread overview]
Message-ID: <20130214142632.GF29960@intel.com> (raw)
In-Reply-To: <1360832590-26562-1-git-send-email-fabio.baltieri@linaro.org>

On Thu, Feb 14, 2013 at 10:03:10AM +0100, Fabio Baltieri wrote:
> Fix dma_tc_handle() to call d40_desc_remove() and d40_desc_done() only
> for non-cyclic transfers, as this was breaking ux500_pcm since
> introduced in:
> 
> d49278e dmaengine: dma40: Add support to split up large elements
> 
> Reported-by: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
> Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
> ---
> 
> Hello Vinod,
> 
> the bug fixed by this patch was around for some time, but the affected
> driver (ux500_pcm) will be enabled in next release cycle for other
> reasons so this patch can safely go on -next.
> 
> Would you take it your tree?
Sure, applied thanks

--
~Vinod
> 
> Thanks,
> Fabio
> 
>  drivers/dma/ste_dma40.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
> index ad860a2..1734fee 100644
> --- a/drivers/dma/ste_dma40.c
> +++ b/drivers/dma/ste_dma40.c
> @@ -1570,10 +1570,10 @@ static void dma_tc_handle(struct d40_chan *d40c)
>  			d40c->busy = false;
>  		pm_runtime_mark_last_busy(d40c->base->dev);
>  		pm_runtime_put_autosuspend(d40c->base->dev);
> -	}
>  
> -	d40_desc_remove(d40d);
> -	d40_desc_done(d40c, d40d);
> +		d40_desc_remove(d40d);
> +		d40_desc_done(d40c, d40d);
> +	}
>  
>  	d40c->pending_tx++;
>  	tasklet_schedule(&d40c->tasklet);
> -- 
> 1.7.12.1
> 

      reply	other threads:[~2013-02-14 14:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-14  9:03 [PATCH] dmaengine: ste_dma40: do not remove descriptors for cyclic transfers Fabio Baltieri
2013-02-14 14:26 ` 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=20130214142632.GF29960@intel.com \
    --to=vinod.koul@intel.com \
    --cc=djbw@fb.com \
    --cc=fabio.baltieri@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=srinidhi.kasagar@stericsson.com \
    /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