mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* IRQ_NOAUTOEN in __set_irq_handler
@ 2008-05-06 12:43 Esben Haabendal
  0 siblings, 0 replies; only message in thread
From: Esben Haabendal @ 2008-05-06 12:43 UTC (permalink / raw)
  To: linux-kernel

Would it be possible to have support for IRQ_NOAUTOEN in
__set_irq_handler and thus set_irq_chained_handler?

Something like:

@@ -582,14 +582,19 @@ __set_irq_handler(unsigned int irq,
irq_flow_handler_t handle, int is_chained,
 	}
 	desc->handle_irq = handle;
 	desc->name = name;

 	if (handle != handle_bad_irq && is_chained) {
-		desc->status &= ~IRQ_DISABLED;
 		desc->status |= IRQ_NOREQUEST | IRQ_NOPROBE;
-		desc->depth = 0;
-		desc->chip->unmask(irq);
+		if (!(desc->status & IRQ_NOAUTOEN)) {
+			desc->depth = 0;
+			desc->status &= ~IRQ_DISABLED;
+			desc->chip->unmask(irq);
+		} else {
+			/* Undo nested disables: */
+			desc->depth = 1;
+		}
 	}
 	spin_unlock_irqrestore(&desc->lock, flags);
 }

 void

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

only message in thread, other threads:[~2008-05-06 12:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-06 12:43 IRQ_NOAUTOEN in __set_irq_handler Esben Haabendal

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

all inboxes | Powered by JetHome®