irqchip: Fix probing deferal when using IRQCHIP_PLATFORM_DRIVER helpers
authorMarc Zyngier <maz@kernel.org>
Thu, 6 Aug 2020 09:57:45 +0000 (10:57 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 17 Aug 2020 07:06:11 +0000 (08:06 +0100)
commit7828a3ef8646fb2e69ed45616c8453a037ca7867
tree689ca538b0be9176bbaa8b290d7ef07215f8f36b
parent6da45875fa174d9db238ea0d6846061e68b41b6d
irqchip: Fix probing deferal when using IRQCHIP_PLATFORM_DRIVER helpers

When probing an interrupt controller that is behind a parent,
we try to check whether the parent domain is available as
an indication that we can actually try to probe.

Unfortunately, we are checking this with the firmware node of
the about to be probed device, not the parent. This is obviously
bound to fail.

Instead, use the parent node.

Fixes: f8410e626569 ("irqchip: Add IRQCHIP_PLATFORM_DRIVER_BEGIN/END and IRQCHIP_MATCH helper macros")
Reported-by: John Stultz <john.stultz@linaro.org>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
drivers/irqchip/irqchip.c