From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796278434; b=Cwm9eUFZNeZwtO811RI2khiMlqyzm3HNdFGfUnytd7IhWFXvMDojsIHe4VLAzUtz3cU7 qk74xjkMiBwnPMGgkNSgmUBIKtlyyG5xz6glO84JR0QvD5+mdgH0d5WIHjXj1QCDdFWSW 03XKNdl7loeXQYK7QxIR864K4Kj/eWhKNlXTbvI4TJ6J4c4lJt+60jsj4EuJypzbS2Hj8 aKX5/he0uBbu7+T+0emoLXwuK4mo931xwLNZZv4mQ7vcQQ2iP36H4/067Zos2e3Csdn4t ex7E3sTyyFfJDtCguPdRcdmOX7HK2KQCU232m9lm3cmEmZm3wVTQCWtUs4+xQuHvrFw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796278434; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:Subject:Date: Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding: X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer; bh=YWcuFiR88YIL3UETEsNeoK3Nnis9tesz1BB0oaOfK6c=; b=R58vawN91JutVvfaFfNmR+Y05DzfYnm/skU7aQ8gOU0o+MXXIkBHQEeGqN/VfXgnO3m4 Rvwxce7YdjFp/fSHEy5X4x+/7WIE2j0V31sKQGYBCBJuQB3K9azlggpZfaa3lj7GF96WZ yVn7DwBo9wztXuZjG66/BdtX8n/pYf6BKGQVbPRf2vN+YRRadjrivV8sLmnYL3VSUSQer v1sHg+8v+DwuqJfeCsr98slttYYkMrFVGaBGwjApJU55lC/TtFlMBA2MDul4xdwJxcNYf 00gBvz48nyZn+yA27L4MHMw5xdLzHWqFFOETKU3PuNQ53uQ+AQ07jEERiR9+cmliLGw== 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.160.180 Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) (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 C2C2C606A32C for ; Thu, 3 Dec 2026 06:13:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C2C2C606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=telaak.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qt1-f180.google.com with SMTP id d75a77b69052e-55c35262674so101402871cf.0 for ; Wed, 02 Dec 2026 22:13:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796278433; x=1796883233; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=YWcuFiR88YIL3UETEsNeoK3Nnis9tesz1BB0oaOfK6c=; b=mC1P0VSx9TxUcAPmuF9KhUufrro31pl5ot5uK5+hFSh3xvGoNCesGQ7/wj+srw9QLK SedHaxKiXcl/KyaScz58J9luyYcHNgYv4AnnE4hRpvZpK89yMJMledgYiNqpuOtC63NO usZzLOcAUdGZQ5U/gm0l54Jd2LEqJzUY++ysPrKJn9/S09tkvSZ0cQ5Ofn+TgJEEZXID 2+x5QC4gYZTZmPueR4SvE3B4GtYSBZqsfk6D22YP9IuV+JjWG1ZOEPcSXfbaEhnpRGkj LmTiIU6BesZj9HKj1w3R5o55tWQnMBW2N2yrPlj0S+iK8VzWKL55XMekjHlPZaba3waR lALQ== X-Forwarded-Encrypted: i=1; AL+hErElsFb60l8pPTngKyu9sAy6AsGqnB2YKQvG6JANKhcd4Lg5RvPvpYpu9Dzj0RawRSyxsO519r1eAF7V4Fk=@vger.kernel.org X-Gm-Message-State: APuU4Z+G9Oyj8T9ReZo0CcQcE8+1cPrq1Uwtq4LSHDLTIMcmb5AoLf/O XV5WIY1rl2ZPomk9pWine2R2EN+KEz5+d7qtm9l3A3cfnL2O2FtsWTqw X-Gm-Gg: AZFdTZerjet6Ts0bbMp37wZpM8Bber1rfcawrJZpW9V7kHNVMKWjKk6yZMQuJoPaqhC XDIeyULTIum0O+5Z230aw7DL7Z+VQDWBQS0bFRsx3RIhyaL8RsPE0SlQtKaJiL8KLDLfD/pTLGs NNQRQe9loLLax4B8PjhjluDB3QcIOsRhjCCzx6k2L27YwfQtlxr0SQta21ULhWWF91Tt+ZvK858 KOKkwtrFfJyr7bsZQfzq20F5Yx3Cpro2jnNGDTEKRyUozaolW3fHIN5Z9EovwIWgXNfv34KzMg/ Exj8UiiA83GR3wPXNvXwLLGNMidYUvL3GZFNH/XOU0sFd495Im06moAqy2WRId12bpV+qRHftmM 5Mwb3WvAMAYUWu7kudUTX4l02cJbFqKc6MeXgiNntD40MEukathsE4JYZpjTvOQ3kG3vBwNtx// Cxj5b8AWHeLOZq6+LVzihPGRil4PmWFTl+TbQwf6a9wk+cZoEh/7El+/S6n2gH9FIJEN+BcCDoe lZcorkoh3ujUsX5GAfIG7mXMMwMK8l1TYPZ3420AvywvqHEfjItzc438UR2o0N6wtuZwcZ2pvPu M28ue4UbH/+NYrRdC8czwLrEGDSNvkXAXp2E47pBCU07dCeahK3whOTXXulGDIAbIy4fA5Uyqg7 gc3OtpscLral/AjJCjP4qmZiTm0jkff9uClAVE4Ofr9/79Xqg0EkApY5zAS309pojUwgAFpu0vP pSM9Q3QfZF9uJTlGbY1Fsi3Xux X-Received: by 2002:a05:622a:428d:b0:55c:54f1:a9fa with SMTP id d75a77b69052e-55d769e7ea5mr806455461cf.30.1796278432658; Wed, 02 Dec 2026 22:13:52 -0800 (PST) Received: from 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 22:13:52 -0800 (PST) From: Joseph Telaak Subject: [PATCH iwl-next v2 0/4] e1000: phylink for the Intel CE4100 GbE Date: Thu, 03 Dec 2026 01:13:46 -0500 Message-Id: <20261203-e1000-phylink-v2-0-0a8f80515363@telaak.dev> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAA/12NwQ6CMBBEf4Xs2ZpuExvx5H8YDqUsskIKaWuFE P5dqDePk5k3b4VAninArVjBU+LAo9uDOhVgO+OeJLjZMyipNCJqQSilFFO3DOx6UTYXa215rU1 bws5Mnlqe898D+DMIR3OE6teEd/0iG4+7Y9txiKNfsjphJrJFSfyzJBRSKCTdor2iNvIeaTCmP zeUoNq27QtfIiSlxwAAAA== X-Change-ID: 20261116-e1000-phylink-9d5ccc98baf9 To: Tony Nguyen , Przemek Kitszel , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Joseph Telaak X-Mailer: b4 0.16.0 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