public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthieu CASTET <matthieu.castet@parrot.com>
To: "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>
Cc: Chris Ball <chris@printf.net>, Ulf Hansson <ulf.hansson@linaro.org>
Subject: Re: [PATCH 1/2] sdhci : handle busy timeout irq
Date: Thu, 24 Jul 2014 11:37:37 +0200	[thread overview]
Message-ID: <20140724113737.7b06fd18@parrot.com> (raw)
In-Reply-To: <1404918112-27195-1-git-send-email-matthieu.castet@parrot.com>

Any news on these patches ?

Le Wed, 9 Jul 2014 17:01:51 +0200,
Matthieu CASTET <matthieu.castet@parrot.com> a écrit :

> When we wait for busy after sending a command, if there is
> a timeout, we got SDHCI_INT_DATA_TIMEOUT flags.
> Before this commit we got the message :
> "Got data interrupt 0x00100000 even though no data  operation was in progress."
> and we need to wait 10s that sdhci_timeout_timer expires.
> 
> Signed-off-by: Matthieu CASTET <matthieu.castet@parrot.com>
> ---
>  drivers/mmc/host/sdhci.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
> index 47055f3..9df59a4 100644
> --- a/drivers/mmc/host/sdhci.c
> +++ b/drivers/mmc/host/sdhci.c
> @@ -2301,6 +2301,11 @@ static void sdhci_data_irq(struct sdhci_host *host, u32 intmask)
>  		 * above in sdhci_cmd_irq().
>  		 */
>  		if (host->cmd && (host->cmd->flags & MMC_RSP_BUSY)) {
> +			if (intmask & SDHCI_INT_DATA_TIMEOUT) {
> +				host->cmd->error = -ETIMEDOUT;
> +				tasklet_schedule(&host->finish_tasklet);
> +				return;
> +			}
>  			if (intmask & SDHCI_INT_DATA_END) {
>  				sdhci_finish_command(host);
>  				return;


  parent reply	other threads:[~2014-07-24  9:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-09 15:01 [PATCH 1/2] sdhci : handle busy timeout irq Matthieu CASTET
2014-07-09 15:01 ` [PATCH 2/2] sdhci : recompute timeout_clk when needed Matthieu CASTET
2014-07-24  9:37 ` Matthieu CASTET [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-08-14 14:03 [PATCH 1/2] sdhci : handle busy timeout irq Matthieu CASTET
2014-08-18 11:13 ` Ulf Hansson

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=20140724113737.7b06fd18@parrot.com \
    --to=matthieu.castet@parrot.com \
    --cc=chris@printf.net \
    --cc=linux-mmc@vger.kernel.org \
    --cc=ulf.hansson@linaro.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