From: Andrew Lunn <andrew@lunn.ch>
To: Maxime Chevallier <maxime.chevallier@bootlin.com>
Cc: Jie Gu <jie.gu@leica-geosystems.com>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, Jie Gu <jie.gu@leica-geosystems.com.cn>
Subject: Re: [PATCH net-next] net: phy: dp83822: add EDPD support for DP83826
Date: Tue, 1 Dec 2026 14:47:26 +0100 [thread overview]
Message-ID: <36f6f4aa-dc85-46f5-aa2a-6f0251b737db@lunn.ch> (raw)
In-Reply-To: <96d79cf6-6451-4c36-942b-f1c424724fa2@bootlin.com>
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
next prev parent reply other threads:[~2026-12-01 13:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 6:49 [PATCH net-next] net: phy: dp83822: add EDPD support for DP83826 Jie Gu
2026-12-01 8:24 ` Maxime Chevallier
2026-12-01 13:47 ` Andrew Lunn [this message]
2026-12-01 14:21 ` Maxime Chevallier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=36f6f4aa-dc85-46f5-aa2a-6f0251b737db@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=hkallweit1@gmail.com \
--cc=jie.gu@leica-geosystems.com \
--cc=jie.gu@leica-geosystems.com.cn \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=maxime.chevallier@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox