From af8e5912542110dcf4100ea1129c9a3481077961 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 23 Jul 2001 15:27:38 +0000 Subject: [PATCH] more lines to clear that interrupt --- comedi/drivers/cb_pcidas.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; } -- 2.26.2