Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/mii Some PHYs go off into left field for a few secon...



details:   https://anonhg.NetBSD.org/src/rev/b90f0a7eba41
branches:  trunk
changeset: 481650:b90f0a7eba41
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Feb 03 06:11:13 2000 +0000

description:
Some PHYs go off into left field for a few seconds if you attempt to kick
autonegotiation while it's already enabled.

diffstat:

 sys/dev/mii/mii_physubr.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r fe74bf4d4e52 -r b90f0a7eba41 sys/dev/mii/mii_physubr.c
--- a/sys/dev/mii/mii_physubr.c Thu Feb 03 06:07:06 2000 +0000
+++ b/sys/dev/mii/mii_physubr.c Thu Feb 03 06:11:13 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mii_physubr.c,v 1.13 2000/02/03 05:38:57 thorpej Exp $ */
+/*     $NetBSD: mii_physubr.c,v 1.14 2000/02/03 06:11:13 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -77,7 +77,8 @@
        int bmcr, anar;
 
        if (IFM_SUBTYPE(ife->ifm_media) == IFM_AUTO) {
-               (void) mii_phy_auto(sc, 1);
+               if ((PHY_READ(sc, MII_BMCR) & BMCR_AUTOEN) == 0)
+                       (void) mii_phy_auto(sc, 1);
                return;
        }
 



Home | Main Index | Thread Index | Old Index