]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ARM: PXA: Fix cplds irqdesc allocation when using legacy mode
authorMarc Zyngier <maz@kernel.org>
Tue, 27 Apr 2021 08:00:28 +0000 (09:00 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 29 Apr 2021 12:52:30 +0000 (13:52 +0100)
commit33aa3698bac9748ff40575ec342322c04c19b750
tree8a7dba7d4ba93e19e3bafadca0dd959bf066d271
parentdebf69cfd4c618c7036a13cc4edd1faf87ce7d53
ARM: PXA: Fix cplds irqdesc allocation when using legacy mode

The Mainstone PXA platform uses CONFIG_SPARSE_IRQ, and thus we
cannot rely on the irq descriptors to be readilly allocated
before creating the irqdomain in legacy mode. The kernel then
complains loudly about not being able to associate the interrupt
in the domain -- can't blame it.

Fix it by allocating the irqdescs upfront in the legacy case.

Fixes: b68761da0111 ("ARM: PXA: Kill use of irq_create_strict_mappings()")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210426223942.GA213931@roeck-us.net
arch/arm/mach-pxa/pxa_cplds_irqs.c