summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorBalaji Rao <balajirrao@openmoko.org>2009-02-25 15:28:09 +0530
committerPierre Ossman <drzeus@drzeus.cx>2009-03-24 21:30:01 +0100
commitd3096f88ac4596a509fc5fbe6fa7e7a5497eb399 (patch)
tree066fdcb97204fd92de8113e85550538f235ecbaf /drivers/mmc
parentbe6f19fc24c937112d251232b3dae7e05e96aad1 (diff)
mmc: During unsafe resume, select the right volatge for the card
During mmc unsafe resume, choose the right voltage for the card after powerup. Although this has not seen to cause trouble, it's the wrong behaviour. Signed-off-by: Balaji Rao <balajirrao@openmoko.org> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index b5899e33b687..4a18d90556d9 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -877,6 +877,7 @@ int mmc_resume_host(struct mmc_host *host)
mmc_bus_get(host);
if (host->bus_ops && !host->bus_dead) {
mmc_power_up(host);
+ mmc_select_voltage(host, host->ocr);
BUG_ON(!host->bus_ops->resume);
host->bus_ops->resume(host);
}