summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-01-27 20:55:15 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-01-27 20:55:15 +0000
commit9de2fbf861c2ee290eafe599961732d07d899948 (patch)
tree816c8040c2c5edf78dd1d3cea4665aae04a33966 /sys
parent9ee1988ec45195add8c149f5ab93f7720bd3ed90 (diff)
In autoneg mode, use RL_MEDIASTAT on re(4), like we do on rl(4) already.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mii/rlphy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/mii/rlphy.c b/sys/dev/mii/rlphy.c
index e4cfd87aacb..afa01ba6758 100644
--- a/sys/dev/mii/rlphy.c
+++ b/sys/dev/mii/rlphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rlphy.c,v 1.26 2006/12/27 19:11:09 kettenis Exp $ */
+/* $OpenBSD: rlphy.c,v 1.27 2007/01/27 20:55:14 miod Exp $ */
/*
* Copyright (c) 1998, 1999 Jason L. Wright (jason@thought.net)
@@ -300,7 +300,8 @@ rlphy_status(struct mii_softc *sc)
* can test the 'SPEED10' bit of the MAC's media status
* register.
*/
- if (strcmp("rl", devname) == 0) {
+ if (strcmp("rl", devname) == 0 ||
+ strcmp("re", devname) == 0) {
if (PHY_READ(sc, RL_MEDIASTAT) & RL_MEDIASTAT_SPEED10)
mii->mii_media_active |= IFM_10_T;
else