From: uwe Date: Tue, 23 Jan 2024 11:51:53 +0000 (+0000) Subject: explicitly disable Energy-Efficient Ethernet (EEE) on Marvell E151x X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ce1c5f8763b86b9478b10cda44a349040d7f690a;p=openbsd 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@ --- 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;