]> git.ipfire.org Git - thirdparty/linux.git/commit
MIPS: loongson64: Override arch_dynirq_lower_bound to reserve LPC IRQs
authorIcenowy Zheng <zhengxingda@iscas.ac.cn>
Sat, 21 Mar 2026 09:20:27 +0000 (17:20 +0800)
committerThomas Gleixner <tglx@kernel.org>
Thu, 26 Mar 2026 15:15:02 +0000 (16:15 +0100)
commit57c9c7bf52c8473a6b9b7fa3547b468c0a91bc60
tree8fede551887e28597b64a9c00eb64082cb33ab69
parent87c6dfe308afb9d514006bb42ca2dad301f4ad75
MIPS: loongson64: Override arch_dynirq_lower_bound to reserve LPC IRQs

On some Loongson 3A devices, a LPC bus is present and some legacy devices
(e.g. 8259) on it expect hardcoded low interrupt numbers. However currently
the expected low range interrupt numbers are not exempted from the dynamic
allocation, which leads to conflicts when registering LPC interrupts in the
fixed range.

Override arch_dynirq_lower_bound() to reserve these low range interrupt
numbers and prevent them from being dynamically allocated.

Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Link: https://patch.msgid.link/20260321092032.3502701-2-zhengxingda@iscas.ac.cn
arch/mips/loongson64/init.c