From 68412827ac8d4e42499fb8db8f2707e2cdb9d50c Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 17 Mar 2002 00:47:04 +0000 Subject: [PATCH] Fix problems when mite debugging is turned off --- comedi/drivers/ni_pcidio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); -- 2.26.2