]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/mmc/host/sh_mmcif.c
mmc: sh_mmcif: fix clock gating on platforms with a .down_pwr() method
[karo-tx-linux.git] / drivers / mmc / host / sh_mmcif.c
index 369366c8e205e4ed8aa27746e3a8940b89e54287..d5505f3fe2a170d04fc9011c5b5d2ff886a31df7 100644 (file)
@@ -908,7 +908,7 @@ static void sh_mmcif_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
                if (host->power) {
                        pm_runtime_put(&host->pd->dev);
                        host->power = false;
-                       if (p->down_pwr)
+                       if (p->down_pwr && ios->power_mode == MMC_POWER_OFF)
                                p->down_pwr(host->pd);
                }
                host->state = STATE_IDLE;