[etherlab-users] bugfix for kernel 2.6.37 e1000 driver

William Montgomery william at opinicus.com
Sat Jun 9 21:02:35 CEST 2012


I had reported a kernel oops on this list a couple of months ago.  The 
oops occurs when starting the e1000 driver on kernel 2.6.37.  The 
following patch was based on a hint from Andreas Stewering-Bone and 
fixes the problem for me:

--- start patch ---
diff -Naur ethercat-1.5.1/devices/e1000/e1000_main-2.6.37-ethercat.c 
ethercat-1.5.1.wdm/devices/e1000/e1000_main-2.6.37-ethercat.c
--- ethercat-1.5.1/devices/e1000/e1000_main-2.6.37-ethercat.c   
2012-01-30 09:26:20.000000000 -0500
+++ ethercat-1.5.1.wdm/devices/e1000/e1000_main-2.6.37-ethercat.c       
2012-06-07 11:59:43.000000000 -0400
@@ -1393,7 +1393,9 @@

         e1000_irq_enable(adapter);

-       netif_start_queue(netdev);
+       if (adapter->ecdev) {
+               netif_start_queue(netdev);
+       }

         /* fire a link status change interrupt to start the watchdog */
         ew32(ICS, E1000_ICS_LSC);

--- end patch ---

Regards,
Wm




More information about the Etherlab-users mailing list