提交 f6bc41fb 编写于 作者: G Guennadi Liakhovetski 提交者: Chris Ball

mmc: sh_mmcif: fix clock gating on platforms with a .down_pwr() method

Do not power down the card in .set_ios(), unless MMC_POWER_OFF is
requested. This fixes the MMCIF interface functionality on ecovec boards.
Signed-off-by: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: NChris Ball <cjb@laptop.org>
上级 c99872a1
...@@ -908,7 +908,7 @@ static void sh_mmcif_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) ...@@ -908,7 +908,7 @@ static void sh_mmcif_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
if (host->power) { if (host->power) {
pm_runtime_put(&host->pd->dev); pm_runtime_put(&host->pd->dev);
host->power = false; host->power = false;
if (p->down_pwr) if (p->down_pwr && ios->power_mode == MMC_POWER_OFF)
p->down_pwr(host->pd); p->down_pwr(host->pd);
} }
host->state = STATE_IDLE; host->state = STATE_IDLE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册