mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-10 23:18:10 +09:00
UPSTREAM: regulator: core: Log when we bring constraints into range
This aids in debugging problems triggered by the regulator core applying
its constraints, we could potentially crash immediately after updating
the voltage if the constraints are buggy.
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit 45a91e8f76)
Change-Id: I8c3e4a856f05c13e6ce3db8a6d46686557109962
Signed-off-by: David Wu <david.wu@rock-chips.com>
This commit is contained in:
@@ -933,6 +933,8 @@ static int machine_constraints_voltage(struct regulator_dev *rdev,
|
||||
}
|
||||
|
||||
if (target_min != current_uV || target_max != current_uV) {
|
||||
rdev_info(rdev, "Bringing %duV into %d-%duV\n",
|
||||
current_uV, target_min, target_max);
|
||||
ret = _regulator_do_set_voltage(
|
||||
rdev, target_min, target_max);
|
||||
if (ret < 0) {
|
||||
|
||||
Reference in New Issue
Block a user