mmc: sh_mmcif: Fix suspend process
authorKoji Matsuoka <koji.matsuoka.xm@renesas.com>
Sun, 23 Aug 2015 12:58:08 +0000 (21:58 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 27 Aug 2015 12:50:57 +0000 (14:50 +0200)
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>
drivers/mmc/host/sh_mmcif.c

index 5a1fdd405b1af14ff1725a8b9d9a3ab83e84b15a..ad9ffea7d659d28e057f13c1b7912ca7243743ac 100644 (file)
@@ -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;
 }