2002-01-28 21:57:36

by Joerg Mayer

[permalink] [raw]
Subject: Linkbeat detection for eepro100

Hello,

based on Stefans ([email protected]) patch (Interface operative status detection)
to this list, here is support for the eepro100 driver.

ciao
Joerg
--
Joerg Mayer <[email protected]>
I found out that "pro" means "instead of" (as in proconsul). Now I know
what proactive means.


--- drivers/net/eepro100.c.distrib Mon Jan 28 22:22:34 2002
+++ drivers/net/eepro100.c Mon Jan 28 22:40:59 2002
@@ -1103,9 +1103,9 @@
mdio_read(ioaddr, phy_num, 1);
/* If link beat has returned... */
if (mdio_read(ioaddr, phy_num, 1) & 0x0004)
- dev->flags |= IFF_RUNNING;
+ netif_carrier_on(dev);
else
- dev->flags &= ~IFF_RUNNING;
+ netif_carrier_off(dev);
}
}
if (speedo_debug > 3) {