We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c919279 + 1c8cf9c commit 5a2b3efCopy full SHA for 5a2b3ef
drivers/mmc/core/core.c
@@ -1631,6 +1631,19 @@ int mmc_suspend_host(struct mmc_host *host)
1631
if (host->bus_ops && !host->bus_dead) {
1632
if (host->bus_ops->suspend)
1633
err = host->bus_ops->suspend(host);
1634
+ if (err == -ENOSYS || !host->bus_ops->resume) {
1635
+ /*
1636
+ * We simply "remove" the card in this case.
1637
+ * It will be redetected on resume.
1638
+ */
1639
+ if (host->bus_ops->remove)
1640
+ host->bus_ops->remove(host);
1641
+ mmc_claim_host(host);
1642
+ mmc_detach_bus(host);
1643
+ mmc_release_host(host);
1644
+ host->pm_flags = 0;
1645
+ err = 0;
1646
+ }
1647
}
1648
mmc_bus_put(host);
1649
0 commit comments