mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
FROMGIT: 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: f8410e6265 ("irqchip: Add IRQCHIP_PLATFORM_DRIVER_BEGIN/END and IRQCHIP_MATCH helper macros")
Reported-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
(cherry picked from commit 9fb883078ba68191edaee09cf4e713fec275a311
https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/irqchip-next)
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: I99cdd8ae2dbd61cddd87012d61ffa88467194e81
This commit is contained in:
parent
d7b0856eac
commit
ad29e85a9d
|
|
@ -52,7 +52,7 @@ int platform_irqchip_probe(struct platform_device *pdev)
|
|||
* interrupt controller. The actual initialization callback of this
|
||||
* interrupt controller can check for specific domains as necessary.
|
||||
*/
|
||||
if (par_np && !irq_find_matching_host(np, DOMAIN_BUS_ANY))
|
||||
if (par_np && !irq_find_matching_host(par_np, DOMAIN_BUS_ANY))
|
||||
return -EPROBE_DEFER;
|
||||
|
||||
return irq_init_cb(np, par_np);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user