Skip to content

Commit f6bc41f

Browse files
lyakhcjb
authored andcommitted
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: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Chris Ball <cjb@laptop.org>
1 parent c99872a commit f6bc41f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mmc/host/sh_mmcif.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ static void sh_mmcif_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
908908
if (host->power) {
909909
pm_runtime_put(&host->pd->dev);
910910
host->power = false;
911-
if (p->down_pwr)
911+
if (p->down_pwr && ios->power_mode == MMC_POWER_OFF)
912912
p->down_pwr(host->pd);
913913
}
914914
host->state = STATE_IDLE;

0 commit comments

Comments
 (0)