]> www.infradead.org Git - users/jedix/linux-maple.git/commit
irqdomain: Always associate interrupts for legacy domains
authorMatti Vaittinen <mazziesaccount@gmail.com>
Tue, 13 Aug 2024 11:34:27 +0000 (14:34 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 20 Aug 2024 15:12:43 +0000 (17:12 +0200)
commit24d02c4e53e2f02da16b2ae8a1bc92553110ca25
tree9b79698b6e42318984220cbbf6c52d01acedfc84
parent7b9414cb2d370b7c5149b37f585b077af2ae211b
irqdomain: Always associate interrupts for legacy domains

The unification of irq_domain_create_legacy() missed the fact that
interrupts must be associated even when the Linux interrupt number provided
in the first_irq argument is 0.

This breaks all call sites of irq_domain_create_legacy() which supply 0 as
the first_irq argument.

Enforce the association for legacy domains in __irq_domain_instantiate() to
cure this.

[ tglx: Massaged it slightly. ]

Fixes: 70114e7f7585 ("irqdomain: Simplify simple and legacy domain creation")
Reported-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by Matti Vaittinen <mazziesaccount@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Link: https://lore.kernel.org/all/c3379142-10bc-4f14-b8ac-a46927aeac38@gmail.com
kernel/irq/irqdomain.c