diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index ab36c7b491f34b0e5cecbc80491d413e7242c6e7..f091b43d00c4968c0ff1958a8c68f9f7c7e29f19 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1832,6 +1832,10 @@ int mmc_power_save_host(struct mmc_host *host) { int ret = 0; +#ifdef CONFIG_MMC_DEBUG + pr_info("%s: %s: powering down\n", mmc_hostname(host), __func__); +#endif + mmc_bus_get(host); if (!host->bus_ops || host->bus_dead || !host->bus_ops->power_restore) { @@ -1854,6 +1858,10 @@ int mmc_power_restore_host(struct mmc_host *host) { int ret; +#ifdef CONFIG_MMC_DEBUG + pr_info("%s: %s: powering up\n", mmc_hostname(host), __func__); +#endif + mmc_bus_get(host); if (!host->bus_ops || host->bus_dead || !host->bus_ops->power_restore) {