patch-2.3.47 linux/drivers/net/3c507.c

Next file: linux/drivers/net/3c515.c
Previous file: linux/drivers/net/3c505.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/drivers/net/3c507.c linux/drivers/net/3c507.c
@@ -576,8 +576,7 @@
 	/* Acknowledge the interrupt sources. */
 	ack_cmd = status & 0xf000;
 
-	if ((status & 0x0700) != 0x0200 &&
-	    (test_bit(LINK_STATE_START, &dev->state))) {
+	if ((status & 0x0700) != 0x0200 && netif_running(dev)) {
 		if (net_debug)
 			printk("%s: Command unit stopped, status %04x, restarting.\n",
 				   dev->name, status);
@@ -587,9 +586,7 @@
 		ack_cmd |= CUC_RESUME;
 	}
 
-	if ((status & 0x0070) != 0x0040  &&
-	    (test_bit(LINK_STATE_START, &dev->state)))
-	{
+	if ((status & 0x0070) != 0x0040 && netif_running(dev)) {
 		static void init_rx_bufs(struct net_device *);
 		/* The Rx unit is not ready, it must be hung.  Restart the receiver by
 		   initializing the rx buffers, and issuing an Rx start command. */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)