[PATCH v2 0/2] irqchip: convert ls-extirq to a platform driver

Ioana Ciornei
2025-12-05T15:57:50Z

Starting with commit 1b1f04d8271e ("of/irq: Ignore interrupt parent for
nodes without interrupts"), the ls-extirq stopped working. This is
because ls-extirq, being one of the interrupt-map property abusers,
does not pass the dt checks added by the referenced commit, making it
unable to determine its interrupt parent.

Instead of reverting the referenced commit, convert the ls-extirq to a
platform driver so that we avoid completely the irqchip_init() ->
of_irq_init() code path. This is what patch 1/2 does.

Patch 2/2 makes the parent dt nodes of ls-extirq to get probed by the
simple-pm-bus driver, for the single goal of it running
of_platform_populate(). Without this patch, the simple-pm-bus will not
get to probe on the ls-extirq nodes.

Alternative fixup routes were discussed in the following thread.
https://lore.kernel.org/all/CAL_JsqJ4q2=UJbuhfbvsbr2T+SRGXsPSXCLk6iXZid_qwYrN4g@mail.gmail.com/

Changes in v2:
- Use builtin_platform_driver since the driver cannot be built as a
module

Ioana Ciornei (2):
irqchip/ls-extirq: convert to a platform driver
bus: simple-pm-bus: probe the Layerscape SCFG node

drivers/bus/simple-pm-bus.c | 6 ++++++
drivers/irqchip/irq-ls-extirq.c | 32 +++++++++++++++++++++++++++-----
2 files changed, 33 insertions(+), 5 deletions(-)

--
2.25.1