From: David Schleef Date: Sun, 17 Mar 2002 00:47:04 +0000 (+0000) Subject: Fix problems when mite debugging is turned off X-Git-Tag: r0_7_64~51 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=68412827ac8d4e42499fb8db8f2707e2cdb9d50c;p=comedi.git Fix problems when mite debugging is turned off --- diff --git a/comedi/drivers/ni_pcidio.c b/comedi/drivers/ni_pcidio.c index 2715bd15..d2a790b1 100644 --- a/comedi/drivers/ni_pcidio.c +++ b/comedi/drivers/ni_pcidio.c @@ -406,7 +406,9 @@ static void nidio_interrupt(int irq, void *d, struct pt_regs *regs) status,flags,m_status); ni_pcidio_print_flags(flags); ni_pcidio_print_status(status); +#ifdef MITE_DEBUG mite_print_chsr(m_status); +#endif //printk("mite_bytes_transferred: %d\n",mite_bytes_transferred(mite,1)); //mite_dump_regs(mite); @@ -436,7 +438,7 @@ static void nidio_interrupt(int irq, void *d, struct pt_regs *regs) writel(CHOR_CLRDONE, mite->mite_io_addr + MITE_CHOR + CHAN_OFFSET(1)); } - if(m_status & ~(CHSR_INT | CHSR_LINKC | CHSR_DONE | CHSR_DRDY)){ + if(m_status & ~(CHSR_INT | CHSR_LINKC | CHSR_DONE | CHSR_DRDY | CHSR_DRQ1)){ DPRINTK("unknown mite interrupt, disabling IRQ\n"); writel(CHOR_DMARESET, mite->mite_io_addr + MITE_CHOR + CHAN_OFFSET(1));