mmc: core: Break out start_signal_voltage_switch
authorJohan Rudholm <johan.rudholm@stericsson.com>
Mon, 28 Jan 2013 14:08:27 +0000 (15:08 +0100)
committerChris Ball <cjb@laptop.org>
Sun, 24 Feb 2013 19:37:07 +0000 (14:37 -0500)
commit567c89032cfdda8047562abe450947ac01f2d3c7
tree09bdcb03c610055c9c1b69220948619d62934142
parentd887874e0ead6a0b86b6046b872730c81c121352
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>
drivers/mmc/core/core.c
drivers/mmc/core/core.h
drivers/mmc/core/mmc.c
drivers/mmc/core/sd.c
drivers/mmc/core/sdio.c