From: Frank Mori Hess Date: Sat, 22 Jun 2002 20:06:41 +0000 (+0000) Subject: make sure bogus interrupts during ai insn don't cause problems X-Git-Tag: r0_7_66~187 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d42a930632a7b4e47da59ecdfe664696c77b6752;p=comedi.git make sure bogus interrupts during ai insn don't cause problems --- diff --git a/comedi/drivers/cb_pcidas64.c b/comedi/drivers/cb_pcidas64.c index 7666a0c2..c2783a9c 100644 --- a/comedi/drivers/cb_pcidas64.c +++ b/comedi/drivers/cb_pcidas64.c @@ -1999,7 +1999,8 @@ static void handle_interrupt(int irq, void *d, struct pt_regs *regs) if( status & ADC_DONE_BIT ) { DEBUG_PRINT("adc done interrupt\n"); - pio_drain_ai_fifo(dev); + if( private(dev)->ai_cmd_running ) + pio_drain_ai_fifo(dev); } // if we are have all the data, then quit