]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/mips-cpu: Set IPI domain parent chip
authorMathias Kresin <dev@kresin.me>
Thu, 7 Jan 2021 21:36:03 +0000 (22:36 +0100)
committerMarc Zyngier <maz@kernel.org>
Sun, 10 Jan 2021 10:20:24 +0000 (10:20 +0000)
commitf87b924288d21893320746857cf7b7d7fc624b7f
tree4ebec8a437de5f9be50b19843d486969033a0648
parent3dc106c5ab74fc5403af693861c490e04580af77
irqchip/mips-cpu: Set IPI domain parent chip

Since commit 7e7813e6f3f3 ("genirq/irqdomain: Allow partial trimming of
irq_data hierarchy") the irq_data chain is valided.

The irq_domain_trim_hierarchy() function doesn't consider the irq + ipi
domain hierarchy as valid, since the ipi domain has the irq domain set
as parent, but the parent domain has no chip set. Hence the boot ends in
a kernel panic.

Set the chip for the parent domain as it is done in the mips gic irq
driver, to have a valid irq_data chain.

Fixes: a3c5caf685fe ("irqchip: mips-cpu: Introduce IPI IRQ domain support")
Cc: <stable@vger.kernel.org> # v5.10+
Signed-off-by: Mathias Kresin <dev@kresin.me>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210107213603.1637781-1-dev@kresin.me
drivers/irqchip/irq-mips-cpu.c