Skip to content

Commit 10276f3

Browse files
kmaincentPaolo Abeni
authored andcommitted
net: pse-pd: Fix missing PI of_node description
The PI of_node was not assigned in the regulator_config structure, leading to failures in resolving the correct supply when different power supplies are assigned to multiple PIs of a PSE controller. This fix ensures that the of_node is properly set in the regulator_config, allowing accurate supply resolution for each PI. Acked-by: Oleksij Rempel <[email protected]> Signed-off-by: Kory Maincent <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent 7f076ce commit 10276f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/pse-pd/pse_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ devm_pse_pi_regulator_register(struct pse_controller_dev *pcdev,
422422
rconfig.dev = pcdev->dev;
423423
rconfig.driver_data = pcdev;
424424
rconfig.init_data = rinit_data;
425+
rconfig.of_node = pcdev->pi[id].np;
425426

426427
rdev = devm_regulator_register(pcdev->dev, rdesc, &rconfig);
427428
if (IS_ERR(rdev)) {

0 commit comments

Comments
 (0)