summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2016-10-27 14:31:39 +0200
committerTao Huang <huangtao@rock-chips.com>2018-03-22 11:14:38 +0800
commit3c27fb4c5132c18b50eb618d6d825f79fccfb64e (patch)
tree0b07549549d3dca67f0b191f30fca797be15d41f /drivers
parent7256fb26c9279d10d5a5eeea6a8b399e7f51e413 (diff)
UPSTREAM: regulator: core: silence warning: "VDD1: ramp_delay not set"
commit 73e705bf81ce ("regulator: core: Add set_voltage_time op") introduced a new rdev_warn() if the ramp_delay is 0. Apparently, on omap3/twl4030 platforms with dynamic voltage management this results in non-ending spurious messages like [ 511.143066] VDD1: ramp_delay not set [ 511.662322] VDD1: ramp_delay not set [ 513.903625] VDD1: ramp_delay not set [ 514.222198] VDD1: ramp_delay not set [ 517.062835] VDD1: ramp_delay not set [ 517.382568] VDD1: ramp_delay not set [ 520.142791] VDD1: ramp_delay not set [ 520.502593] VDD1: ramp_delay not set [ 523.062896] VDD1: ramp_delay not set [ 523.362701] VDD1: ramp_delay not set [ 526.143035] VDD1: ramp_delay not set I have observed this on GTA04 while it is reported to occur on N900 as well: https://bugzilla.kernel.org/show_bug.cgi?id=178371 This patch makes the warning appear only in debugging mode. Change-Id: I29b9fcc6f5507bd9763d26d076d72e8ccb0e25ec Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Tao Huang <huangtao@rock-chips.com> (cherry picked from commit ba14fa1a57c07cca9d520ceded8d3da5beb6175f)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/regulator/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index c51c052f0dcc..2952da3fa6fe 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -2783,7 +2783,7 @@ static int _regulator_set_voltage_time(struct regulator_dev *rdev,
ramp_delay = rdev->desc->ramp_delay;
if (ramp_delay == 0) {
- rdev_warn(rdev, "ramp_delay not set\n");
+ rdev_dbg(rdev, "ramp_delay not set\n");
return 0;
}