All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Ball <cjb@laptop.org>
To: Olof Johansson <olof@lixom.net>
Cc: Wolfram Sang <w.sang@pengutronix.de>,
	linux-mmc@vger.kernel.org, linux-tegra@vger.kernel.org
Subject: Re: [PATCH 2/3] sdhci: don't finish commands in flight
Date: Wed, 22 Dec 2010 08:08:21 +0000	[thread overview]
Message-ID: <20101222080821.GB19898@void.printf.net> (raw)
In-Reply-To: <1293004871-1918-3-git-send-email-olof@lixom.net>

Hi Olof,

On Wed, Dec 22, 2010 at 02:01:10AM -0600, Olof Johansson wrote:
> Don't schedule the finish_tasklet unless the command complete bit is
> set in the interrupt status register.
> 
> Signed-off-by: Olof Johansson <olof@lixom.net>

Could we have some more detail here, please?  What are the symptoms of
running without this patch?  Should we apply it to the stable tree too?

> ---
>  drivers/mmc/host/sdhci.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
> index c0094c1..562aaea 100644
> --- a/drivers/mmc/host/sdhci.c
> +++ b/drivers/mmc/host/sdhci.c
> @@ -1432,7 +1432,8 @@ static void sdhci_cmd_irq(struct sdhci_host *host, u32 intmask)
>  		host->cmd->error = -EILSEQ;
>  
>  	if (host->cmd->error) {
> -		tasklet_schedule(&host->finish_tasklet);
> +		if (intmask & SDHCI_INT_RESPONSE)
> +			tasklet_schedule(&host->finish_tasklet);
>  		return;
>  	}
>  

Thanks,

-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

  reply	other threads:[~2010-12-22  8:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-22  8:01 [PATCH 0/3 v2] Add SDHCI driver for Tegra Olof Johansson
2010-12-22  8:01 ` [PATCH 1/3] sdhci: add quirk for max len ADMA descriptors Olof Johansson
2010-12-22  8:01 ` [PATCH 2/3] sdhci: don't finish commands in flight Olof Johansson
2010-12-22  8:08   ` Chris Ball [this message]
2010-12-22  9:38     ` Olof Johansson
2010-12-22  8:01 ` [PATCH 3/3] mmc: add sdhci-tegra driver for Tegra SoCs Olof Johansson
2010-12-22 16:22   ` Wolfram Sang
2010-12-22 19:22     ` Olof Johansson
2010-12-23  6:20   ` Mike Rapoport
2010-12-23  8:59     ` Olof Johansson
2010-12-22  8:06 ` [PATCH 0/3 v2] Add SDHCI driver for Tegra Chris Ball
2010-12-22 16:05 ` Wolfram Sang
2010-12-22 20:48   ` Olof Johansson

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=20101222080821.GB19898@void.printf.net \
    --to=cjb@laptop.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=olof@lixom.net \
    --cc=w.sang@pengutronix.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.