]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/renesas-intc-irqpin: Use platform_get_irq_optional() to get the interrupt
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Thu, 16 Dec 2021 18:21:20 +0000 (18:21 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 20 Dec 2021 12:21:50 +0000 (12:21 +0000)
commit5af1897896238d9e48af30b18b8938ff22223180
tree83a6bcbef1341c2db168ad4f8fc66b2440294608
parent4e67e20fd0f28fa48e542d05e843df475176c919
irqchip/renesas-intc-irqpin: Use platform_get_irq_optional() to get the interrupt

platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static
allocation of IRQ resources in DT core code, this causes an issue
when using hierarchical interrupt domains using "interrupts" property
in the node as this bypassed the hierarchical setup and messed up the
irq chaining.

In preparation for removal of static setup of IRQ resource from DT core
code use platform_get_irq_optional().

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211216182121.5323-1-prabhakar.mahadev-lad.rj@bp.renesas.com
drivers/irqchip/irq-renesas-intc-irqpin.c