linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] regulator: palmas: set supply_name after registering the regulator
@ 2021-06-29 15:24 H. Nikolaus Schaller
  2021-06-29 15:59 ` Mark Brown
  0 siblings, 1 reply; 13+ messages in thread
From: H. Nikolaus Schaller @ 2021-06-29 15:24 UTC (permalink / raw)
  To: Tony Lindgren, Liam Girdwood, Mark Brown, Nishanth Menon, Peter Ujfalusi
  Cc: linux-omap, linux-kernel, letux-kernel, kernel, H. Nikolaus Schaller

Commit 98e48cd9283d ("regulator: core: resolve supply for boot-on/always-on regulators")

introduced a new rule which makes Palmas regulator registration fail:

[    5.407712] ldo1: supplied by vsys_cobra
[    5.412748] ldo2: supplied by vsys_cobra
[    5.417603] palmas-pmic 48070000.i2c:palmas@48:palmas_pmic: failed to register 48070000.i2c:palmas@48:palmas_pmic regulator

This seems to block additions initializations and finally the
Pyra-Handheld hangs when trying to access MMC because there is
no mmc-supply available.

Fixes: 98e48cd9283d ("regulator: core: resolve supply for boot-on/always-on regulators")
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 drivers/regulator/palmas-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c
index 337dd614695e..b49cc05f847f 100644
--- a/drivers/regulator/palmas-regulator.c
+++ b/drivers/regulator/palmas-regulator.c
@@ -975,7 +975,6 @@ static int palmas_ldo_registration(struct palmas_pmic *pmic,
 		else
 			config.init_data = NULL;
 
-		desc->supply_name = rinfo->sname;
 		config.of_node = ddata->palmas_matches[id].of_node;
 
 		rdev = devm_regulator_register(pmic->dev, desc, &config);
@@ -986,6 +985,7 @@ static int palmas_ldo_registration(struct palmas_pmic *pmic,
 			return PTR_ERR(rdev);
 		}
 
+		desc->supply_name = rinfo->sname;
 		/* Initialise sleep/init values from platform data */
 		if (pdata) {
 			reg_init = pdata->reg_init[id];
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-06-30 20:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 15:24 [PATCH] regulator: palmas: set supply_name after registering the regulator H. Nikolaus Schaller
2021-06-29 15:59 ` Mark Brown
2021-06-29 18:34   ` H. Nikolaus Schaller
2021-06-29 18:56     ` Mark Brown
2021-06-29 20:21       ` H. Nikolaus Schaller
2021-06-29 20:26         ` Graeme Gregory
2021-06-30 12:13         ` Mark Brown
2021-06-30 12:29           ` H. Nikolaus Schaller
2021-06-30 13:04             ` Mark Brown
2021-06-30 14:43               ` H. Nikolaus Schaller
2021-06-30 16:45                 ` Mark Brown
2021-06-30 17:17                   ` H. Nikolaus Schaller
2021-06-30 20:08                     ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).