Skip to content
Commit 84394f35 authored by Huacai Chen's avatar Huacai Chen Committed by Greg Kroah-Hartman
Browse files

irqchip/loongson-liointc: Set different ISRs for different cores



commit a9c3ee5d upstream.

The liointc hardware provides separate Interrupt Status Registers (ISR) for
each core. The current code uses always the ISR of core #0, which works
during boot because by default all interrupts are routed to core #0.

When the interrupt routing changes in the firmware configuration then this
causes interrupts to be lost because they are not configured in the
corresponding core.

Use the core index to access the correct ISR instead of a hardcoded 0.

[ tglx: Massaged changelog ]

Fixes: 0858ed03 ("irqchip/loongson-liointc: Add ACPI init support")
Co-developed-by: default avatarTianli Xiong <xiongtianli@loongson.cn>
Signed-off-by: default avatarTianli Xiong <xiongtianli@loongson.cn>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20240622043338.1566945-1-chenhuacai@loongson.cn


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 71af0f2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment