VME interrupts should be reenabled in VME driver, not here.
authorwentasah <wentasah>
Wed, 1 Sep 2004 13:34:01 +0000 (13:34 +0000)
committerwentasah <wentasah>
Wed, 1 Sep 2004 13:34:01 +0000 (13:34 +0000)
lincan/src/can_devrtl.c

index 5db8b82..69a2e0f 100644 (file)
@@ -132,7 +132,7 @@ void * can_chip_worker_thread(void *arg)
 
                /*re-enable chip IRQ, I am not sure, if this is required,
                  but it seems to not work without that */
-               if(chip->chip_irq>=0)
+               if(chip->chip_irq>=0 && (chip->flags & CHIP_IRQ_VME) == 0)
                        can_enable_irq(chip->chip_irq);
 
                RTL_MARK_SUSPENDED(pthread_self());