Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii Don't power down the PHY when the interface goes...



details:   https://anonhg.NetBSD.org/src/rev/0e5e257d47ab
branches:  trunk
changeset: 991042:0e5e257d47ab
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Nov 05 01:53:30 2021 +0000

description:
Don't power down the PHY when the interface goes down.

 - All of other PHY drivers don't power down the PHY. Do the same way.
 - At least, keeping the link is required for Intel AMT and WoL.

diffstat:

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

diffs (26 lines):

diff -r 1b26c681bbd6 -r 0e5e257d47ab sys/dev/mii/ihphy.c
--- a/sys/dev/mii/ihphy.c       Fri Nov 05 01:49:14 2021 +0000
+++ b/sys/dev/mii/ihphy.c       Fri Nov 05 01:53:30 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ihphy.c,v 1.19 2020/11/04 09:15:10 msaitoh Exp $       */
+/*     $NetBSD: ihphy.c,v 1.20 2021/11/05 01:53:30 msaitoh 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.19 2020/11/04 09:15:10 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ihphy.c,v 1.20 2021/11/05 01:53:30 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -211,7 +211,6 @@
 
        case MII_DOWN:
                mii_phy_down(sc);
-               PHY_WRITE(sc, MII_BMCR, BMCR_PDOWN);
                return 0;
        }
 



Home | Main Index | Thread Index | Old Index