From 9143c8d93e5c6cd43da25b711e673954f0b1c64f Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 14 Dec 2001 19:48:48 +0000 Subject: [PATCH] moved clearing of interrupt to beginning of interrupt handler from end. --- comedi/drivers/das1800.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/comedi/drivers/das1800.c b/comedi/drivers/das1800.c index de37cf45..39c82df1 100644 --- a/comedi/drivers/das1800.c +++ b/comedi/drivers/das1800.c @@ -103,7 +103,7 @@ TODO: #include #include #include -#include +#include #include #include #include @@ -897,19 +897,20 @@ static void das1800_interrupt(int irq, void *d, struct pt_regs *regs) spin_lock(&dev->spinlock); status = inb(dev->iobase + DAS1800_STATUS); + /* clear interrupt */ + outb(FNE, dev->iobase + DAS1800_STATUS); + /* if interrupt was not caused by das-1800 */ if(!(status & INT)) { comedi_error(dev, "spurious interrupt"); + rt_printk("status 0x%x\n", status); spin_unlock(&dev->spinlock); return; } das1800_ai_handler(dev, status); - /* clear interrupt */ - outb(FNE, dev->iobase + DAS1800_STATUS); - spin_unlock(&dev->spinlock); } -- 2.26.2