summaryrefslogtreecommitdiff
path: root/sys/dev/mii/mii.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-10-10 15:05:48 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-10-10 15:05:48 +0000
commite00d1a253b6698bafe73944e96abd4254d54f6b7 (patch)
treef7e57d1acb8755a48900bacf71f128bce12eb006 /sys/dev/mii/mii.c
parent65952979b80dc5d263abe98fcafab87cd192fb0e (diff)
gigabit only phys don't have any of the 10/100 bits set in BMSR, but the
EXTSTAT bit -is- set. Add EXTSTAT to the early check of BMSR so that sk/xmphy can attach correctly.
Diffstat (limited to 'sys/dev/mii/mii.c')
-rw-r--r--sys/dev/mii/mii.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mii/mii.c b/sys/dev/mii/mii.c
index 560e3ee7c99..6be3c1cce0e 100644
--- a/sys/dev/mii/mii.c
+++ b/sys/dev/mii/mii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mii.c,v 1.9 2000/08/26 20:04:17 nate Exp $ */
+/* $OpenBSD: mii.c,v 1.10 2001/10/10 15:05:47 jason Exp $ */
/* $NetBSD: mii.c,v 1.19 2000/02/02 17:09:44 thorpej Exp $ */
/*-
@@ -115,7 +115,7 @@ mii_attach(parent, mii, capmask, phyloc, offloc, flags)
*/
bmsr = (*mii->mii_readreg)(parent, ma.mii_phyno, MII_BMSR);
if (bmsr == 0 || bmsr == 0xffff ||
- (bmsr & BMSR_MEDIAMASK) == 0) {
+ (bmsr & (BMSR_MEDIAMASK|BMSR_EXTSTAT)) == 0) {
/* Assume no PHY at this address. */
continue;
}