Loading drivers/clk/qcom/gdsc-regulator.c +2 −8 Original line number Diff line number Diff line Loading @@ -371,7 +371,8 @@ static int gdsc_enable(struct regulator_dev *rdev) msm_bus_scale_client_update_request(sc->bus_handle, 0); sc->is_bus_enabled = false; } if (sc->parent_regulator) if (ret && sc->parent_regulator) regulator_set_voltage(sc->parent_regulator, 0, INT_MAX); return ret; Loading @@ -383,13 +384,6 @@ static int gdsc_disable(struct regulator_dev *rdev) uint32_t regval; int i, ret = 0; if (sc->parent_regulator) { ret = regulator_set_voltage(sc->parent_regulator, RPMH_REGULATOR_LEVEL_LOW_SVS, INT_MAX); if (ret) return ret; } if (sc->force_root_en) clk_prepare_enable(sc->clocks[sc->root_clk_idx]); Loading Loading
drivers/clk/qcom/gdsc-regulator.c +2 −8 Original line number Diff line number Diff line Loading @@ -371,7 +371,8 @@ static int gdsc_enable(struct regulator_dev *rdev) msm_bus_scale_client_update_request(sc->bus_handle, 0); sc->is_bus_enabled = false; } if (sc->parent_regulator) if (ret && sc->parent_regulator) regulator_set_voltage(sc->parent_regulator, 0, INT_MAX); return ret; Loading @@ -383,13 +384,6 @@ static int gdsc_disable(struct regulator_dev *rdev) uint32_t regval; int i, ret = 0; if (sc->parent_regulator) { ret = regulator_set_voltage(sc->parent_regulator, RPMH_REGULATOR_LEVEL_LOW_SVS, INT_MAX); if (ret) return ret; } if (sc->force_root_en) clk_prepare_enable(sc->clocks[sc->root_clk_idx]); Loading