Commit 0917c9db authored by Michał Mirosław's avatar Michał Mirosław Committed by Mark Brown

regulator: debug early supply resolving

Help debugging the case when set_machine_constraints() needs to be
repeated.
Signed-off-by: default avatarMichał 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.plSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 811c732f
...@@ -5299,6 +5299,8 @@ regulator_register(const struct regulator_desc *regulator_desc, ...@@ -5299,6 +5299,8 @@ regulator_register(const struct regulator_desc *regulator_desc,
/* FIXME: this currently triggers a chicken-and-egg problem /* FIXME: this currently triggers a chicken-and-egg problem
* when creating -SUPPLY symlink in sysfs to a regulator * when creating -SUPPLY symlink in sysfs to a regulator
* that is just being created */ * that is just being created */
rdev_dbg(rdev, "will resolve supply early: %s\n",
rdev->supply_name);
ret = regulator_resolve_supply(rdev); ret = regulator_resolve_supply(rdev);
if (!ret) if (!ret)
ret = set_machine_constraints(rdev, constraints); ret = set_machine_constraints(rdev, constraints);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment