Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] alpha: marvel: Fix irq_set_status_flags to use correct IRQ number
@ 2026-05-28 23:05 Matt Turner
  2026-05-28 23:05 ` [PATCH 2/2] alpha: marvel: Fix lock ordering in init_io7_irqs() Matt Turner
  2026-05-29 10:13 ` [PATCH 1/2] alpha: marvel: Fix irq_set_status_flags to use correct IRQ number Magnus Lindholm
  0 siblings, 2 replies; 4+ messages in thread
From: Matt Turner @ 2026-05-28 23:05 UTC (permalink / raw)
  To: linux-alpha
  Cc: linux-kernel, Richard Henderson, Magnus Lindholm, Thomas Gleixner,
	Matt Turner, stable

Pass base + i to irq_set_status_flags() to match the IRQ number
used in irq_set_chip_and_handler(). Previously, IRQ_LEVEL was set
on the wrong (low-numbered) IRQ descriptors rather than the IO7
IRQs at base + i.

Cc: stable@vger.kernel.org
Fixes: 08876fe8519c ("alpha: marvel: Convert irq_chip functions")
Signed-off-by: Matt Turner <mattst88@gmail.com>
---
 arch/alpha/kernel/sys_marvel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git ./arch/alpha/kernel/sys_marvel.c ./arch/alpha/kernel/sys_marvel.c
index 1f99b03effc2..bebeea3c286d 100644
--- ./arch/alpha/kernel/sys_marvel.c
+++ ./arch/alpha/kernel/sys_marvel.c
@@ -275,7 +275,7 @@ init_io7_irqs(struct io7 *io7,
 	/* Set up the lsi irqs.  */
 	for (i = 0; i < 128; ++i) {
 		irq_set_chip_and_handler(base + i, lsi_ops, handle_level_irq);
-		irq_set_status_flags(i, IRQ_LEVEL);
+		irq_set_status_flags(base + i, IRQ_LEVEL);
 	}
 
 	/* Disable the implemented irqs in hardware.  */
@@ -289,7 +289,7 @@ init_io7_irqs(struct io7 *io7,
 	/* Set up the msi irqs.  */
 	for (i = 128; i < (128 + 512); ++i) {
 		irq_set_chip_and_handler(base + i, msi_ops, handle_level_irq);
-		irq_set_status_flags(i, IRQ_LEVEL);
+		irq_set_status_flags(base + i, IRQ_LEVEL);
 	}
 
 	for (i = 0; i < 16; ++i)
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-05-29 10:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-28 23:05 [PATCH 1/2] alpha: marvel: Fix irq_set_status_flags to use correct IRQ number Matt Turner
2026-05-28 23:05 ` [PATCH 2/2] alpha: marvel: Fix lock ordering in init_io7_irqs() Matt Turner
2026-05-29 10:16   ` Magnus Lindholm
2026-05-29 10:13 ` [PATCH 1/2] alpha: marvel: Fix irq_set_status_flags to use correct IRQ number Magnus Lindholm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox