From: Joseph Telaak <joseph@telaak.dev>
To: Tony Nguyen <anthony.l.nguyen@intel.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Russell King <linux@armlinux.org.uk>
Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Joseph Telaak <joseph@telaak.dev>
Subject: [PATCH iwl-next v2 4/4] e1000: disable EEE on a CE4100 PHY under phylink
Date: Thu, 03 Dec 2026 01:13:50 -0500 [thread overview]
Message-ID: <20261203-e1000-phylink-v2-4-0a8f80515363@telaak.dev> (raw)
In-Reply-To: <20261203-e1000-phylink-v2-0-0a8f80515363@telaak.dev>
The MAC has no LPI support. phylink only disables EEE in a PHY when the
MAC implements the LPI operations, so the PHY keeps its default EEE
advertisement. With EEE negotiated, an RTL8211E blinks its link LED about
once a second while the link idles, and a link LED offloaded to the PHY
no longer shows the link state.
Implement the LPI operations with no LPI capabilities, so that phylink
disables EEE in the PHY. With them, phylink also tells the PHY when it
attaches to keep its receive clock running in LPI, as
eee_rx_clk_stop_enable stays false.
Signed-off-by: Joseph Telaak <joseph@telaak.dev>
---
drivers/net/ethernet/intel/e1000/e1000_main.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c
index 1ac21f2c18b8..a8ca9bb95a8e 100644
--- a/drivers/net/ethernet/intel/e1000/e1000_main.c
+++ b/drivers/net/ethernet/intel/e1000/e1000_main.c
@@ -1076,10 +1076,26 @@ static void e1000_mac_link_up(struct phylink_config *config,
mutex_unlock(&adapter->phylink_lock);
}
+/* The MAC has no LPI. LPI operations with no LPI capabilities tell
+ * phylink so, and it disables EEE in the PHY.
+ */
+static void e1000_mac_disable_tx_lpi(struct phylink_config *config)
+{
+}
+
+static int e1000_mac_enable_tx_lpi(struct phylink_config *config, u32 timer,
+ bool tx_clk_stop)
+{
+ /* Never called: no LPI capabilities */
+ return 0;
+}
+
static const struct phylink_mac_ops e1000_phylink_mac_ops = {
.mac_config = e1000_mac_config,
.mac_link_down = e1000_mac_link_down,
.mac_link_up = e1000_mac_link_up,
+ .mac_disable_tx_lpi = e1000_mac_disable_tx_lpi,
+ .mac_enable_tx_lpi = e1000_mac_enable_tx_lpi,
};
/**
--
Git-155)
prev parent reply other threads:[~2026-12-03 6:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 6:13 [PATCH iwl-next v2 0/4] e1000: phylink for the Intel CE4100 GbE Joseph Telaak
2026-12-03 6:13 ` [PATCH iwl-next v2 1/4] dt-bindings: net: add " Joseph Telaak
2026-12-03 6:13 ` [PATCH iwl-next v2 2/4] e1000: use phylink for a CE4100 fixed link Joseph Telaak
2026-12-03 6:13 ` [PATCH iwl-next v2 3/4] e1000: attach a CE4100 PHY through phylink Joseph Telaak
2026-12-03 6:13 ` Joseph Telaak [this message]
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=20261203-e1000-phylink-v2-4-0a8f80515363@telaak.dev \
--to=joseph@telaak.dev \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@kernel.org \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=robh@kernel.org \
/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
all inboxes | Powered by JetHome®