On Tue, Dec 01, 2026 at 09:24:12AM +0100, Maxime Chevallier wrote:
> Hi, > > On 12/1/26 07:49, Jie Gu wrote:
> > From: Jie Gu <jie…@leica-geosystems.com.cn> > >
> > I have a few questions about the technology itself, to see if this is > the right API for that. >
> > The DP83826 supports Active Sleep, a link-down power-saving mode that > > periodically transmits normal link pulses to detect a link partner. > > Expose this mode through the ethtool energy-detect power-down tunable.
> > Is this something standard that other PHYs could potentially implement > too ?
adin.c: *tx_interval = ETHTOOL_PHY_EDPD_DFLT_TX_MSECS; adin.c: *tx_interval = ETHTOOL_PHY_EDPD_NO_TX; adin.c: *tx_interval = ETHTOOL_PHY_EDPD_DISABLE; adin.c: if (tx_interval == ETHTOOL_PHY_EDPD_DISABLE) adin.c: case ETHTOOL_PHY_EDPD_DFLT_TX_MSECS: adin.c: case ETHTOOL_PHY_EDPD_NO_TX: adin.c: case ETHTOOL_PHY_EDPD: adin.c: case ETHTOOL_PHY_EDPD: adin.c: rc = adin_set_edpd(phydev, ETHTOOL_PHY_EDPD_DFLT_TX_MSECS); bcm54140.c: *tx_interval = ETHTOOL_PHY_EDPD_DISABLE; bcm54140.c: if (tx_interval == ETHTOOL_PHY_EDPD_DISABLE) bcm54140.c: case ETHTOOL_PHY_EDPD_DFLT_TX_MSECS: bcm54140.c: case ETHTOOL_PHY_EDPD_DISABLE: bcm54140.c: case ETHTOOL_PHY_EDPD: bcm54140.c: case ETHTOOL_PHY_EDPD: marvell10g.c: *edpd = ETHTOOL_PHY_EDPD_NO_TX; marvell10g.c: *edpd = ETHTOOL_PHY_EDPD_DISABLE; marvell10g.c: case ETHTOOL_PHY_EDPD_DFLT_TX_MSECS: marvell10g.c: case ETHTOOL_PHY_EDPD_NO_TX: marvell10g.c: case ETHTOOL_PHY_EDPD_DISABLE: marvell10g.c: err = mv3310_set_edpd(phydev, ETHTOOL_PHY_EDPD_DFLT_TX_MSECS); marvell10g.c: case ETHTOOL_PHY_EDPD: marvell10g.c: case ETHTOOL_PHY_EDPD: smsc.c: *edpd = ETHTOOL_PHY_EDPD_DISABLE; smsc.c: *edpd = ETHTOOL_PHY_EDPD_NO_TX; smsc.c: case ETHTOOL_PHY_EDPD_DISABLE: smsc.c: case ETHTOOL_PHY_EDPD_NO_TX: smsc.c: case ETHTOOL_PHY_EDPD_DFLT_TX_MSECS: smsc.c: case ETHTOOL_PHY_EDPD: smsc.c: case ETHTOOL_PHY_EDPD: This patch is just wiring up an existing API for this device. I'm not sure it is part of 802.3, but vendors implement it about the same, because there is not much you can do differently and have it still work. Andrew