Skip to content

Commit ce090a4

Browse files
Dong Aishengcjb
authored andcommitted
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 <[email protected]> Acked-by: Ulf Hansson <[email protected]> Signed-off-by: Chris Ball <[email protected]>
1 parent 8b2bb0a commit ce090a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mmc/host/sdhci-esdhc-imx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ static void esdhc_prepare_tuning(struct sdhci_host *host, u32 val)
698698
/* FIXME: delay a bit for card to be ready for next tuning due to errors */
699699
mdelay(1);
700700

701+
pm_runtime_get_sync(host->mmc->parent);
701702
reg = readl(host->ioaddr + ESDHC_MIX_CTRL);
702703
reg |= ESDHC_MIX_CTRL_EXE_TUNE | ESDHC_MIX_CTRL_SMPCLK_SEL |
703704
ESDHC_MIX_CTRL_FBCLK_SEL;

0 commit comments

Comments
 (0)