summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorNeilBrown2014-11-12 04:55:19 +0100
committerUlf Hansson2014-11-26 14:30:58 +0100
commit59b6c9e0ad9f2578ff8b2ef8c718bcb8b895fefb (patch)
tree2526932e169e153e42329c8306054f7253a4a750 /drivers/mmc
parentmmc: add Toshiba PCI SD controller driver (diff)
downloadkernel-qcow2-linux-59b6c9e0ad9f2578ff8b2ef8c718bcb8b895fefb.tar.gz
kernel-qcow2-linux-59b6c9e0ad9f2578ff8b2ef8c718bcb8b895fefb.tar.xz
kernel-qcow2-linux-59b6c9e0ad9f2578ff8b2ef8c718bcb8b895fefb.zip
mmc: core: use card->ocr when negotiating voltage setting in mmc_sdio_power_restore
As we are restoring power to a known card, it makes sense to use the 'ocr' value known for the card rather than the generic one for the host interface. This matches the use of card->ocr passed to mmc_power_up in mmc_sdio_runtime_resume (just before mmc_sdio_power_restore is called), and the value passed to mmc_sdio_init_card() a little later in mmc_sdio_power_restore(). Suggested-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/sdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
index 2439e717655b..f0ddb0d28536 100644
--- a/drivers/mmc/core/sdio.c
+++ b/drivers/mmc/core/sdio.c
@@ -1035,7 +1035,7 @@ static int mmc_sdio_power_restore(struct mmc_host *host)
sdio_reset(host);
mmc_go_idle(host);
- mmc_send_if_cond(host, host->ocr_avail);
+ mmc_send_if_cond(host, host->card->ocr);
ret = mmc_send_io_op_cond(host, 0, NULL);
if (ret)