Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370148
b: refs/heads/master
c: 237fb5e
h: refs/heads/master
v: v3
  • Loading branch information
Lee Jones authored and Linus Walleij committed Mar 1, 2013
1 parent 611763a commit facc043
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b6c230196f07b9cdd23ceb899070076cdab0c467
refs/heads/master: 237fb5e675a312a84a602ad0fbdf0b4957c71073
9 changes: 9 additions & 0 deletions trunk/drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1141,6 +1141,11 @@ static void mmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
case MMC_POWER_OFF:
if (!IS_ERR(mmc->supply.vmmc))
mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);

if (!IS_ERR(mmc->supply.vqmmc) &&
regulator_is_enabled(mmc->supply.vqmmc))
regulator_disable(mmc->supply.vqmmc);

break;
case MMC_POWER_UP:
if (!IS_ERR(mmc->supply.vmmc))
Expand All @@ -1155,6 +1160,10 @@ static void mmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)

break;
case MMC_POWER_ON:
if (!IS_ERR(mmc->supply.vqmmc) &&
!regulator_is_enabled(mmc->supply.vqmmc))
regulator_enable(mmc->supply.vqmmc);

pwr |= MCI_PWR_ON;
break;
}
Expand Down

0 comments on commit facc043

Please sign in to comment.