Subject: [patch 1/6] sky2: dual port NAPI problem

From: Stephen Hemminger <[email-masked]>
Date: Wed, 20 Dec 2006 13:06:33 -0800

Shutting down port 0 disables the NAPI poll used by both ports.
The long term fix will be to separate NAPI object from net device
until then just reenable if needed.

Signed-off-by: Stephen Hemminger <[email-masked]>

--- sky2-2.6.orig/drivers/net/sky2.c	2006-12-18 12:46:59.000000000 -0800
+++ sky2-2.6/drivers/net/sky2.c	2006-12-18 12:47:30.000000000 -0800
@@ -1511,6 +1511,13 @@
 	imask &= ~portirq_msk[port];
 	sky2_write32(hw, B0_IMSK, imask);
 
+	/*
+	 * Both ports share the NAPI poll on port 0, so if necessary undo the
+	 * the disable that is done in dev_close.
+	 */
+	if (sky2->port == 0 && hw->ports > 1)
+		netif_poll_enable(dev);
+
 	sky2_gmac_reset(hw, port);
 
 	/* Stop transmitter */

--
Stephen Hemminger <[email-masked]>