Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Nov 2004 09:49:23 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        far@4damind.com, bz@FreeBSD.org, freebsd-i386@FreeBSD.org, bz@FreeBSD.org
Subject:   Re: i386/71733: Marvel/Gigabit NIC on Asus K8V SE is not working (if_sk.ko)
Message-ID:  <200411230949.iAN9nNtK060195@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: Marvel/Gigabit NIC on Asus K8V SE is not working (if_sk.ko)

State-Changed-From-To: open->feedback
State-Changed-By: bz
State-Changed-When: Tue Nov 23 09:48:52 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-i386->bz
Responsible-Changed-By: bz
Responsible-Changed-When: Tue Nov 23 09:48:52 GMT 2004
Responsible-Changed-Why: 
mine...

http://www.freebsd.org/cgi/query-pr.cgi?pr=71733



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411230949.iAN9nNtK060195>