]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
irqchip/loongson-pch-lpc: Extract non-ACPI-related code from ACPI init
authorIcenowy Zheng <zhengxingda@iscas.ac.cn>
Sat, 21 Mar 2026 09:20:30 +0000 (17:20 +0800)
committerThomas Gleixner <tglx@kernel.org>
Thu, 26 Mar 2026 15:15:03 +0000 (16:15 +0100)
commit29c10a0af04e9b3eb7b06e72e9f75fccca45205e
tree3975d7a8bc95cf97c6a03650ddc9f7644fd2c3b1
parent41bf87bcac02cd788d4325415d4b2e31bf2a694d
irqchip/loongson-pch-lpc: Extract non-ACPI-related code from ACPI init

A lot of code can be shared between the existing ACPI init flow with the
upcoming OF init flow.

Extract it into a dedicated function.

The re-ordering of parent interrupt allocation requires the architecture
code to reserve legacy interrupts from the dynamic allocation by overriding
arch_dynirq_lower_bound(), otherwise the parent of LPC irqchip will be
allocated in the intended static range of LPC interrupts, which leads to
allocation failure of LPC interrupts.

Co-developed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
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-5-zhengxingda@iscas.ac.cn
drivers/irqchip/irq-loongson-pch-lpc.c