From: Nicolai Buchwitz <nb@tipi-net.de>
To: Andrew Lunn <andrew@lunn.ch>
Cc: netdev@vger.kernel.org, Russell King <linux@armlinux.org.uk>,
Florian Fainelli <florian.fainelli@broadcom.com>,
Heiner Kallweit <hkallweit1@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH net-next 1/3] net: phy: add support for disabling PHY-autonomous EEE
Date: Fri, 03 Apr 2026 20:47:21 +0200 [thread overview]
Message-ID: <7cc447d8fcc2d38a53e614e675746457@tipi-net.de> (raw)
In-Reply-To: <fcf80c9b-de04-469f-b66b-b39760fc9af4@lunn.ch>
On 3.4.2026 17:27, Andrew Lunn wrote:
>> + * @autonomous_eee_disabled: Set when autonomous EEE has been
>> disabled via
>> + * phy_support_eee(), used to re-apply after PHY soft reset
>
> Thinking ahead to when autonomous EEE is supported, there will be
> other reasons to disable it than just phy_support_eee(). So i would
> not say this here.
Makes sense. I will amend all comments accordingly.
>
>> * @eee_cfg: User configuration of EEE
>> * @lp_advertising: Current link partner advertised linkmodes
>> * @host_interfaces: PHY interface modes supported by host
>> @@ -739,6 +741,7 @@ struct phy_device {
>> __ETHTOOL_DECLARE_LINK_MODE_MASK(eee_disabled_modes);
>> bool enable_tx_lpi;
>> bool eee_active;
>> + bool autonomous_eee_disabled;
>> struct eee_config eee_cfg;
>>
>> /* Host supported PHY interface types. Should be ignored if empty.
>> */
>> @@ -1359,6 +1362,21 @@ struct phy_driver {
>> void (*get_stats)(struct phy_device *dev,
>> struct ethtool_stats *stats, u64 *data);
>>
>> + /**
>> + * @disable_autonomous_eee: Disable PHY-autonomous EEE
>> + *
>> + * Some PHYs manage EEE LPI autonomously without forwarding LPI
>> + * signaling to the MAC.
>
> My understanding is that LPI is always from the MAC to the PHY?
Probably not the right wording, agreed. I was thinking of the RX LPI
counter on macb, which wasn't incrementing until I noticed that the PHY
had AutogrEEEn enabled. After disabling it, the RX LPI signaling
worked.
>
>
>> + * Called by phy_support_eee() when the MAC indicates it supports
>> + * EEE. PHY drivers that implement autonomous EEE should provide
>> + * this callback.
>
> Again, there will be other reasons to call this, than just
> phy_support_eee().
Will do.
>
> Andrew
>
> ---
> pw-bot: cr
Thanks for the prompt review
Nicolai
next prev parent reply other threads:[~2026-04-03 18:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-03 9:06 [RFC PATCH net-next 0/3] net: phy: add support for disabling autonomous EEE Nicolai Buchwitz
2026-04-03 9:06 ` [RFC PATCH net-next 1/3] net: phy: add support for disabling PHY-autonomous EEE Nicolai Buchwitz
2026-04-03 15:27 ` Andrew Lunn
2026-04-03 18:47 ` Nicolai Buchwitz [this message]
2026-04-04 6:43 ` Russell King (Oracle)
2026-04-03 9:06 ` [RFC PATCH net-next 2/3] net: phy: broadcom: implement .disable_autonomous_eee for BCM54xx Nicolai Buchwitz
2026-04-03 15:29 ` Andrew Lunn
2026-04-03 9:06 ` [RFC PATCH net-next 3/3] net: phy: realtek: convert RTL8211F to .disable_autonomous_eee Nicolai Buchwitz
2026-04-03 15:31 ` [RFC PATCH net-next 0/3] net: phy: add support for disabling autonomous EEE Andrew Lunn
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=7cc447d8fcc2d38a53e614e675746457@tipi-net.de \
--to=nb@tipi-net.de \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=florian.fainelli@broadcom.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--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