Skip to content

Commit f6b8b52

Browse files
lyakhcjb
authored andcommitted
mmc: tmio: fix clock gating on platforms with a .set_pwr() method
Do not power down the card in .set_ios(), unless MMC_POWER_OFF is requested. This fixes the SDHI functionality on ecovec. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Chris Ball <cjb@laptop.org>
1 parent f6bc41f commit f6b8b52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mmc/host/tmio_mmc_pio.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
798798
/* start bus clock */
799799
tmio_mmc_clk_start(host);
800800
} else if (ios->power_mode != MMC_POWER_UP) {
801-
if (host->set_pwr)
801+
if (host->set_pwr && ios->power_mode == MMC_POWER_OFF)
802802
host->set_pwr(host->pdev, 0);
803803
if ((pdata->flags & TMIO_MMC_HAS_COLD_CD) &&
804804
pdata->power) {

0 commit comments

Comments
 (0)