summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-03-19 12:46:49 -0700
committerJohn Stultz <john.stultz@linaro.org>2016-02-16 13:51:08 -0800
commitc284cce930c8173e1856f4e546dfcf1001dbfd55 (patch)
tree0da33e637f80aea9259dc1c5c1eed6420c8607f2 /drivers
parent7923f784f327c8ef9c222e090de81fc6034c069d (diff)
mmc: sdio: fix sdio_reset_comm() voltage selection
Change-Id: I2fa35ee9291c4c60e55fc11d923ae686a8f81920 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/core/sdio.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
index 915ff424669a..231c97248add 100644
--- a/drivers/mmc/core/sdio.c
+++ b/drivers/mmc/core/sdio.c
@@ -1222,6 +1222,7 @@ int sdio_reset_comm(struct mmc_card *card)
{
struct mmc_host *host = card->host;
u32 ocr;
+ u32 rocr;
int err;
printk("%s():\n", __func__);
@@ -1235,13 +1236,13 @@ int sdio_reset_comm(struct mmc_card *card)
if (err)
goto err;
- host->ocr = mmc_select_voltage(host, ocr);
- if (!host->ocr) {
+ rocr = mmc_select_voltage(host, ocr);
+ if (!rocr) {
err = -EINVAL;
goto err;
}
- err = mmc_send_io_op_cond(host, host->ocr, &ocr);
+ err = mmc_sdio_init_card(host, rocr, card, 0);
if (err)
goto err;