[PATCH] mmc: core: log empty non-removable slots
Marc Gonzalez
marc.w.gonzalez at free.fr
Tue Mar 21 11:01:01 PDT 2023
An empty non-removable slot might be the symptom of probing too early.
Signed-off-by: Marc Gonzalez <marc.w.gonzalez at 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
More information about the linux-amlogic
mailing list