irqchip/realtek-rtl: use parent interrupts
authorSander Vanheule <sander@svanheule.net>
Mon, 19 Sep 2022 20:24:43 +0000 (22:24 +0200)
committerMarc Zyngier <maz@kernel.org>
Wed, 28 Sep 2022 13:17:10 +0000 (14:17 +0100)
commit9070f1ce31c5027821d5f37e9ca8dfb23158e457
tree92894150f88a4cc671adcec319f9feb306b8bab7
parenta3e77b70f19240f8a52bbe1c703aa8db6a8f7450
irqchip/realtek-rtl: use parent interrupts

The interrupt-map property for "realtek,rtl-intc" has been deprecated in
favor of a list of parent interrupts. Drop the open-coded parser for
interrupt-map, and use the first parent interrupt instead. If no parent
was provided, the driver will assume that this is the first hardware
interrupt of the SoC's MIPS CPU for compatibility with the legacy binding.

All SoC interrupts were treated equally, independent of which output
they were actually routed to. This means the driver might as well route
all interrupts to the first output, and achieve the same behaviour.

Without the interrupt-map property, interrupt usage information is no
longer available at initialisation. Routing setup will now happen later,
when a hardware interrupt is mapped by the subsystem.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/5f901a82eaa9d97cadf6e9b73a894a92f3f83b7c.1663617425.git.sander@svanheule.net
drivers/irqchip/irq-realtek-rtl.c