* Linkbeat detection for eepro100
@ 2002-01-28 21:57 Joerg Mayer
0 siblings, 0 replies; only message in thread
From: Joerg Mayer @ 2002-01-28 21:57 UTC (permalink / raw)
To: linux-kernel; +Cc: jgarzik
Hello,
based on Stefans (srompf@isg.de) patch (Interface operative status detection)
to this list, here is support for the eepro100 driver.
ciao
Joerg
--
Joerg Mayer <jmayer@loplof.de>
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) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-01-28 21:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-28 21:57 Linkbeat detection for eepro100 Joerg Mayer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®