summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2017-03-07 14:18:04 -0800
committerPhilippe Schenker <philippe.schenker@toradex.com>2019-05-24 11:34:14 +0200
commita1112e37991bb50d3f1e4a46d8c5e57a0a3ce9e8 (patch)
tree8e312268c80c33278fe56404afd98e7091e724b0 /drivers/mmc
parent53e26373f606fb89a2b704263a9e32ba09c76a9c (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/mmc')
-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 9668dbfe6576..6e6c43dd828c 100644
--- a/drivers/mmc/host/sdhci-esdhc-imx.c
+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
@@ -1651,6 +1651,7 @@ static int sdhci_esdhc_suspend(struct device *dev)
mmc_retune_needed(host->mmc);
ret = sdhci_suspend_host(host);
+ pm_runtime_force_suspend(dev);
pinctrl_pm_select_sleep_state(dev);
@@ -1694,6 +1695,7 @@ static int sdhci_esdhc_resume(struct device *dev)
if (host->mmc->caps2 & MMC_CAP2_CQE)
ret = cqhci_resume(host->mmc);
+ pm_runtime_force_resume(dev);
pm_runtime_mark_last_busy(dev);
pm_runtime_put_autosuspend(dev);