diff options
author | Johan Rudholm <johan.rudholm@axis.com> | 2014-05-23 10:15:03 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-07-09 05:26:07 -0400 |
commit | 5e863662add1fc00bf088dc381b787edc0a0de5b (patch) | |
tree | c0ad20d23533daf43fd96472fdb8de172df3f1e1 /drivers/mmc | |
parent | 258c749e41c4f4ccf0c8a68b879a00c289ae9217 (diff) |
mmc: sd: warn if card stays busy during init
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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/sd_ops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/core/sd_ops.c b/drivers/mmc/core/sd_ops.c index 274ef00b4463..48d0c93ba25a 100644 --- 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) | |||
184 | mmc_delay(10); | 184 | mmc_delay(10); |
185 | } | 185 | } |
186 | 186 | ||
187 | if (!i) | ||
188 | pr_err("%s: card never left busy state\n", mmc_hostname(host)); | ||
189 | |||
187 | if (rocr && !mmc_host_is_spi(host)) | 190 | if (rocr && !mmc_host_is_spi(host)) |
188 | *rocr = cmd.resp[0]; | 191 | *rocr = cmd.resp[0]; |
189 | 192 | ||