diff options
author | Jason Liu <jason.hui@linaro.org> | 2011-12-14 19:41:25 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-01-09 21:10:07 +0800 |
commit | 4c4a5381e180e0b3181943e0ed1a9dd3430ce5cb (patch) | |
tree | 4dd82885dcdf7590924209e3088fb7d56ca5c7f6 /drivers/mmc/core/core.c | |
parent | 67a415fd8bbdeb15c0055ec048b53381dabe41e3 (diff) |
Revert "ENGR00152547-03 [MX6Q]add SDHC3.0 support on uSDHC controller"
This reverts commit 7da674ed743b6feb9471fc290e10fc21194f09be.
Diffstat (limited to 'drivers/mmc/core/core.c')
-rw-r--r-- | drivers/mmc/core/core.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index a08b71f73fdc..fb541cc8a92c 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1075,7 +1075,13 @@ void mmc_power_off(struct mmc_host *host) host->ios.clock = 0; host->ios.vdd = 0; - host->ocr = 0; + + /* + * Reset ocr mask to be the highest possible voltage supported for + * this mmc host. This value will be used at next power up. + */ + host->ocr = 1 << (fls(host->ocr_avail) - 1); + if (!mmc_host_is_spi(host)) { host->ios.bus_mode = MMC_BUSMODE_OPENDRAIN; host->ios.chip_select = MMC_CS_DONTCARE; |