diff options
author | 2025-08-09 08:41:53 +0300 | |
---|---|---|
committer | 2025-08-09 08:41:53 +0300 | |
commit | c5bf33d778e8744d081c51061753a8a313d247d0 (patch) | |
tree | eaac48087a5fdaa610f331eeaae5b8c4948d7e6e | |
parent | Merge tag 'regmap-fix-v6.17-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap (diff) | |
parent | regulator: core: correct convergence check in regulator_set_voltage() (diff) | |
download | wireguard-linux-c5bf33d778e8744d081c51061753a8a313d247d0.tar.xz wireguard-linux-c5bf33d778e8744d081c51061753a8a313d247d0.zip |
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()
-rw-r--r-- | drivers/regulator/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 8ed9b96518cf..554d83c4af0c 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -3884,7 +3884,7 @@ static int regulator_set_voltage_unlocked(struct regulator *regulator, new_delta = ret; /* check that voltage is converging quickly enough */ - if (new_delta - delta > rdev->constraints->max_uV_step) { + if (delta - new_delta < rdev->constraints->max_uV_step) { ret = -EWOULDBLOCK; goto out; } |