summaryrefslogtreecommitdiff
path: root/sys/dev/mii
diff options
context:
space:
mode:
authormsaitoh <msaitoh@NetBSD.org>2021-11-05 01:53:30 +0000
committermsaitoh <msaitoh@NetBSD.org>2021-11-05 01:53:30 +0000
commit8aae1fb0dc23bc9bddb610bee22c03dcfea0c925 (patch)
tree9d8a7f92c88e0fa0afbed702a3c99ab9ef683c74 /sys/dev/mii
parentc6e9c3037f5389f6f8453a53d8fadbb0d999b1fb (diff)
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 (limited to 'sys/dev/mii')
-rw-r--r--sys/dev/mii/ihphy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/mii/ihphy.c b/sys/dev/mii/ihphy.c
index 486d81a7702..837d30874c7 100644
--- a/sys/dev/mii/ihphy.c
+++ b/sys/dev/mii/ihphy.c
@@ -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 @@ ihphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
case MII_DOWN:
mii_phy_down(sc);
- PHY_WRITE(sc, MII_BMCR, BMCR_PDOWN);
return 0;
}