From 8037d59091d276e74be38e5fafaaebe36eaa77e1 Mon Sep 17 00:00:00 2001 From: William Qiu Date: Wed, 21 Dec 2022 10:59:23 +0800 Subject: [PATCH] mmc: starfive: resolving warning logs delete switch_voltage interface to resolving warning logs Signed-off-by: William Qiu --- drivers/mmc/host/dw_mmc-starfive.c | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/drivers/mmc/host/dw_mmc-starfive.c b/drivers/mmc/host/dw_mmc-starfive.c index a16c4bf963a6..6e938bcb8bba 100644 --- a/drivers/mmc/host/dw_mmc-starfive.c +++ b/drivers/mmc/host/dw_mmc-starfive.c @@ -126,33 +126,6 @@ tuning_out: return err; } -static int dw_mci_starfive_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios) -{ - - struct dw_mci_slot *slot = mmc_priv(mmc); - struct dw_mci *host = slot->host; - u32 ret; - - if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_330) - ret = gpio_direction_output(25, 0); - else if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_180) - ret = gpio_direction_output(25, 1); - if (ret) - return ret; - - if (!IS_ERR(mmc->supply.vqmmc)) { - ret = mmc_regulator_set_vqmmc(mmc, ios); - if (ret < 0) { - dev_err(host->dev, "Regulator set error %d\n", ret); - return ret; - } - } - - /* We should delay 20ms wait for timing setting finished. */ - mdelay(20); - return 0; -} - static int dw_mci_starfive_parse_dt(struct dw_mci *host) { struct of_phandle_args args; @@ -187,10 +160,9 @@ static int dw_mci_starfive_parse_dt(struct dw_mci *host) static const struct dw_mci_drv_data starfive_data = { .caps = dw_mci_starfive_caps, .num_caps = ARRAY_SIZE(dw_mci_starfive_caps), - //.set_ios = dw_mci_starfive_set_ios, + .set_ios = dw_mci_starfive_set_ios, .parse_dt = dw_mci_starfive_parse_dt, .execute_tuning = dw_mci_starfive_execute_tuning, - //.switch_voltage = dw_mci_starfive_switch_voltage, }; static const struct of_device_id dw_mci_starfive_match[] = { -- 2.34.1