]> Git Repo - J-linux.git/commitdiff
pmdomain: imx: Make imx pgc power domain also set the fwnode
authorPengfei Li <[email protected]>
Fri, 20 Oct 2023 18:59:49 +0000 (02:59 +0800)
committerUlf Hansson <[email protected]>
Thu, 26 Oct 2023 13:55:05 +0000 (15:55 +0200)
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 <[email protected]>
Tested-by: Emil Kronborg <[email protected]>
Fixes: 3fb16866b51d ("driver core: fw_devlink: Make cycle detection more robust")
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
drivers/pmdomain/imx/gpc.c

index 90a8b2c0676ff3affa2ca3ddad01f47cfa518e9a..419ed15cc10c42b0725f59665ac7f153bd76665b 100644 (file)
@@ -498,6 +498,7 @@ static int imx_gpc_probe(struct platform_device *pdev)
 
                        pd_pdev->dev.parent = &pdev->dev;
                        pd_pdev->dev.of_node = np;
+                       pd_pdev->dev.fwnode = of_fwnode_handle(np);
 
                        ret = platform_device_add(pd_pdev);
                        if (ret) {
This page took 0.046059 seconds and 4 git commands to generate.