提交 45a91e8f 编写于 作者: M Mark Brown

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: NMark Brown <broonie@kernel.org>
上级 fa93fd4e
...@@ -935,6 +935,8 @@ static int machine_constraints_voltage(struct regulator_dev *rdev, ...@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册