Skip to content

Commit c5bf33d

Browse files
committed
Merge tag 'regulator-fix-v6.17-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator fix from Mark Brown: "This fixes an issue with the newly added code for handling large voltage changes on regulators which require that individual voltage changes cover a limited range, the check for convergence was broken" * tag 'regulator-fix-v6.17-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: core: correct convergence check in regulator_set_voltage()
2 parents 21a1f19 + 10dfd36 commit c5bf33d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3884,7 +3884,7 @@ static int regulator_set_voltage_unlocked(struct regulator *regulator,
38843884
new_delta = ret;
38853885

38863886
/* check that voltage is converging quickly enough */
3887-
if (new_delta - delta > rdev->constraints->max_uV_step) {
3887+
if (delta - new_delta < rdev->constraints->max_uV_step) {
38883888
ret = -EWOULDBLOCK;
38893889
goto out;
38903890
}

0 commit comments

Comments
 (0)