projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa2bf84
)
Add check for uncleared interrupts, enabled only when debugging.
author
David Schleef
<ds@schleef.org>
Sun, 10 Mar 2002 20:34:27 +0000
(20:34 +0000)
committer
David Schleef
<ds@schleef.org>
Sun, 10 Mar 2002 20:34:27 +0000
(20:34 +0000)
comedi/drivers/ni_mio_common.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/ni_mio_common.c
b/comedi/drivers/ni_mio_common.c
index a10392f24906f245398c66b4cae3435bc0eb2106..5697df27e0a2efb3c3f8372d28877823f590e393 100644
(file)
--- a/
comedi/drivers/ni_mio_common.c
+++ b/
comedi/drivers/ni_mio_common.c
@@
-328,6
+328,15
@@
static void ni_E_interrupt(int irq,void *d,struct pt_regs * regs)
if(a_status&Interrupt_A_St)handle_a_interrupt(dev,a_status);
if(b_status&Interrupt_B_St)handle_b_interrupt(dev,b_status);
+#ifdef DEBUG_INTERRUPT
+ a_status=win_in(AI_Status_1_Register);
+ b_status=win_in(AO_Status_1_Register);
+ if(a_status&Interrupt_A_St || b_status&Interrupt_B_St){
+ printk("ni_mio_common: BUG, didn't clear interrupt. disabling.\n");
+ win_out(0,Interrupt_Control_Register);
+ }
+#endif
+
win_restore(wsave);
}