Skip to contentSkip to conversation

Linkbeat detection for eepro100

PATCH Joerg Mayer 1 participant 1 message Jan 28, 2002 Networking

lore
Share & tools
lore
#0 lore raw

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.

net/eepro100.c renamed from net/eepro100.c.distrib +2 -2
@@ -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) {