Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/dev/mii Pull up following revision(s) (requested by m...



details:   https://anonhg.NetBSD.org/src/rev/0f6e19ae2bb8
branches:  netbsd-8
changeset: 852719:0f6e19ae2bb8
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Jan 24 18:40:45 2020 +0000

description:
Pull up following revision(s) (requested by msaitoh in ticket #1491):

        sys/dev/mii/ihphy.c: revision 1.15

 Remove extra 10ms delay in ihphy_reset(). The delay are in if_wm.c side.
It's required for hardware full reset and it's not required on soft reset.

 When ihphy.c was added in 9 years ago, some workaround code were not in
if_wm.c yet and the initialization code was not good.

diffstat:

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

diffs (33 lines):

diff -r 3d72b1067af9 -r 0f6e19ae2bb8 sys/dev/mii/ihphy.c
--- a/sys/dev/mii/ihphy.c       Fri Jan 24 18:37:31 2020 +0000
+++ b/sys/dev/mii/ihphy.c       Fri Jan 24 18:40:45 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ihphy.c,v 1.10.8.1 2019/08/01 14:27:30 martin Exp $    */
+/*     $NetBSD: ihphy.c,v 1.10.8.2 2020/01/24 18:40:45 martin Exp $    */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ihphy.c,v 1.10.8.1 2019/08/01 14:27:30 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ihphy.c,v 1.10.8.2 2020/01/24 18:40:45 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -296,14 +296,6 @@
 
        PHY_WRITE(sc, MII_BMCR, BMCR_RESET | BMCR_ISO);
 
-       /*
-        * Regarding reset, the data sheet specifies (page 55):
-        *
-        * "After PHY reset, a delay of 10 ms is required before
-        *  any register access using MDIO."
-        */
-       delay(10000);
-
        /* Wait another 100ms for it to complete. */
        for (i = 0; i < 100; i++) {
                reg = PHY_READ(sc, MII_BMCR);



Home | Main Index | Thread Index | Old Index