mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
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>
This commit is contained in:
parent
f6bc41fb08
commit
f6b8b52c68
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue