Skip to contentSkip to conversation

mmc: sd: warn if card stays busy during init

PATCH Applied Johan Rudholm 2 participants 2 messages May 23, 2014 – Jun 16, 2014 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/mmc/core/sd_ops.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/mmc/core/sd_ops.c +3 -0
index 274ef00..48d0c93 100644
@@ -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];
 
Signature · 1 line
1.7.2.5
Applied
#1 lore raw
Quoted 5 lines · Johan Rudholm

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.

Thanks! Applied for next.

Kind regards
Uffe

Quoted 21 lines
---
 drivers/mmc/core/sd_ops.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/mmc/core/sd_ops.c +3 -1
index 274ef00..48d0c93 100644
@@ -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];
 
--

1.7.2.5