of/irq: of_irq_init: add check for parent equal to child node
PATCH 1/1 of/irq: of_irq_init: add check for parent equal to child node
From: Rob Herring <[email protected]>
With the revert of "of/irq: of_irq_find_parent: check for parent equal to child" (dc9372808412edb), we need another way to handle parent node equal to the child node. This can simply be handled in of_irq_init by checking for this condition.
--- drivers/of/irq.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/of/irq.c +2 -0
@@ -424,6 +424,8 @@ void __init of_irq_init(const struct of_device_id *matches) desc->dev = np; desc->interrupt_parent =of_irq_find_parent (np); +if (desc->interrupt_parent == np) + desc->interrupt_parent =NULL ;list_add_tail (&desc->list, &intc_desc_list); }
Signature · 1 line
1.7.5.4
Quoted 8 lines · Rob Herring
From: Rob Herring <[email protected]>
With the revert of "of/irq:
of_irq_find_parent: check for parent equal to child" (dc9372808412edb), we need another way to handle parent node equal to the child node. This can simply be handled inof_irq_initby checking for this condition.Signed-off-by Rob Herring <[email protected]>
Works for me, thanks!
Cheers!
Paweł
Rob Herring wrote at Sunday, November 27, 2011 7:49 PM:
Quoted 8 lines
From: Rob Herring <[email protected]>
With the revert of "of/irq:
of_irq_find_parent: check for parent equal to child" (dc9372808412edb), we need another way to handle parent node equal to the child node. This can simply be handled inof_irq_initby checking for this condition.Signed-off-by Rob Herring <[email protected]>
This fixed the issue I was having testing a Tegra patch that converted over to the new ARM GIC bindings.
Signature · 1 line
nvpublic