mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
irqchip/irq-imx-gpcv2: Mark fwnode device as not initialized
Since this device is only partially initialized by the irqchip driver, we need to mark the fwnode device as not initialized. This is to let fw_devlink know that the device will be completely initialized at a later point. That way, fw_devlink will continue to defer the probe of the power domain consumers till the power domain driver successfully binds to the struct device and completes the initialization of the device. Signed-off-by: Saravana Kannan <saravanak@google.com> Tested-by: Douglas Anderson <dianders@chromium.org> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Tested-by: Luca Weiss <luca.weiss@fairphone.com> # qcom/sm7225-fairphone-fp4 Link: https://lore.kernel.org/r/20230207014207.1678715-11-saravanak@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4a032827da
commit
e2bbea770c
@ -283,6 +283,7 @@ static int __init imx_gpcv2_irqchip_init(struct device_node *node,
|
||||
* later the GPC power domain driver will not be skipped.
|
||||
*/
|
||||
of_node_clear_flag(node, OF_POPULATED);
|
||||
fwnode_dev_initialized(domain->fwnode, false);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1518,7 +1518,7 @@ static int imx_gpcv2_probe(struct platform_device *pdev)
|
||||
domain->genpd.power_off = imx_pgc_power_down;
|
||||
|
||||
pd_pdev->dev.parent = dev;
|
||||
pd_pdev->dev.of_node = np;
|
||||
device_set_node(&pd_pdev->dev, of_fwnode_handle(np));
|
||||
|
||||
ret = platform_device_add(pd_pdev);
|
||||
if (ret) {
|
||||
|
Loading…
Reference in New Issue
Block a user