patch-2.4.19 linux-2.4.19/drivers/net/mii.c

Next file: linux-2.4.19/drivers/net/myri_sbus.c
Previous file: linux-2.4.19/drivers/net/macsonic.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/net/mii.c linux-2.4.19/drivers/net/mii.c
@@ -146,6 +146,8 @@
 
 int mii_link_ok (struct mii_if_info *mii)
 {
+	/* first, a dummy read, needed to latch some MII phys */
+	mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR);
 	if (mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR) & BMSR_LSTATUS)
 		return 1;
 	return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)