aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/sd.c
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2017-01-25 04:25:01 -0500
committerUlf Hansson <ulf.hansson@linaro.org>2017-02-13 07:20:43 -0500
commit2ed573b603f78289dd1435c94597aa25a97e2b76 (patch)
tree5c4847836397b3e9fbbfd0b69e609f2528bf8c8b /drivers/mmc/core/sd.c
parenta44efa4796249c6d4341935e90e9105d6e1a5f15 (diff)
mmc: core: Clarify usage of mmc_set_signal_voltage()
The mmc_set_signal_voltage() function is used for SD/SDIO when switching to 1.8V for UHS mode. To clarify this let's do the following changes. - We are always providing MMC_SIGNAL_VOLTAGE_180 as the signal_voltage parameter to the function. Then, let's just remove the parameter as it serves no purpose. - Rename the function to mmc_set_uhs_voltage(). Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com> Tested-by: Jan Glauber <jglauber@cavium.com> Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Diffstat (limited to 'drivers/mmc/core/sd.c')
-rw-r--r--drivers/mmc/core/sd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index 8b4f13943712..89531b48ae84 100644
--- a/drivers/mmc/core/sd.c
+++ b/drivers/mmc/core/sd.c
@@ -788,8 +788,7 @@ try_again:
788 */ 788 */
789 if (!mmc_host_is_spi(host) && rocr && 789 if (!mmc_host_is_spi(host) && rocr &&
790 ((*rocr & 0x41000000) == 0x41000000)) { 790 ((*rocr & 0x41000000) == 0x41000000)) {
791 err = mmc_set_signal_voltage(host, MMC_SIGNAL_VOLTAGE_180, 791 err = mmc_set_uhs_voltage(host, pocr);
792 pocr);
793 if (err == -EAGAIN) { 792 if (err == -EAGAIN) {
794 retries--; 793 retries--;
795 goto try_again; 794 goto try_again;