From 2f13c6dc170fc5a887dcea791e73e1a695e9055d Mon Sep 17 00:00:00 2001 From: wentasah Date: Wed, 1 Sep 2004 15:14:50 +0000 Subject: [PATCH] Temporary fixes from RTL enabled lincan testing on VME hardware. --- lincan/src/can_devrtl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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)){ -- 2.39.2