kern/76710: rgephy does not deal with status properly,if BMCR_ISO
is set.
Masanori Kanaoka
kanaoka at ann.hi-ho.ne.jp
Wed Jan 26 06:10:24 PST 2005
>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:
More information about the freebsd-bugs
mailing list