patch-2.3.47 linux/drivers/net/3c523.c
Next file: linux/drivers/net/3c59x.c
Previous file: linux/drivers/net/3c515.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Feb 17 09:18:47 2000
- Orig file:
v2.3.46/linux/drivers/net/3c523.c
- Orig date:
Sat Feb 12 11:22:10 2000
diff -u --recursive --new-file v2.3.46/linux/drivers/net/3c523.c linux/drivers/net/3c523.c
@@ -869,7 +869,7 @@
if (dev == NULL) {
printk(KERN_ERR "elmc-interrupt: irq %d for unknown device.\n", (int) -(((struct pt_regs *) reg_ptr)->orig_eax + 2));
return;
- } else if (!test_bit(LINK_STATE_START, &dev->state)) {
+ } else if (!netif_running(dev)) {
/* The 3c523 has this habit of generating interrupts during the
reset. I'm not sure if the ni52 has this same problem, but it's
really annoying if we haven't finished initializing it. I was
@@ -902,7 +902,7 @@
#ifndef NO_NOPCOMMANDS
if (stat & STAT_CNA) {
/* CU went 'not ready' */
- if (test_bit(LINK_STATE_START, &dev->state)) {
+ if (netif_running(dev->state)) {
printk(KERN_WARNING "%s: oops! CU has left active state. stat: %04x/%04x.\n", dev->name, (int) stat, (int) p->scb->status);
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)