]> rtime.felk.cvut.cz Git - lincan.git/commitdiff
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 5db8b82e8ed298a50b92839d21f9ff73b3982dd4..69a2e0fb599560fe349fa84098b3ac299e44f461 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 */
 
                /*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());
                        can_enable_irq(chip->chip_irq);
 
                RTL_MARK_SUSPENDED(pthread_self());