🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Andrew Lunn Tue, 01 Dec 2026 13:47
Re: [PATCH net-next] net: phy: dp83822: add EDPD support for DP83826
#25311
Author: Andrew Lunn
Date: Tue, 01 Dec 2026 13:47
56 lines
10535 bytes
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.gu@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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads