summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2017-03-07 14:18:04 -0800
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-12-21 14:27:40 +0100
commita29d55dfece13af38b8f14c554e37279b0e6bbfd (patch)
tree419b19229ec67c048ff5cfa20757a17055cd53ee /drivers
parentc8b33eee3c36d82670ec5c18a45102fc4d014860 (diff)
mmc: sdhci-esdhc-imx: make sure runtime PM is suspended in system suspend
Use force suspend/resume to trigger runtime PM when entering system suspend. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit c6634703d092bffee980cbe5c0459074f94d9299)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/sdhci-esdhc-imx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
index df5efd381b8d..374db389c304 100644
--- a/drivers/mmc/host/sdhci-esdhc-imx.c
+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
@@ -1456,6 +1456,7 @@ static int sdhci_esdhc_suspend(struct device *dev)
}
ret = sdhci_suspend_host(host);
+ pm_runtime_force_suspend(dev);
pinctrl_pm_select_sleep_state(dev);
@@ -1475,6 +1476,7 @@ static int sdhci_esdhc_resume(struct device *dev)
ret = sdhci_resume_host(host);
#ifdef CONFIG_PM
+ pm_runtime_force_resume(dev);
pm_runtime_mark_last_busy(host->mmc->parent);
pm_runtime_put_autosuspend(host->mmc->parent);
#endif