From: Koji Matsuoka Date: Sun, 23 Aug 2015 12:58:08 +0000 (+0900) Subject: mmc: sh_mmcif: Fix suspend process X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5afc30fc666165c1c37c246e08b4282bc8c31d98;p=openwrt%2Fstaging%2Fblogic.git mmc: sh_mmcif: Fix suspend process The clock should be enable when SDHI registers are accessed. Signed-off-by: Koji Matsuoka Signed-off-by: Yoshihiro Kaneko Signed-off-by: Ulf Hansson --- 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; }