[PATCH iwl-next 4/4] e1000: disable EEE on a CE4100 PHY under phylink

From: Joseph Telaak

Date: Tue Dec 01 2026 - 02:21:57 EST


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.

Signed-off-by: Joseph Telaak <joseph@xxxxxxxxxx>
---
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 60ccfce3c889..914482f5256e 100644
--- a/drivers/net/ethernet/intel/e1000/e1000_main.c
+++ b/drivers/net/ethernet/intel/e1000/e1000_main.c
@@ -1058,10 +1058,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)