diff options
author | Johan Rudholm <johan.rudholm@stericsson.com> | 2013-01-28 18:08:27 +0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-02-24 23:37:07 +0400 |
commit | 567c89032cfdda8047562abe450947ac01f2d3c7 (patch) | |
tree | 09bdcb03c610055c9c1b69220948619d62934142 /drivers/mmc/core/sd.c | |
parent | d887874e0ead6a0b86b6046b872730c81c121352 (diff) | |
download | linux-567c89032cfdda8047562abe450947ac01f2d3c7.tar.xz |
mmc: core: Break out start_signal_voltage_switch
Allow callers to access the start_signal_voltage_switch host_ops
member without going through any cmd11 logic. This is mostly a
preparation for the following signal voltage switch patch.
Also, reset ios.signal_voltage to its original value if
start_signal_voltage_switch fails.
Signed-off-by: Johan Rudholm <johan.rudholm@stericsson.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Wei WANG <wei_wang@realsil.com.cn>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/core/sd.c')
-rw-r--r-- | drivers/mmc/core/sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index 937363948079..9a59fcd55a75 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c @@ -757,7 +757,7 @@ try_again: */ if (!mmc_host_is_spi(host) && rocr && ((*rocr & 0x41000000) == 0x41000000)) { - err = mmc_set_signal_voltage(host, MMC_SIGNAL_VOLTAGE_180, true); + err = mmc_set_signal_voltage(host, MMC_SIGNAL_VOLTAGE_180); if (err) { ocr &= ~SD_OCR_S18R; goto try_again; |