Article View: linux.kernel.netdev
Article #26170[PATCH iwl-next v2 4/4] e1000: disable EEE on a CE4100 PHY under phylink
From: Joseph Telaak
Date: Thu, 03 Dec 2026 06:13
Date: Thu, 03 Dec 2026 06:13
51 lines
11410 bytes
11410 bytes
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)
Technical Details
Message-ID:
<20261203-e1000-phylink-v2-4-0a8f80515363@telaak.dev>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376321-linux-kernel-netdev=dewy.ruReferences:
<20261203-e1000-phylink-v2-0-0a8f80515363@telaak.dev>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376321-linux-kernel-netdev=dewy.ru
From: joseph@telaak.dev (Joseph Telaak)
Newsgroups: linux.kernel.netdev
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
Organization: Usenet Network
Message-ID: <20261203-e1000-phylink-v2-4-0a8f80515363@telaak.dev>
References: <20261203-e1000-phylink-v2-0-0a8f80515363@telaak.dev>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="2193125"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:vHh5YHreY/zt1oukEYGIk63oLlY= sha256:l/wvJ/d/nZteA8b79oTVGJ/Jk6xHulS8+Py6o1Nf7Hw=
sha1:V4BifvVcWUFzQQPpqgBj+IOGIwY= sha256:bx5bX3iOwRAigATYnW4HYmiNC+rjkpdWjsQp86Fp7cg=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 46E1D117835; Thu, 3 Dec 2026 09:14:16 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 4ukIOPEHk6Th;
Thu, 3 Dec 2026 09:14:13 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-376321-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=telaak.dev
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 93BCE117804; Thu, 3 Dec 2026 09:14:10 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 3EE4824EE5; Thu, 3 Dec 2026 06:14:05 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1796278440;
b=HU4+LFt02snC0Su334999Fnzyq4nq12UlH5eQw4OHovz4xhEoWHsv/0RMZNxQ+TquPuY
cMwUBFn6WOYgsbzzgWhV5wAceZ7Z1lgXVEz8U458mQ4Fjzs09ZELygzOzbKoMDBdHlz/k
V9QWELXqf83XbT6fjDZ23/uies8ZqQ3DcV8QRsRynlxJnjbxxu/xsqji3uvWNtjRmflpE
QvwHCr40fBF9LwrujyV3EGa45122Z/3EcfX0x/xR8/t4R748WvU4mIvR5gspYOIobGvNb
HMOyAhM/EbA+zJ2v9VkuwP7bi0pRJL64YbJxa8oN8W9m/C3UBzQkEEZnw8N5U4wDbrg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796278440;
h=X-Original-To:Received:DMARC-Filter:Received:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
From:Date:Subject:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Type:Content-Transfer-Encoding:Message-Id:References:
In-Reply-To:To:Cc:X-Mailer;
bh=fvdTz3MyFg/Ftt/i49alKqetlPP8YLRxx5BcRUo0sBw=;
b=zzRq6PxL/fLclHzTSIGUCGrfNzqFS11BEpZXW796DAYdS6crIXLX/6xqEW22Sn/lVbjQ
F8qVAfQ8QghcIFodI/guHu8QszjCwym1g6LGhniyHmqROHGW6ESpPLC0xFuTkAEjjqEPr
i9Q2oSEcLDnrBpEVC1KRtsKI6Y3suFBvUvUFnur2vchOPdxYT1DtGB573QeEvG730Bm0k
hVmnajGoEg2RZkwY7FnwVuwCe9fMm+DpZgDEeDmx1qn7EfR0FJa4kxmLdr7RRxoXSKMMd
G91eG9buraHJVeDUU5YTo+jTGoY+OwZEptFInTO86msWDZjM5dOU8HF5wkX7h8eXuwQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=none header.from=telaak.dev;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 14E0560A2600;
Thu, 3 Dec 2026 06:14:00 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.172
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1796278439;
b=yfzYkFSIwVk82qps/3jELzrMWQXQjzy9Dt+8HL0BEjzErpvAWIRKBD4IT4K62hSs2mTh
7BpyWlgDdGN6W3Xg2B/eoVNGkMkeqkiI/mt8u4T6glBLSqRR2dXHrFH5vRL1RtbM1wE+O
0tINjnGQHP/I/z8Zz3ZWdnwfolekClnNcifQlTlIR8ZJDWMUijay6qnBo7Mtz+9A+t0CM
y3dgm/tNl47J/WNddM4nXIo1IzJWA742KpjTeNkHvaDza1hRAD+H89I1Lch0Z7XnERHhB
0SYs8pDifCOppVbTbWHe4+tWVIlANtovEmPZKlviFnzHBScd/YPN5duRdbdWIQg2ilw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796278439;
h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:Date:Subject:
MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:
References:In-Reply-To:To:Cc:X-Mailer;
bh=fvdTz3MyFg/Ftt/i49alKqetlPP8YLRxx5BcRUo0sBw=;
b=Y45onq+fSk4f8ZAzYcQ84LVkRUR4meCIdW12xqQVdts7yfv3MfI5sRRWhBrDWlTMTcSj
Mx8vAc48sbl3EsauacoSQ544CtLe57dpM6a0cySXAHLgJCpqUJJLFedTTAXKd0IjWh6U6
O7KZBNKYl9rChyXlVKSu1C4qfY52kfWXLwhKXXXbtXyFvDfE5NWJP5XTYKv9NxT+dT25d
ATMBoP6d+/21Yq5XomDdL+ZTbmJdxaBDtuUOjKQWqqyQHXk9KMpsmHJ62AFG3NteulEKb
BAbY9SbxKOVSSBEb7Cq7nbW62mXwQNTnsRSVkU9ZyH1A7rBqUNnOTXWj+SZH9l9WZiA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none header.from=telaak.dev;
spf=pass smtp.mailfrom=gmail.com;
arc=none smtp.remote-ip=209.85.222.172
X-Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3D3D606A6AB
for <netdev@vger.kernel.org>; Thu, 3 Dec 2026 06:13:58 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D3D3D606A6AB
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=telaak.dev
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-qk1-f172.google.com with SMTP id af79cd13be357-94a440c3a02so413951785a.2
for <netdev@vger.kernel.org>; Wed, 02 Dec 2026 22:13:58 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1796278438; x=1796883238;
h=cc:to:in-reply-to:references:message-id:content-transfer-encoding
:content-type:mime-version:subject:date:from:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=fvdTz3MyFg/Ftt/i49alKqetlPP8YLRxx5BcRUo0sBw=;
b=ZztM7LqkjKry4kfeqPGuo9T02Vdh/cCeymCerP+TAFV6fr8Q65PmMDYivQoG84G0iy
DExDFDO5h/KLDJb40rZGqfthHqQh3GQAtKOHfeG4EYRa3Dr0ii7m1roBJVTX6wEmFXV3
40UrYFpAAiFVXgnBbH7xnMFUpw1vdVNgjzyAQbxUly+MXIrD3nhqbAb8TRfe0rWm2QnL
cYiwMP9gdenCSvCZxy9k9YLGW9wQPuc4mTyPmzb6YdvxndabGRgiT2GRKmg+TpKmToUW
uE9M+pdEEDhRYW9ci1UxEWFR1qgVFu6karMYbpnFYutx5YJV8CwGdT6k5rjONHs5lXWr
NvJg==
X-Forwarded-Encrypted: i=1; AL+hErEYQOyARWEdKI4iAm4nh/x/Ck7Z+1ogYJDOkr9LMBh2BL/Po3+/y+P/1+bSSEYFpYzXpzm1xn4=@vger.kernel.org
X-Gm-Message-State: APuU4Z/knokMAw/XGifK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0.0.0.0.ip6.arpa ([71.68.170.161])
by smtp.gmail.com with ESMTPSA id af79cd13be357-949ca98d9d6sm3077137885a.18.2026.12.02.22.13.56
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 02 Dec 2026 22:13:57 -0800 (PST)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261203-e1000-phylink-v2-0-0a8f80515363@telaak.dev>
X-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>
X-Mailer: b4 0.16.0