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 0/4] e1000: phylink for the Intel CE4100 GbE
Date: Thu, 03 Dec 2026 01:13:46 -0500 [thread overview]
Message-ID: <20261203-e1000-phylink-v2-0-0a8f80515363@telaak.dev> (raw)
The GbE of the Intel CE4100 family (PCI 8086:2e6e) has an RGMII
interface, which can also run as RMII, and its own MDIO controller.
e1000 only handles a PHY it drives itself, so a MAC wired straight to a
switch port fails to probe, and a PHY on the bus never gets its own
driver.
This series lets the device tree describe the link. Patch 1 documents
the node, patch 2 hands a fixed link to phylink, patch 3 registers the
MAC's MDIO bus and attaches a PHY through phylink, and patch 4 disables
EEE, which the MAC cannot do. Without these properties nothing changes
at run time; E1000 now selects PHYLINK.
Tested on two CE5300 boards, on a backport to 7.3: one with an RTL8211E
(1G and 100M, MTU changes, ifdown/ifup, VLAN filter and offload changes,
pause, autoneg restart, PHY LEDs offloaded to the netdev trigger), and
one wired to a BCM53125 switch with a fixed link (1G through the switch,
STP). v2 ran again on both with lockdep and CONFIG_DEBUG_ATOMIC_SLEEP,
without warnings, including MTU changes while the PHY was read over MDIO
or renegotiated the link and, on the switch board, an mdio node next to
the fixed link. Suspend/resume and PCI error recovery were not tested;
with Wake-on-LAN enabled only by the EEPROM default, phylink does not
keep the link up across suspend.
---
Changes in v2:
- 1/4: phy-handle and mdio no longer depend on each other, and phy-mode
also lists rmii, which the MAC has. The driver still refuses rmii with
a phy-handle or a fixed-link, and an mdio node without either. The
fixed-link example says the switch adds the RGMII delays (Andrew).
- 2/4: dropped the bool in struct e1000_hw that duplicated the phylink
pointer (Maxime). phylink is destroyed after the PHY reset in remove()
and the probe error path. The phy-mode error no longer names phylink
(Maxime). Probe drops the carrier before registering the netdev.
e1000_down() clears TCTL_EN under phylink_lock, and a link-up during
a reset no longer enables TX again (Sashiko).
- 3/4: the MDIO bus is registered for an mdio node with a fixed-link
too, and the phy-handle can point to any bus (Maxime, Andrew). An mdio
node with neither is refused, since e1000's own PHY code would drive
the bus too. phylink is set up before the bus.
- Link to v1: https://patch.msgid.link/20261201-e1000-phylink-v1-0-21e6f1c816a0@telaak.dev
---
Joseph Telaak (4):
dt-bindings: net: add the Intel CE4100 GbE
e1000: use phylink for a CE4100 fixed link
e1000: attach a CE4100 PHY through phylink
e1000: disable EEE on a CE4100 PHY under phylink
.../devicetree/bindings/net/intel,ce4100-gbe.yaml | 92 ++++++
MAINTAINERS | 1 +
drivers/net/ethernet/intel/Kconfig | 1 +
drivers/net/ethernet/intel/e1000/e1000.h | 17 +
drivers/net/ethernet/intel/e1000/e1000_ethtool.c | 36 +++
drivers/net/ethernet/intel/e1000/e1000_hw.c | 135 +++++++-
drivers/net/ethernet/intel/e1000/e1000_hw.h | 6 +
drivers/net/ethernet/intel/e1000/e1000_main.c | 352 ++++++++++++++++++++-
8 files changed, 624 insertions(+), 16 deletions(-)
---
base-commit: 784a6d32afd726628b70dea1da74c9a7b37fbf82
change-id: 20261116-e1000-phylink-9d5ccc98baf9
Best regards,
--
Joseph Telaak <joseph@telaak.dev>
next 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 Joseph Telaak [this message]
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 ` [PATCH iwl-next v2 4/4] e1000: disable EEE on a CE4100 PHY under phylink Joseph Telaak
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-0-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®