projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
258c749
)
mmc: sd: warn if card stays busy during init
author
Johan Rudholm
<johan.rudholm@axis.com>
Fri, 23 May 2014 14:15:03 +0000
(16:15 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Wed, 9 Jul 2014 09:26:07 +0000
(11:26 +0200)
The initialization of some SD-cards fails because the card never
leaves the busy state. Aid trouble shooting by indicating this in the
kernel log.
Signed-off-by: Johan Rudholm <johanru@axis.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sd_ops.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/sd_ops.c
b/drivers/mmc/core/sd_ops.c
index 274ef00b44639149c3d43c24effffd400fa5ba69..48d0c93ba25a36590ac6e2c786c4ca923d35cde1 100644
(file)
--- a/
drivers/mmc/core/sd_ops.c
+++ b/
drivers/mmc/core/sd_ops.c
@@
-184,6
+184,9
@@
int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr)
mmc_delay(10);
}
+ if (!i)
+ pr_err("%s: card never left busy state\n", mmc_hostname(host));
+
if (rocr && !mmc_host_is_spi(host))
*rocr = cmd.resp[0];