|
@@ -798,7 +798,7 @@ static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
|
|
/* start bus clock */
|
|
/* start bus clock */
|
|
tmio_mmc_clk_start(host);
|
|
tmio_mmc_clk_start(host);
|
|
} else if (ios->power_mode != MMC_POWER_UP) {
|
|
} else if (ios->power_mode != MMC_POWER_UP) {
|
|
- if (host->set_pwr)
|
|
|
|
|
|
+ if (host->set_pwr && ios->power_mode == MMC_POWER_OFF)
|
|
host->set_pwr(host->pdev, 0);
|
|
host->set_pwr(host->pdev, 0);
|
|
if ((pdata->flags & TMIO_MMC_HAS_COLD_CD) &&
|
|
if ((pdata->flags & TMIO_MMC_HAS_COLD_CD) &&
|
|
pdata->power) {
|
|
pdata->power) {
|