summaryrefslogtreecommitdiff
path: root/sys/dev/mii/brgphy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/mii/brgphy.c')
-rw-r--r--sys/dev/mii/brgphy.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/mii/brgphy.c b/sys/dev/mii/brgphy.c
index c000ebc0902..8502d93ee4c 100644
--- a/sys/dev/mii/brgphy.c
+++ b/sys/dev/mii/brgphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: brgphy.c,v 1.25 2005/06/11 06:12:14 brad Exp $ */
+/* $OpenBSD: brgphy.c,v 1.26 2005/06/29 04:37:07 brad Exp $ */
/*
* Copyright (c) 2000
@@ -399,9 +399,6 @@ brgphy_loop(struct mii_softc *sc)
for (i = 0; i < 15000; i++) {
bmsr = PHY_READ(sc, BRGPHY_MII_BMSR);
if (!(bmsr & BRGPHY_BMSR_LINK)) {
-#if 0
- device_printf(sc->mii_dev, "looped %d\n", i);
-#endif
break;
}
DELAY(10);
@@ -417,11 +414,11 @@ brgphy_reset(struct mii_softc *sc)
mii_phy_reset(sc);
- brgphy_load_dspcode(sc);
-
ifp = sc->mii_pdata->mii_ifp;
bge_sc = ifp->if_softc;
+ brgphy_load_dspcode(sc);
+
/*
* Don't enable Ethernet@WireSpeed for the 5700 or the
* 5705 A1 and A2 chips. Make sure we only do this test