From: wentasah Date: Wed, 1 Sep 2004 15:14:50 +0000 (+0000) Subject: Temporary fixes from RTL enabled lincan testing on VME hardware. X-Git-Tag: CLT_COMM_CAN-post_update-040903~1 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/commitdiff_plain/2f13c6dc170fc5a887dcea791e73e1a695e9055d Temporary fixes from RTL enabled lincan testing on VME hardware. --- diff --git a/lincan/src/can_devrtl.c b/lincan/src/can_devrtl.c index 69a2e0f..c570f1b 100644 --- a/lincan/src/can_devrtl.c +++ b/lincan/src/can_devrtl.c @@ -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 */ - 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)){