Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Johan Rudholm and committed by
Ulf Hansson
5e863662 258c749e

+3
+3
drivers/mmc/core/sd_ops.c
··· 184 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 190 if (rocr && !mmc_host_is_spi(host)) 188 191 *rocr = cmd.resp[0]; 189 192