diff options
author | Uwe Stuehler <uwe@cvs.openbsd.org> | 2024-01-23 11:51:54 +0000 |
---|---|---|
committer | Uwe Stuehler <uwe@cvs.openbsd.org> | 2024-01-23 11:51:54 +0000 |
commit | 9c6e6cf4b9b5ba8f8973d117ce14271464331da2 (patch) | |
tree | 9b020ec3fe300c2e32893204396e1e3454f692da | |
parent | cd2c3fc0db8cf84dd6088339eb58c854116b80e0 (diff) |
explicitly disable Energy-Efficient Ethernet (EEE) on Marvell E151x
The Energy Detect feature is part of EEE and it defaults to off on both
hardware and software reset to enter "normal 10/100/1000 Mbps operation."
This change makes it explicit, as for the other PHYs in that family.
Note that, if EEE was actually enabled, an errata applies which requires
a certain sequence of magic register writes.
ok stsp@ kettenis@
-rw-r--r-- | sys/dev/mii/eephy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/mii/eephy.c b/sys/dev/mii/eephy.c index 049edb92021..c4668f6e594 100644 --- a/sys/dev/mii/eephy.c +++ b/sys/dev/mii/eephy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eephy.c,v 1.63 2023/12/28 14:03:21 uwe Exp $ */ +/* $OpenBSD: eephy.c,v 1.64 2024/01/23 11:51:53 uwe Exp $ */ /* * Principal Author: Parag Patel * Copyright (c) 2001 @@ -270,6 +270,7 @@ eephy_reset(struct mii_softc *sc) case MII_MODEL_MARVELL_E1011: case MII_MODEL_MARVELL_E1111: case MII_MODEL_MARVELL_E1112: + case MII_MODEL_MARVELL_E1512: case MII_MODEL_MARVELL_PHYG65G: reg &= ~E1000_SCR_EN_DETECT_MASK; break; |