aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/core.c
diff options
context:
space:
mode:
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>2020-11-13 01:20:27 +0100
committerMark Brown <broonie@kernel.org>2020-11-13 16:10:05 +0000
commit0917c9db23accb8690d8f1987ada36eb5b1a5ac9 (patch)
tree0df971df3d0225cf5a00d82649b27ac3b73547a9 /drivers/regulator/core.c
parentMerge branch 'for-5.10' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator into regulator-5.11 (diff)
downloadlinux-dev-0917c9db23accb8690d8f1987ada36eb5b1a5ac9.tar.xz
linux-dev-0917c9db23accb8690d8f1987ada36eb5b1a5ac9.zip
regulator: debug early supply resolving
Help debugging the case when set_machine_constraints() needs to be repeated. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Tested-by: Ahmad Fatoum <a.fatoum@pengutronix.de> # stpmic1 Link: https://lore.kernel.org/r/f9cba575580369e46661a9278ee6c6a8d8564c2a.1605226675.git.mirq-linux@rere.qmqm.pl Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/core.c')
-rw-r--r--drivers/regulator/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 2e1ea18221ef..2aa7def7cec6 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -5299,6 +5299,8 @@ regulator_register(const struct regulator_desc *regulator_desc,
/* FIXME: this currently triggers a chicken-and-egg problem
* when creating -SUPPLY symlink in sysfs to a regulator
* that is just being created */
+ rdev_dbg(rdev, "will resolve supply early: %s\n",
+ rdev->supply_name);
ret = regulator_resolve_supply(rdev);
if (!ret)
ret = set_machine_constraints(rdev, constraints);