mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
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>
This commit is contained in:
parent
fa93fd4ecc
commit
45a91e8f76
1 changed files with 2 additions and 0 deletions
|
@ -935,6 +935,8 @@ static int machine_constraints_voltage(struct regulator_dev *rdev,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target_min != current_uV || target_max != current_uV) {
|
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(
|
ret = _regulator_do_set_voltage(
|
||||||
rdev, target_min, target_max);
|
rdev, target_min, target_max);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|
Loading…
Reference in a new issue