Skip to content

Commit 374de39

Browse files
rocflyer1Ulf Hansson
authored andcommitted
pmdomain: imx: Make imx pgc power domain also set the fwnode
Currently, The imx pgc power domain doesn't set the fwnode pointer, which results in supply regulator device can't get consumer imx pgc power domain device from fwnode when creating a link. This causes the driver core to instead try to create a link between the parent gpc device of imx pgc power domain device and supply regulator device. However, at this point, the gpc device has already been bound, and the link creation will fail. So adding the fwnode pointer to the imx pgc power domain device will fix this issue. Signed-off-by: Pengfei Li <pengfei.li_1@nxp.com> Tested-by: Emil Kronborg <emil.kronborg@protonmail.com> Fixes: 3fb1686 ("driver core: fw_devlink: Make cycle detection more robust") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20231020185949.537083-1-pengfei.li_1@nxp.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 2e75396 commit 374de39

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/pmdomain/imx

drivers/pmdomain/imx/gpc.c

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

499499
pd_pdev->dev.parent = &pdev->dev;
500500
pd_pdev->dev.of_node = np;
501+
pd_pdev->dev.fwnode = of_fwnode_handle(np);
501502

502503
ret = platform_device_add(pd_pdev);
503504
if (ret) {

0 commit comments

Comments
 (0)