summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/sh_mmcif.c
diff options
context:
space:
mode:
authorKoji Matsuoka <koji.matsuoka.xm@renesas.com>2015-08-23 15:58:08 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2015-08-27 15:50:57 +0300
commit5afc30fc666165c1c37c246e08b4282bc8c31d98 (patch)
treeb5a0850fa57643158dfb0453b21997172f61857a /drivers/mmc/host/sh_mmcif.c
parent3b1cac4d9f915758d0d755f11bb8fd4373cf653b (diff)
downloadlinux-5afc30fc666165c1c37c246e08b4282bc8c31d98.tar.xz
mmc: sh_mmcif: Fix suspend process
The clock should be enable when SDHI registers are accessed. Signed-off-by: Koji Matsuoka <koji.matsuoka.xm@renesas.com> Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sh_mmcif.c')
-rw-r--r--drivers/mmc/host/sh_mmcif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c
index 5a1fdd405b1a..ad9ffea7d659 100644
--- a/drivers/mmc/host/sh_mmcif.c
+++ b/drivers/mmc/host/sh_mmcif.c
@@ -1632,7 +1632,9 @@ static int sh_mmcif_suspend(struct device *dev)
{
struct sh_mmcif_host *host = dev_get_drvdata(dev);
+ pm_runtime_get_sync(dev);
sh_mmcif_writel(host->addr, MMCIF_CE_INT_MASK, MASK_ALL);
+ pm_runtime_put(dev);
return 0;
}