aboutsummaryrefslogtreecommitdiffstats
path: root/packages/ixp425-eth/files/intdriven.patch
blob: af3452f6527eb55f47506060391831dc855ad20f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
--- ixp425-eth-1.1-r4/ixp425_eth.c	2005-06-16 00:47:55.360598896 -0700
+++ ixp425-eth-1.1-r4/ixp425_eth.c	2005-06-16 18:42:09.840377651 -0700
@@ -1636,6 +1636,7 @@
     return 0;
 }
 
+#if 0 /* UNUSED - used for polling */
 /* The QMgr dispatch entry point can be called from the 
  * IXP425_INT_LVL_QM1 irq (which will trigger
  * an interrupt for every packet) or a timer (which will
@@ -1686,7 +1687,7 @@
      */
     if (request_irq(IXP425_INT_LVL_QM1,
                     dev_qmgr_os_isr,
-                    SA_SHIRQ,
+                    SA_SHIRQ | SA_SAMPLE_RANDOM,
                     DRV_NAME,
                     (void *)IRQ_ANY_PARAMETER))
     {
@@ -1710,6 +1711,7 @@
   }
   return 0;
 }
+#endif
 
 /* Enable the MAC port.
  * Called on do_dev_open, dev_tx_timeout and mtu size changes
@@ -2234,7 +2236,7 @@
      */
     if (request_irq(IXP425_INT_LVL_QM1,
                     dev_qmgr_os_isr,
-                    SA_SHIRQ,
+                    SA_SHIRQ | SA_SAMPLE_RANDOM,
                     DRV_NAME,
                     (void *)IRQ_ANY_PARAMETER))
     {
@@ -2669,6 +2671,10 @@
 
     TRACE;
 
+#if 0 /* DISABLE polling */
+    /* Enable Interrupt driven driver
+     * see http://www.nslu2-linux.org/wiki/OpenSlug/StabilizeEthernetDriver
+     */
     if (no_csr_init == 0) /* module parameter */
     {
       /* The QMgr dispatch entry point is called from the IXP425_INT_LVL_QM1 irq
@@ -2681,6 +2687,7 @@
            return res;
 	}
     }
+#endif
 
     TRACE;