[tip: irq/drivers] Revert "irqchip: nvic: Fix offset for Interrupt Priority Offsets"

From: tip-bot2 for Yoshifumi SHU

Date: Tue Dec 01 2026 - 15:16:24 EST


The following commit has been merged into the irq/drivers branch of tip:

Commit-ID: 75b520e4a276cbd5c1c3ad5764159530de5f4c73
Gitweb: https://git.kernel.org/tip/75b520e4a276cbd5c1c3ad5764159530de5f4c73
Author: Yoshifumi SHU <envzhu@xxxxxxxxx>
AuthorDate: Fri, 27 Nov 2026 21:28:01 +09:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Tue, 01 Dec 2026 21:12:22 +01:00

Revert "irqchip: nvic: Fix offset for Interrupt Priority Offsets"

This reverts commit c5e0cbe2858d278a27d5b3fe31890aea5be064c4.

nvic_base is mapped to 0xe000e100 (NVIC_ISER0). Thus, the Interrupt
Priority Registers (NVIC_IPRx, at 0xe000e400) are offset by 0x300 from
nvic_base, not 0x400. The reverted commit overlooked that nvic_base is
already offset by 0x100 from 0xe000e000 and incorrectly changed
NVIC_IPR.

Fixes: c5e0cbe2858d ("irqchip: nvic: Fix offset for Interrupt Priority Offsets")
Signed-off-by: Yoshifumi SHU <envzhu@xxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Acked-by: Vladimir Murzin <vladimir.murzin@xxxxxxx>
Cc: stable@xxxxxxxxxxxxxxx
Link: https://lore.kernel.org/linux-arm-kernel/b0be3be5-3a7d-469e-9166-a3414a52cbea@xxxxxxx/
Link: https://patch.msgid.link/20261127122801.4189591-1-envzhu@xxxxxxxxx
---
drivers/irqchip/irq-nvic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-nvic.c b/drivers/irqchip/irq-nvic.c
index 2191a2b..9438891 100644
--- a/drivers/irqchip/irq-nvic.c
+++ b/drivers/irqchip/irq-nvic.c
@@ -26,7 +26,7 @@

#define NVIC_ISER 0x000
#define NVIC_ICER 0x080
-#define NVIC_IPR 0x400
+#define NVIC_IPR 0x300

#define NVIC_MAX_BANKS 16
/*