From owner-freebsd-bugs@FreeBSD.ORG Tue Nov 23 09:48:25 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83D4716A4D6; Tue, 23 Nov 2004 09:48:25 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F7D943D31; Tue, 23 Nov 2004 09:48:25 +0000 (GMT) (envelope-from bz@FreeBSD.org) Received: from freefall.freebsd.org (bz@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iAN9mPDU060139; Tue, 23 Nov 2004 09:48:25 GMT (envelope-from bz@freefall.freebsd.org) Received: (from bz@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iAN9mPIO060135; Tue, 23 Nov 2004 09:48:25 GMT (envelope-from bz) Date: Tue, 23 Nov 2004 09:48:25 GMT From: "Bjoern A. Zeeb" Message-Id: <200411230948.iAN9mPIO060135@freefall.freebsd.org> To: rreitz@fnal.gov, bz@FreeBSD.org, freebsd-bugs@FreeBSD.org, bz@FreeBSD.org Subject: Re: kern/73725: if_sk.ko fails to load with "no PHY found" X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2004 09:48:25 -0000 Synopsis: if_sk.ko fails to load with "no PHY found" State-Changed-From-To: open->feedback State-Changed-By: bz State-Changed-When: Tue Nov 23 09:47:35 GMT 2004 State-Changed-Why: Please try this patch: Index: mii.c =================================================================== RCS file: /local/mirror/FreeBSD/r/ncvs/src/sys/dev/mii/mii.c,v retrieving revision 1.20 diff -u -p -r1.20 mii.c --- mii.c 15 Aug 2004 06:24:40 -0000 1.20 +++ mii.c 23 Nov 2004 08:46:30 -0000 @@ -125,7 +125,7 @@ miibus_probe(dev) */ bmsr = MIIBUS_READREG(parent, ma.mii_phyno, MII_BMSR); if (bmsr == 0 || bmsr == 0xffff || - (bmsr & BMSR_MEDIAMASK) == 0) { + (bmsr & (BMSR_EXTSTAT|BMSR_MEDIAMASK)) == 0) { /* Assume no PHY at this address. */ continue; } @@ -316,7 +316,7 @@ mii_phy_probe(dev, child, ifmedia_upd, i for (i = 0; i < MII_NPHY; i++) { bmsr = MIIBUS_READREG(dev, i, MII_BMSR); if (bmsr == 0 || bmsr == 0xffff || - (bmsr & BMSR_MEDIAMASK) == 0) { + (bmsr & (BMSR_EXTSTAT|BMSR_MEDIAMASK)) == 0) { /* Assume no PHY at this address. */ continue; } else Responsible-Changed-From-To: freebsd-bugs->bz Responsible-Changed-By: bz Responsible-Changed-When: Tue Nov 23 09:47:35 GMT 2004 Responsible-Changed-Why: I'll handle this. http://www.freebsd.org/cgi/query-pr.cgi?pr=73725