mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 05:56:38 +07:00
mmc: core: Remove redundant code in mmc_set_signal_voltage()
The mmc_set_signal_voltage() function is used for SD/SDIO when switching to 1.8V for UHS mode. Therefore let's remove the redundant code dealing with MMC_SIGNAL_VOLTAGE_330. 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>
This commit is contained in:
parent
62a4cdead5
commit
a44efa4796
@ -1653,13 +1653,6 @@ int mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage, u32 ocr)
|
|||||||
int err = 0;
|
int err = 0;
|
||||||
u32 clock;
|
u32 clock;
|
||||||
|
|
||||||
/*
|
|
||||||
* Send CMD11 only if the request is to switch the card to
|
|
||||||
* 1.8V signalling.
|
|
||||||
*/
|
|
||||||
if (signal_voltage == MMC_SIGNAL_VOLTAGE_330)
|
|
||||||
return __mmc_set_signal_voltage(host, signal_voltage);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we cannot switch voltages, return failure so the caller
|
* If we cannot switch voltages, return failure so the caller
|
||||||
* can continue without UHS mode
|
* can continue without UHS mode
|
||||||
|
Loading…
Reference in New Issue
Block a user