Commit 3d2d1221 authored by Jeff Garzik's avatar Jeff Garzik

eepro100 net driver link beat detection improvement.

Control interface running flag correctly, via netif_carrier_{on,off},
rather than manipulating the IFF_RUNNING bit directly from within
the driver (ug).
Contributors: Joerg Mayer, Stefans Rumpf
parent 28b64bb3
......@@ -1103,9 +1103,9 @@ static void speedo_timer(unsigned long data)
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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment