Date: Wed, 26 Jan 2005 14:02:20 GMT From: Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/76710: rgephy does not deal with status properly,if BMCR_ISO is set. Message-ID: <200501261402.j0QE2Kfm088071@www.freebsd.org> Resent-Message-ID: <200501261410.j0QEAN6k074273@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 76710
>Category: kern
>Synopsis: rgephy does not deal with status properly,if BMCR_ISO is set.
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jan 26 14:10:23 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Masanori Kanaoka
>Release: FreeBSD-current
>Organization:
>Environment:
>Description:
rgephy does not check BMCR_ISO and deal with status prperly.
>How-To-Repeat:
Code inspection.
>Fix:
--- rgephy.c.orig 2005-01-26 22:48:45.000000000 +0900
+++ rgephy.c 2005-01-26 22:49:49.000000000 +0900
@@ -342,6 +342,12 @@
bmcr = PHY_READ(sc, RGEPHY_MII_BMCR);
+ if (bmcr & BMCR_ISO) {
+ mii->mii_media_active |= IFM_NONE;
+ mii->mii_media_status = 0;
+ return;
+ }
+
if (bmcr & RGEPHY_BMCR_LOOP)
mii->mii_media_active |= IFM_LOOP;
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501261402.j0QE2Kfm088071>
