Skip to content

Commit

Permalink
mmc: sd: warn if card stays busy during init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johan Rudholm authored and Ulf Hansson committed Jul 9, 2014
1 parent 258c749 commit 5e86366
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mmc/core/sd_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 5e86366

Please sign in to comment.