diff options
author | Dong Aisheng <b29396@freescale.com> | 2013-11-04 09:38:28 +0100 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-01-13 18:48:09 +0100 |
commit | ce090a4eb9626272bfd2529520f2f16351029640 (patch) | |
tree | 1a268c86fa18352bc4ebb508ffa70c1680923c79 | |
parent | mmc: esdhc-imx: clearing SDHCI_CTRL_EXEC_TUNING should not affect other bits (diff) | |
download | linux-ce090a4eb9626272bfd2529520f2f16351029640.tar.xz linux-ce090a4eb9626272bfd2529520f2f16351029640.zip |
mmc: sdhci-esdhc-imx: fix runtime pm unbalance issue
Since we're using common esdhc_send_command for tuning commands and
the core code will call pm_runtime_put after command is finished.
So we add a pm_runtime_get_sync here to get the balance.
Signed-off-by: Dong Aisheng <b29396@freescale.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | drivers/mmc/host/sdhci-esdhc-imx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index b1544a786eb6..0ac4370cd980 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -698,6 +698,7 @@ static void esdhc_prepare_tuning(struct sdhci_host *host, u32 val) /* FIXME: delay a bit for card to be ready for next tuning due to errors */ mdelay(1); + pm_runtime_get_sync(host->mmc->parent); reg = readl(host->ioaddr + ESDHC_MIX_CTRL); reg |= ESDHC_MIX_CTRL_EXE_TUNE | ESDHC_MIX_CTRL_SMPCLK_SEL | ESDHC_MIX_CTRL_FBCLK_SEL; |