From: Frank Mori Hess Date: Mon, 23 Jul 2001 15:27:38 +0000 (+0000) Subject: more lines to clear that interrupt X-Git-Tag: r0_7_60~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=af8e5912542110dcf4100ea1129c9a3481077961;p=comedi.git more lines to clear that interrupt --- diff --git a/comedi/drivers/cb_pcidas.c b/comedi/drivers/cb_pcidas.c index c9ff5ac1..6f261b37 100644 --- a/comedi/drivers/cb_pcidas.c +++ b/comedi/drivers/cb_pcidas.c @@ -881,6 +881,16 @@ static void cb_pcidas_interrupt(int irq, void *d, struct pt_regs *regs) #ifdef CB_PCIDAS_DEBUG rt_printk("status bits are 0x%x\n", status); rt_printk("intcsr is 0x%x\n", inl(devpriv->s5933_config + INTCSR)); + +// clear s5933 interrupt +if(inl(devpriv->s5933_config + INTCSR) & 0x800000) +{ + outl(devpriv->s5933_intcsr_bits | INBOX_INTR_STATUS, devpriv->s5933_config + INTCSR); + if(inl(devpriv->s5933_config + INTCSR) & 0x800000) + rt_printk("manual clear failed, bits are 0x%x\n", inl(devpriv->s5933_config + INTCSR)); +}else{ + rt_printk("amcc interrupt is already clear\n"); +} #endif return; }