Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c803ca5b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs: set load before setting voltage in regulators"

parents a2fad6d1 0fb9265a
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -7997,6 +7997,11 @@ static int ufshcd_config_vreg(struct device *dev,
	name = vreg->name;

	if (regulator_count_voltages(reg) > 0) {
		uA_load = on ? vreg->max_uA : 0;
		ret = ufshcd_config_vreg_load(dev, vreg, uA_load);
		if (ret)
			goto out;

		min_uV = on ? vreg->min_uV : 0;
		ret = regulator_set_voltage(reg, min_uV, vreg->max_uV);
		if (ret) {
@@ -8004,11 +8009,6 @@ static int ufshcd_config_vreg(struct device *dev,
					__func__, name, ret);
			goto out;
		}

		uA_load = on ? vreg->max_uA : 0;
		ret = ufshcd_config_vreg_load(dev, vreg, uA_load);
		if (ret)
			goto out;
	}
out:
	return ret;