[svn-commits] mattf: trunk r1854 - /trunk/wct4xxp/base.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Jan 18 16:31:18 MST 2007


Author: mattf
Date: Thu Jan 18 17:31:18 2007
New Revision: 1854

URL: http://svn.digium.com/view/zaptel?view=rev&rev=1854
Log:
Improve IRQ handling when sharing with other cards.

Modified:
    trunk/wct4xxp/base.c

Modified: trunk/wct4xxp/base.c
URL: http://svn.digium.com/view/zaptel/trunk/wct4xxp/base.c?view=diff&rev=1854&r1=1853&r2=1854
==============================================================================
--- trunk/wct4xxp/base.c (original)
+++ trunk/wct4xxp/base.c Thu Jan 18 17:31:18 2007
@@ -2843,9 +2843,6 @@
 	inirq = 1;
 	/* Make sure it's really for us */
 	status = t4_pci_in(wc, WC_INTR);
-#if 1 
-	t4_pci_out(wc, WC_INTR, status & 0x00000008);
-#endif
 
 	/* Ignore if it's not for us */
 	if (!(status & 0x7)) {
@@ -2855,6 +2852,10 @@
 		return;
 #endif		
 	}
+
+#ifdef ENABLE_WORKQUEUES
+	t4_pci_out(wc, WC_INTR, status & 0x00000008);
+#endif
 
 	if (!wc->spansstarted) {
 		printk("Not prepped yet!\n");



More information about the svn-commits mailing list