* [PATCH] mmc, kernel 4.0.5, SDIO power management error message
@ 2015-06-08 13:27 Greg Alexander
0 siblings, 0 replies; only message in thread
From: Greg Alexander @ 2015-06-08 13:27 UTC (permalink / raw)
To: linux-kernel; +Cc: ossman
On suspend, SDIO (MMC) power management fails and removes a card
("mmc2: card 0001 removed") if any of the card's functions don't support
power management. Then nothing ever resumes it, so the card is lost
forever. With this patch, it will also provide a useful error message
("btsdio mmc2:0001:3: pre_suspend failed (driver has no PM)"). This will
save hours of diagnostic effort for anyone whose SDIO cards disappear on
suspend.
--- drivers/mmc/core/sdio.c.orig 2015-06-06 11:21:22.000000000 -0400
+++ drivers/mmc/core/sdio.c 2015-06-08 09:21:00.000000000 -0400
@@ -918,6 +918,8 @@
const struct dev_pm_ops *pmops = func->dev.driver->pm;
if (!pmops || !pmops->suspend || !pmops->resume) {
/* force removal of entire card in that case */
+ dev_err(&func->dev, "pre_suspend failed "
+ "(driver has no PM)\n");
err = -ENOSYS;
break;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-08 13:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-08 13:27 [PATCH] mmc, kernel 4.0.5, SDIO power management error message Greg Alexander
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox