Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii Remove wrong autonegotiation check. The mii_phy_...



details:   https://anonhg.NetBSD.org/src/rev/801363d2fdaa
branches:  trunk
changeset: 787335:801363d2fdaa
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Jun 11 16:18:48 2013 +0000

description:
Remove wrong autonegotiation check. The mii_phy_tick() checks about
autonegotiation correctly. This change fixes the problem that the
autonegotiation timer doesn't work correctly with
"ifcongig xxx media 1000BaseT"

diffstat:

 sys/dev/mii/ukphy.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (31 lines):

diff -r c81b51660efd -r 801363d2fdaa sys/dev/mii/ukphy.c
--- a/sys/dev/mii/ukphy.c       Tue Jun 11 15:15:29 2013 +0000
+++ b/sys/dev/mii/ukphy.c       Tue Jun 11 16:18:48 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ukphy.c,v 1.45 2013/06/09 09:24:29 msaitoh Exp $       */
+/*     $NetBSD: ukphy.c,v 1.46 2013/06/11 16:18:48 msaitoh Exp $       */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ukphy.c,v 1.45 2013/06/09 09:24:29 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ukphy.c,v 1.46 2013/06/11 16:18:48 msaitoh Exp $");
 
 #include "opt_mii.h"
 
@@ -188,12 +188,6 @@
                if (IFM_INST(ife->ifm_media) != sc->mii_inst)
                        return (0);
 
-               /*
-                * Only used for autonegotiation.
-                */
-               if (IFM_SUBTYPE(ife->ifm_media) != IFM_AUTO)
-                       break;
-
                if (mii_phy_tick(sc) == EJUSTRETURN)
                        return (0);
                break;



Home | Main Index | Thread Index | Old Index