Linux MIPS Architecture development
 help / color / mirror / Atom feed
* PATCH: require dev_id for shared irq
@ 2001-10-28 20:47 Bradley D. LaRonde
  0 siblings, 0 replies; only message in thread
From: Bradley D. LaRonde @ 2001-10-28 20:47 UTC (permalink / raw)
  To: ralf; +Cc: linux-mips

2001-10-28  Bradley D. LaRonde <brad@ltc.com>

- Require a dev_id for shared interrupts.

--- arch/mips/kernel/irq.c	2001/10/12 01:41:17	1.36
+++ arch/mips/kernel/irq.c	2001/10/28 20:43:19
@@ -350,18 +350,12 @@
 	int retval;
 	struct irqaction * action;
 
-#if 1
 	/*
-	 * Sanity-check: shared interrupts should REALLY pass in
-	 * a real dev-ID, otherwise we'll have trouble later trying
-	 * to figure out which interrupt is which (messes up the
-	 * interrupt freeing logic etc).
+	 * Shared interrupts require a dev_id, otherwise we can't
+	 * later figure out which interrupt to free.
 	 */
-	if (irqflags & SA_SHIRQ) {
-		if (!dev_id)
-			printk("Bad boy: %s (at 0x%x) called us without a dev_id!\n", devname, (&irq)[-1]);
-	}
-#endif
+	if ((irqflags & SA_SHIRQ) && !dev_id)
+		return -EINVAL;
 
 	if (irq >= NR_IRQS)
 		return -EINVAL;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-28 20:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-28 20:47 PATCH: require dev_id for shared irq Bradley D. LaRonde

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