From: Rob Herring <robherring2@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/5] mmc: sdhci: exit cmd on error status
Date: Wed, 1 Jun 2011 14:10:25 -0500 [thread overview]
Message-ID: <1306955427-18940-4-git-send-email-robherring2@gmail.com> (raw)
In-Reply-To: <1306955427-18940-1-git-send-email-robherring2@gmail.com>
From: Rob Herring <rob.herring@calxeda.com>
If the controller has an error condition, then stop polling for command
complete and exit mmc_send_cmd.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
---
drivers/mmc/sdhci.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index f184821..b116b8c 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -204,6 +204,10 @@ static int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
writel(mask, &host->reg->norintsts);
break;
}
+ if (mask & (1 << 15)) {
+ writel(mask, &host->reg->norintsts);
+ return -1;
+ }
}
if (i == retry) {
--
1.7.4.1
next prev parent reply other threads:[~2011-06-01 19:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-01 19:10 [U-Boot] [PATCH 0/5] Common AHCI and SDHCI drivers Rob Herring
2011-06-01 19:10 ` [U-Boot] [PATCH 1/5] mmc: copy s5p to sdhci Rob Herring
2011-06-01 19:10 ` [U-Boot] [PATCH 2/5] mmc: sdhci: rework Samsung specfic code Rob Herring
2011-06-01 19:27 ` Wolfgang Denk
2011-06-01 19:10 ` Rob Herring [this message]
2011-06-01 19:10 ` [U-Boot] [PATCH 4/5] scsi/ahci: ata id little endian fix Rob Herring
2011-06-01 19:10 ` [U-Boot] [PATCH 5/5] scsi/ahci: add support for non-PCI controllers Rob Herring
2011-06-01 19:31 ` Wolfgang Denk
2011-06-01 19:25 ` [U-Boot] [PATCH 0/5] Common AHCI and SDHCI drivers Wolfgang Denk
2011-06-01 19:46 ` Rob Herring
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=1306955427-18940-4-git-send-email-robherring2@gmail.com \
--to=robherring2@gmail.com \
--cc=u-boot@lists.denx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox