summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2015-01-20 03:54:26 +0000
committerbrad <brad@openbsd.org>2015-01-20 03:54:26 +0000
commit1977eb72c40e7c26bdcacf67530592471db2e200 (patch)
treef31a16bedb4e76437ad6076ff94d098a42c14f99
parentprintf wasn't supposed to go in. (diff)
downloadwireguard-openbsd-1977eb72c40e7c26bdcacf67530592471db2e200.tar.xz
wireguard-openbsd-1977eb72c40e7c26bdcacf67530592471db2e200.zip
Back out a chunk of rev 1.34 that wasn't supposed to go in with the
capitalization corrections.
-rw-r--r--sys/dev/mii/rgephy.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/dev/mii/rgephy.c b/sys/dev/mii/rgephy.c
index 44ea310554c..f5d6b7e6628 100644
--- a/sys/dev/mii/rgephy.c
+++ b/sys/dev/mii/rgephy.c
@@ -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);