Skip to content

Commit 1b9e86d

Browse files
srebroonie
authored andcommitted
regulator: rk808: fix asynchronous probing
If the probe routine fails with -EPROBE_DEFER after taking over the OF node from its parent driver, reprobing triggers pinctrl_bind_pins() and that will fail. Fix this by setting of_node_reused, so that the device does not try to setup pin muxing. For me this always happens once the driver is marked to prefer async probing and never happens without that flag. Fixes: 259b93b ("regulator: Set PROBE_PREFER_ASYNCHRONOUS for drivers that existed in 4.14") Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Link: https://lore.kernel.org/r/20230504173618.142075-12-sebastian.reichel@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 431cb97 commit 1b9e86d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/regulator/rk808-regulator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,6 +1336,7 @@ static int rk808_regulator_probe(struct platform_device *pdev)
13361336

13371337
config.dev = &pdev->dev;
13381338
config.dev->of_node = pdev->dev.parent->of_node;
1339+
config.dev->of_node_reused = true;
13391340
config.driver_data = pdata;
13401341
config.regmap = regmap;
13411342

0 commit comments

Comments
 (0)