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 extra PHY_RESET(sc) in the MII_TICK path ...



details:   https://anonhg.NetBSD.org/src/rev/46a7b5de66fe
branches:  trunk
changeset: 975244:46a7b5de66fe
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Aug 24 04:49:05 2020 +0000

description:
Remove extra PHY_RESET(sc) in the MII_TICK path because it's not requierd
to just restart autonego.

diffstat:

 sys/dev/mii/urlphy.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r af8c66ba60f3 -r 46a7b5de66fe sys/dev/mii/urlphy.c
--- a/sys/dev/mii/urlphy.c      Mon Aug 24 04:23:41 2020 +0000
+++ b/sys/dev/mii/urlphy.c      Mon Aug 24 04:49:05 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: urlphy.c,v 1.37 2020/08/24 04:23:41 msaitoh Exp $      */
+/*     $NetBSD: urlphy.c,v 1.38 2020/08/24 04:49:05 msaitoh Exp $      */
 /*
  * Copyright (c) 2001, 2002
  *     Shingo WATANABE <nabe%nabechan.org@localhost>.  All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: urlphy.c,v 1.37 2020/08/24 04:23:41 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: urlphy.c,v 1.38 2020/08/24 04:49:05 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -197,8 +197,6 @@
                if (sc->mii_ticks <= sc->mii_anegticks)
                        return 0;
 
-               PHY_RESET(sc);
-
                if (mii_phy_auto_restart(sc) == EJUSTRETURN)
                        return 0;
 



Home | Main Index | Thread Index | Old Index