mmc: starfive: resolving warning logs
authorWilliam Qiu <william.qiu@starfivetech.com>
Wed, 21 Dec 2022 02:59:23 +0000 (10:59 +0800)
committerWilliam Qiu <william.qiu@starfivetech.com>
Wed, 21 Dec 2022 02:59:23 +0000 (10:59 +0800)
delete switch_voltage interface to resolving
warning logs

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
drivers/mmc/host/dw_mmc-starfive.c

index a16c4bf..6e938bc 100644 (file)
@@ -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[] = {