lkml.org 
[lkml]   [2003]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] 3/3 handle level triggered irqs on dbox2 (2.4.22-pre6)
From
Date
This one is for components of the dbox2 which cannot be set up to do
edge triggered irqs because no documentation is available. #ifdef
CONFIG_DBOX2 is put around it because other boards don't seem to need
it. Is there a better way to handle level based interrupts?
diff -Naur linux-2.4.22-pre6/arch/ppc/kernel/irq.c linux-2.4.22-pre6-dbox2/arch/ppc/kernel/irq.c
--- linux-2.4.22-pre6/arch/ppc/kernel/irq.c 2003-06-13 16:51:31.000000000 +0200
+++ linux-2.4.22-pre6-dbox2/arch/ppc/kernel/irq.c 2003-07-15 09:16:34.000000000 +0200
@@ -507,6 +507,14 @@
else if (irq_desc[irq].handler->enable)
irq_desc[irq].handler->enable(irq);
}
+
+#ifdef CONFIG_DBOX2
+ if (action) {
+ if (action->flags & SA_ONESHOT)
+ disable_irq_nosync(irq);
+ }
+#endif
+
spin_unlock(&desc->lock);
}
\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.028 / U:1.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site