Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1366791 > unrolled thread
| Started by | Mark Brown <broonie@kernel.org> |
|---|---|
| First post | 2016-03-30 01:40 +0200 |
| Last post | 2016-03-30 01:40 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] regulator: core: Log when we bring constraints into range Mark Brown <broonie@kernel.org> - 2016-03-30 01:40 +0200
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Date | 2016-03-30 01:40 +0200 |
| Subject | [PATCH] regulator: core: Log when we bring constraints into range |
| Message-ID | <riboS-53f-13@gated-at.bofh.it> |
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>
---
drivers/regulator/core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 881c37e61f75..18dd7ee61455 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -935,6 +935,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) {
--
2.8.0.rc3
Back to top | Article view | linux.kernel
csiph-web