From 9ad729790e6a3876569a9766b287f29211db9c7f Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 29 Sep 2004 12:28:26 +0000 Subject: [PATCH] fix for shared interrupt bug from steve.sharples@nottingham.ac.uk --- comedi/drivers/amplc_pci230.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/comedi/drivers/amplc_pci230.c b/comedi/drivers/amplc_pci230.c index 987118ae..b9bb9ec9 100644 --- a/comedi/drivers/amplc_pci230.c +++ b/comedi/drivers/amplc_pci230.c @@ -1133,6 +1133,10 @@ static irqreturn_t pci230_interrupt(int irq, void *d, struct pt_regs *regs) /* Read interrupt status/enable register. */ status_int = inb(devpriv->pci_iobase + PCI230_INT_SCE); + if (status_int == PCI230_INT_DISABLE) { + return IRQ_NONE; + } + /* Disable all of board's interrupts. * (Only those interrrupts that need re-enabling, are, later in the handler). */ devpriv->ier = PCI230_INT_DISABLE; @@ -1144,9 +1148,6 @@ static irqreturn_t pci230_interrupt(int irq, void *d, struct pt_regs *regs) * However, at present (Comedi-0.7.60) does not allow concurrent * execution of commands, instructions or a mixture of the two. */ - if (status_int == PCI230_INT_DISABLE) { - return IRQ_NONE; - } if (status_int & PCI230_INT_ZCLK_CT1) { s = dev->write_subdev; -- 2.26.2