From: Marc Gonzalez <marc.w.gonzalez@free.fr>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Pierre-Hugues Husson <phh@phh.me>,
MMC <linux-mmc@vger.kernel.org>,
AML <linux-amlogic@lists.infradead.org>
Subject: [PATCH] mmc: core: log empty non-removable slots
Date: Tue, 21 Mar 2023 19:01:01 +0100 [thread overview]
Message-ID: <d2444591-c91b-a94d-71e2-9dedc3b6c514@free.fr> (raw)
An empty non-removable slot might be the symptom of probing too early.
Signed-off-by: Marc Gonzalez <marc.w.gonzalez@free.fr>
---
drivers/mmc/core/core.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 426c7f66b3492..b8137baecee7c 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -2257,6 +2257,10 @@ void mmc_rescan(struct work_struct *work)
break;
}
+ if (!mmc_card_is_removable(host) && !host->card)
+ pr_info("%s: no card detected, check post-power-on-delay-ms",
+ mmc_hostname(host));
+
/*
* Ignore the command timeout errors observed during
* the card init as those are excepted.
--
2.25.1
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
next reply other threads:[~2023-03-21 18:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-21 18:01 Marc Gonzalez [this message]
2023-03-23 12:13 ` [PATCH] mmc: core: log empty non-removable slots Ulf Hansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d2444591-c91b-a94d-71e2-9dedc3b6c514@free.fr \
--to=marc.w.gonzalez@free.fr \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-mmc@vger.kernel.org \
--cc=phh@phh.me \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox