diff mbox

mmc: sd: warn if card stays busy during init

Message ID 1400854503-9945-1-git-send-email-johanru@axis.com (mailing list archive)
State New, archived
Headers show

Commit Message

Johan Rudholm May 23, 2014, 2:15 p.m. UTC
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>
---
 drivers/mmc/core/sd_ops.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Comments

Ulf Hansson June 16, 2014, 10:20 a.m. UTC | #1
On 23 May 2014 16:15, Johan Rudholm <johan.rudholm@axis.com> wrote:
> 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>

Thanks! Applied for next.

Kind regards
Uffe

> ---
>  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 274ef00..48d0c93 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)
>                 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
>
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/mmc/core/sd_ops.c b/drivers/mmc/core/sd_ops.c
index 274ef00..48d0c93 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)
 		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];