Skip to content

Commit 255c039

Browse files
pH5robherring
authored andcommitted
ARM: imx6: mark GPC node as not populated after irq init to probe pm domain driver
Since IRQCHIP_DECLARE now flags the GPC node as already populated, the GPC power domain driver is never probed unless we clear the flag again. Fixes: 15cc2ed ("of/irq: Mark initialised interrupt controllers as populated") Suggested-by: Rob Herring <robh@kernel.org> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Cc: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Rob Herring <robh@kernel.org>
1 parent e55aeb6 commit 255c039

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/arm/mach-imx/gpc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@ static int __init imx_gpc_init(struct device_node *node,
271271
for (i = 0; i < IMR_NUM; i++)
272272
writel_relaxed(~0, gpc_base + GPC_IMR1 + i * 4);
273273

274+
/*
275+
* Clear the OF_POPULATED flag set in of_irq_init so that
276+
* later the GPC power domain driver will not be skipped.
277+
*/
278+
of_node_clear_flag(node, OF_POPULATED);
279+
274280
return 0;
275281
}
276282
IRQCHIP_DECLARE(imx_gpc, "fsl,imx6q-gpc", imx_gpc_init);

0 commit comments

Comments
 (0)