diff options
-rw-r--r-- | drivers/mmc/core/core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 0510596e9809..e059ff616a01 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1799,6 +1799,12 @@ void mmc_power_off(struct mmc_host *host) /* Set initial state and call mmc_set_ios */ mmc_set_initial_state(host); host->ios.signal_voltage = 3; + /* + * 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; } |