Skip to contentSkip to conversation

M68K: Vector ints need a valid interrupt handler

PATCH In review Thomas Bogendoerfer 2 participants 2 messages Jun 3, 2013 – Jun 16, 2013 m68k architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 M68K: Vector ints need a valid interrupt handler

To get vectored interrupts working we need to switch from the default handler handle_bad_irq() to something more sensible. Tested on a MVME177 board.

---

 arch/m68k/kernel/ints.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/m68k/kernel/ints.c +1 -1
index 6b32b64..4d7da38 100644
@@ -101,7 +101,7 @@ void __init m68k_setup_user_interrupt(unsigned int vec, unsigned int cnt)
 	BUG_ON(IRQ_USER + cnt > NR_IRQS);
 	m68k_first_user_vec = vec;
 	for (i = 0; i < cnt; i++)
-		irq_set_chip(IRQ_USER + i, &user_irq_chip);
+		irq_set_chip_and_handler(i, &user_irq_chip, handle_simple_irq);
 	*user_irqvec_fixup = vec - IRQ_USER;
 	flush_icache();
 }
#1 lore raw
Quoted 5 lines · Thomas Bogendoerfer

To get vectored interrupts working we need to switch from the default handler handle_bad_irq() to something more sensible. Tested on a MVME177 board.

Thanks, queued for 3.11.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds