Commit f6ca8f90 authored by Marc Gonzalez's avatar Marc Gonzalez Committed by Ulf Hansson

mmc: core: Log about empty non-removable slots

Failing to detect a non-removable card shouldn't happen. Let's log a
message about it to inform that we have problem that ought to be fixed.
Signed-off-by: default avatarMarc Gonzalez <marc.w.gonzalez@free.fr>
Link: https://lore.kernel.org/r/d2444591-c91b-a94d-71e2-9dedc3b6c514@free.frSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent a72b7bbc
...@@ -2257,6 +2257,11 @@ void mmc_rescan(struct work_struct *work) ...@@ -2257,6 +2257,11 @@ void mmc_rescan(struct work_struct *work)
break; break;
} }
/* A non-removable card should have been detected by now. */
if (!mmc_card_is_removable(host) && !host->bus_ops)
pr_info("%s: Failed to initialize a non-removable card",
mmc_hostname(host));
/* /*
* Ignore the command timeout errors observed during * Ignore the command timeout errors observed during
* the card init as those are excepted. * the card init as those are excepted.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment