Skip to content

Commit f6ca8f9

Browse files
mwgonzalezUlf Hansson
authored andcommitted
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: Marc Gonzalez <marc.w.gonzalez@free.fr> Link: https://lore.kernel.org/r/d2444591-c91b-a94d-71e2-9dedc3b6c514@free.fr Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent a72b7bb commit f6ca8f9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/mmc/core/core.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2257,6 +2257,11 @@ void mmc_rescan(struct work_struct *work)
22572257
break;
22582258
}
22592259

2260+
/* A non-removable card should have been detected by now. */
2261+
if (!mmc_card_is_removable(host) && !host->bus_ops)
2262+
pr_info("%s: Failed to initialize a non-removable card",
2263+
mmc_hostname(host));
2264+
22602265
/*
22612266
* Ignore the command timeout errors observed during
22622267
* the card init as those are excepted.

0 commit comments

Comments
 (0)