]> rtime.felk.cvut.cz Git - lincan.git/commitdiff
Temporary fixes from RTL enabled lincan testing on VME hardware.
authorwentasah <wentasah>
Wed, 1 Sep 2004 15:14:50 +0000 (15:14 +0000)
committerwentasah <wentasah>
Wed, 1 Sep 2004 15:14:50 +0000 (15:14 +0000)
lincan/src/can_devrtl.c

index 69a2e0fb599560fe349fa84098b3ac299e44f461..c570f1bdb7a6fc4bc12a4313b2e0630c7da97ca5 100644 (file)
@@ -132,8 +132,12 @@ 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 && (chip->flags & CHIP_IRQ_VME) == 0)
-                       can_enable_irq(chip->chip_irq);
+               if(chip->chip_irq>=0) {
+                       if ((chip->flags & CHIP_IRQ_VME) == 0) can_enable_irq(chip->chip_irq);
+                       else tundra_rtl_enable_pci_irq(); 
+                       /* FIXME: Bad practice. Doesn't work with more
+                        * than one card. */
+               }
 
                RTL_MARK_SUSPENDED(pthread_self());
                if(test_and_clear_bit(MSGOBJ_WORKER_WAKE_b,&chip->pend_flags)){
 
                RTL_MARK_SUSPENDED(pthread_self());
                if(test_and_clear_bit(MSGOBJ_WORKER_WAKE_b,&chip->pend_flags)){