summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2012-07-05 15:23:55 +0000
committersthen <sthen@openbsd.org>2012-07-05 15:23:55 +0000
commit1cb6e546fcdf5acc18abe6a094ce5e93a1fb390a (patch)
tree9459a92ffdbc494bde94cdc7b993c745e959a64b
parentset the prefetch threshold for 99'er as well. provides some additional (diff)
downloadwireguard-openbsd-1cb6e546fcdf5acc18abe6a094ce5e93a1fb390a.tar.xz
wireguard-openbsd-1cb6e546fcdf5acc18abe6a094ce5e93a1fb390a.zip
Correct the jumbo setup code within brgphy(4). The code had a mistake
and was actually disabling the jumbo settings for the PHY. From Brad.
-rw-r--r--sys/dev/mii/brgphy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/mii/brgphy.c b/sys/dev/mii/brgphy.c
index e2ae946fe12..fff5292e645 100644
--- a/sys/dev/mii/brgphy.c
+++ b/sys/dev/mii/brgphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: brgphy.c,v 1.94 2011/12/19 13:21:01 sthen Exp $ */
+/* $OpenBSD: brgphy.c,v 1.95 2012/07/05 15:23:55 sthen Exp $ */
/*
* Copyright (c) 2000
@@ -1128,12 +1128,12 @@ brgphy_jumbo_settings(struct mii_softc *sc)
PHY_WRITE(sc, BRGPHY_MII_AUXCTL, 0x7);
val = PHY_READ(sc, BRGPHY_MII_AUXCTL);
PHY_WRITE(sc, BRGPHY_MII_AUXCTL,
- val & ~(BRGPHY_AUXCTL_LONG_PKT | 0x7));
+ val | BRGPHY_AUXCTL_LONG_PKT);
}
val = PHY_READ(sc, BRGPHY_MII_PHY_EXTCTL);
PHY_WRITE(sc, BRGPHY_MII_PHY_EXTCTL,
- val & ~BRGPHY_PHY_EXTCTL_HIGH_LA);
+ val | BRGPHY_PHY_EXTCTL_HIGH_LA);
}
void