patch-2.4.3 linux/arch/ppc/kernel/ppc8xx_pic.c

Next file: linux/arch/ppc/kernel/ppc_ksyms.c
Previous file: linux/arch/ppc/kernel/pmac_setup.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.2/linux/arch/ppc/kernel/ppc8xx_pic.c linux/arch/ppc/kernel/ppc8xx_pic.c
@@ -153,6 +153,20 @@
 	irq += i8259_pic.irq_offset;
 	return (request_8xxirq(irq, handler, irqflags, devname, dev_id));
 #else
-	panic("request_irq");
+	/*
+	 * Handle other "well-known" interrupts, but panic on unknown ones.
+	 */
+	switch (irq) {
+#ifdef	IDE0_INTERRUPT
+	case IDE0_INTERRUPT:		/* fall through */
+#endif
+#ifdef	IDE1_INTERRUPT
+	case IDE1_INTERRUPT:		/* fall through */
+#endif
+		return (request_8xxirq(irq, handler, irqflags, devname, dev_id));
+	
+	default:			/* unknown IRQ -> panic */
+		panic("request_irq");
+	}
 #endif
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)