Back out a chunk of rev 1.34 that wasn't supposed to go in with the
authorbrad <brad@openbsd.org>
Tue, 20 Jan 2015 03:54:26 +0000 (03:54 +0000)
committerbrad <brad@openbsd.org>
Tue, 20 Jan 2015 03:54:26 +0000 (03:54 +0000)
capitalization corrections.

sys/dev/mii/rgephy.c

index 44ea310..f5d6b7e 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: rgephy.c,v 1.35 2015/01/20 03:26:24 brad Exp $        */
+/*     $OpenBSD: rgephy.c,v 1.36 2015/01/20 03:54:26 brad Exp $        */
 /*
  * Copyright (c) 2003
  *     Bill Paul <wpaul@windriver.com>.  All rights reserved.
@@ -481,16 +481,6 @@ rgephy_reset(struct mii_softc *sc)
 {
        uint16_t reg;
 
-       if (sc->mii_model == MII_MODEL_xxREALTEK_RTL8251) {
-               PHY_WRITE(sc, 31, 0x0a43);
-               reg = PHY_READ(sc, RGEPHY_CR);
-               if ((reg & RGEPHY_CR_ALDPS) != 0) {
-                       reg &= ~RGEPHY_CR_ALDPS;
-                       PHY_WRITE(sc, RGEPHY_CR, reg);
-               }
-               PHY_WRITE(sc, 31, 0x0000);
-       }
-
        mii_phy_reset(sc);
        DELAY(1000);
        rgephy_load_dspcode(sc);