🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25124

Re: [PATCH iwl-next 2/4] e1000: use phylink for a CE4100 fixed link

#25124
From: Joseph Telaak
Date: Tue, 01 Dec 2026 09:20
31 lines
11973 bytes
Hi Maxime,

Thanks for the review.

On 12/1/26 09:58, Maxime Chevallier wrote:
> Nice to see some steps to use phylink in these drivers. I wonder what's
> the amount of work to port "the rest" of the PHY logoc to phylink too here,
> likely quite a bit with the NIC handling the PHY in most cases...

Quite a bit, I think. The 8254x parts drive their PHYs through MDIC and
also have fiber and SerDes modes, and I only have CE4100 boards to test
on. So I limited this to the CE4100, where a fixed link to a switch
currently fails to probe. Without a fixed-link or phy-handle the old
path runs unchanged.

> Not extremely familiar with that driver, but can't we just
> check if the struct phylink *phylink pointer is set in the
> e1000_adapter struct instead of maintaining a bool here ?

Yes. I added the bool because e1000_hw.c only gets struct e1000_hw, but
it can reach the adapter through hw->back, as e1000_get_hw_dev() already
does. I will drop the bool in v2 and check adapter->phylink everywhere.

> phylink is an internal framework, mentionning it in an error log
> is only going to bring confusion :)

Good point, I will change it to "phy-mode must be an rgmii mode".

Thanks,
Joseph
Technical Details
Message-ID: <CAPY4CJ6xFU0bDbdgFsKcRSujYVRoGQKXoMccRe-hqtxn63NmiA@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374895-linux-kernel-netdev=dewy.ru
References: <20261201-e1000-phylink-v1-0-21e6f1c816a0@telaak.dev> <20261201-e1000-phylink-v1-2-21e6f1c816a0@telaak.dev> <4f29e730-b8e0-447f-8418-fd11907ced81@bootlin.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374895-linux-kernel-netdev=dewy.ru
From: joseph@telaak.dev (Joseph Telaak)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH iwl-next 2/4] e1000: use phylink for a CE4100 fixed link
Date: Tue, 1 Dec 2026 04:20:41 -0500
Organization: Usenet Network
Message-ID: <CAPY4CJ6xFU0bDbdgFsKcRSujYVRoGQKXoMccRe-hqtxn63NmiA@mail.gmail.com>
References: <20261201-e1000-phylink-v1-0-21e6f1c816a0@telaak.dev>
 <20261201-e1000-phylink-v1-2-21e6f1c816a0@telaak.dev> <4f29e730-b8e0-447f-8418-fd11907ced81@bootlin.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: usenet.network;
	logging-data="1672479"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:B9psw/tMdfLmYcENhicV7BN4njA= sha256:t+pRtOW7wOl2SDKWGIs0wfVCcdtSgLpMJvz9i5cLamg=
	sha1:Kw53lMBZYNgNAIt/hkv5DcBCcyU= sha256:1aWiM4E5EGDPddP79dQAN6zUxDModz1CRIVn/tzp9Es=
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 442D81172FB; Tue,  1 Dec 2026 12:21:07 +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 RyeYkrrrgyQ8;
	Tue,  1 Dec 2026 12:21:04 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-374895-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 4509C1172F6; Tue,  1 Dec 2026 12:21:01 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id BD5E1601FBC; Tue,  1 Dec 2026 09:21:00 +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=1796116857;
	b=g0yH9FXcIz8a9LNyFaq0Bb51w6mDqGLbme/Qljd1Yt/kWKQtM35CMYU4EvPFDwazgfwZ
	 edaLLX0ZnGOi4KAWJSS0bVBaYJ59Djlmafr4IUg/MERQ9UIivifQyZ6yqBH9AEzbFZh64
	 V0YYBE6F2ytwWkyXpF2Bqjg3/s8oeLweWzcC8HyKmMDpSQA00ZAuQdwpRP4D47r4v2Gry
	 qb2f1OfISBiqVeQFjbu2tMdEsyARCHrtUEttmvd3eW/1d2R8NmE92gJPiPny5siR5wjeH
	 pFmocQBglI41fxCcwEs0/nqWc8BWzIBgt9oAXoTn13WhYfONrAeb9TdMKr6YH8IMWcQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796116857;
	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:
	 Received:X-Forwarded-Encrypted:X-Received:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:References:In-Reply-To:From:Date:
	 X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:Subject:To:Cc:
	 Content-Type;
	bh=sfNja75eTdu3PJ4LZRc2ZvHmslYnviHo2++TMUJxWpM=;
	b=DykijmA5CfO9pn4EFjGu6bg0AlkLvEUWXP9XbNDdCu63TGV8fYvmBXlCxKi/2s+noa+x
	 R1d+TItncWzQtGK14r3h8ARwGicwB7hgSvvTmjp8QQK9wpEtTar9szHKQLSb4ZO+R2XHg
	 0PEh7/tVQZCvMwmcA6/7gxKALyzefy3TiJwBUuFmunF1kB+DGy46sIDU4oGo9TvdaeW2U
	 +ogNBv3bmOKUQFIVUs1vPCevdzrst+5O5WD/LyGyalMD2saVgorKtN7fCUxRi4tH7Xovl
	 MB+xO3yaUqw3ZN5WQoeFh5YD0bLi91wf2nJhU3bjfH2l/nMC6Y2cnXvxvAYOWjwjzrg==
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 30564606A338;
	Tue,  1 Dec 2026 09:20:57 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.176
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796116856;
	b=vU7Te+ZvIQtTb8FZf7br5Cniun2SFsGZBfGbofqC5w5H2uKKrrEl3D7J+Cz4VHU/iqLt
	 hXcOM6TVKS3T0Tvpo4xcCp1AMwb9d05vmC9tzQ/ZJ8zcVsxnB5ywkYNGH1k/PKM2v1yfj
	 Hi8YgPOTmTCU9Teb9j/O23s1lHKdOcM/SIoYneNMYb/yHOuyuRvsAvKVErm9Z3iYeG2F8
	 3rU6bydK2WbUQ59gHNtiHlFSgOUo8nyL7G9gLww/N5646j7kf/aZSQHolrpDvLlqgV8g5
	 v6sjlD0U7Ihb/soeMiktYLNKz8rygvcZEG+04c5CEpKuzsg3ldHKaktdPwUXaGEQ8Pg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796116856;
	h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Received:
	 X-Forwarded-Encrypted:X-Received:MIME-Version:References:In-Reply-To:
	 From:Date:X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:
	 Subject:To:Cc:Content-Type;
	bh=sfNja75eTdu3PJ4LZRc2ZvHmslYnviHo2++TMUJxWpM=;
	b=HCJKmzvB6AUcENVNEj09amOJaNVKWpkUNM3zk4B8Rdx8QKjisPJGszcD+euEJ3zGPo4r
	 aOUb3W3m6kQltAvjgrrexlEvvx3xUdL9GWh/pnenWsmexUqMVlFrNQRwdCNvBxwy6BJVh
	 wDFUHaisnXyjNAhwikfmN7Z3IjNwzWAsH8/zq4n/Z9lK5daS2goMWafO2/rTYFaU69lTQ
	 FhjLrmFl94oBbdichY0NXOOtA8YMLwZWhbno3L5XbrWFe0PVkv4C0SyVKTRFMcEXJDwYp
	 hizAUFWnv642cra4l9ncyZTFYj1//bEE2yvmB4IdpZ4AewlYal7P32HzWIQL8liw4iQ==
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.215.176
X-Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176])
	(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 46B1E606A320
	for <netdev@vger.kernel.org>; Tue,  1 Dec 2026 09:20:56 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 46B1E606A320
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-pg1-f176.google.com with SMTP id 41be03b00d2f7-cdab938dc83so4563648a12.3
        for <netdev@vger.kernel.org>; Tue, 01 Dec 2026 01:20:56 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1796116855; x=1796721655;
        h=content-type:cc:to:subject:message-id:date:from:in-reply-to
         :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
         :subject:date:message-id:reply-to:content-type;
        bh=sfNja75eTdu3PJ4LZRc2ZvHmslYnviHo2++TMUJxWpM=;
        b=CLQkpjhnJrZRVv+R1FZkdSM78llBYTPEEk/7GW01CNT8Ofbn5Z8/ky1fg34w5CX8NW
         lWkPAC1sw7H8FhIjsxivE79U5tUPJAbylcuj27uWvN9PGdkLjQSMhcXxF7q35Y/UGaix
         YMa3bfRXVDxhzzx2DFCk/pWS3/uFj6zDPyuYrbFMI24Vl1QM3fzGpSvUjEfzvbpLVS8H
         g8coOVRgEyOFQ2CGZs1rZPgpMH3VaFNBgxf/FJ58gEQyqLudDxUaWrqLn1UR6vJQ3gf3
         JKWqeYCeYBQJc4y0M5mKQUo7+XmCRZ/dAoAsk+MOHq7v4evTdNDFfU9g6lTrfOUUN17U
         zfOg==
X-Forwarded-Encrypted: i=1; AL+hErEI7T/1kvOJN3ZsJ4nzJSYCnJ3SGFQqIWU8t6vDRu+M0vvXbfjbHqxuZCF4OJSInvWLjLAb8D8=@vger.kernel.org
X-Gm-Message-State: APuU4Z9rKsmLvcWolOP+ngF7zwTZ0orrPPAioQOOlPuJ/9i8zFf79WXz
	QDMW6sRIXM/6DzcI/hReg5umIfqin4JhmCGpgqze8BrI3PZOeS13P6fXHfxTTLsQ
X-Gm-Gg: AZFdTZfsRQWI+rnnqQZZ77dECQaxkzZ7efxJY3KyxW+U4lC3EyNNWle3EyXo+y1dh89
	6RQ7DppESJWkmx1bPN41uUPoEoXmI0obUFa2JYX/nBuOJYBvq1OetVjfq0wyfDz6p32JXwqrPRz
	9+JoTpLEvYnr73y3tnydCM2/OTGB1bg+6IUsWHhPf5oTv16uBYrINVLYHgz5IVoWGzCewtwZV0n
	6QYUna/DN32geFQqS5H5Hd+JIhPD09ZBP0qN8nx6KiBzLjMrG0zxB3AmtompEP+oCQo7Q5X1ZMG
	xcfFCXxgJPD31nCixTnqVp2Wl5NgfljY1eeBIwAHoOvMSkHl15N+zPcr0znpBPOK6959fWiSWeR
	4rLrAQOFRRUFWvOk4FPTb2FaySffCoLCQtUmB4/lJ3abLJLhMAuqI8NtBXqah5/7gBrNwjZyupB
	6SQfdZWJeG4LfJ9QMRFTHvNvh8f+yH3rcRSK7tIhHYVHVKpBQ8YGo+SVMdExmPG5puXCRLhbnSJ
	efJDq0ystSTpayM4FcDNfgighBOvIlTvXlW1ST+vROG7AGL2Ntwzr1PQzzQ/OezvR+3CeL/OxTI
	MQIpqk116++F/h/K92zd4B9QLU0/EerXYWcYFBu18pNMhIM+sOB/IBJD4zwAKZRIn/MoXr1/AbW
	WHd2Lw3IqGdbI1YGCoCjDspd/+OEDix9TJ3nYyuE=
X-Received: by 2002:a17:90b:288e:b0:3b3:ab75:c94f with SMTP id 98e67ed59e1d1-3b41c92a098mr36349935a91.31.1796116855198;
        Tue, 01 Dec 2026 01:20:55 -0800 (PST)
X-Received: from mail-dl1-f53.google.com (mail-dl1-f53.google.com. [74.125.82.53])
        by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b4dfbe54a2sm37905178a91.17.2026.12.01.01.20.53
        for <netdev@vger.kernel.org>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Tue, 01 Dec 2026 01:20:54 -0800 (PST)
X-Received: by mail-dl1-f53.google.com with SMTP id a92af1059eb24-1b546061d58so2033442c88.1
        for <netdev@vger.kernel.org>; Tue, 01 Dec 2026 01:20:53 -0800 (PST)
X-Forwarded-Encrypted: i=1; AL+hErF+C5ZjeiM5PMK5IytBNGb0PADG85ZTlIJe04onpyg5m9R03yQd4QmdifUO7nd01R5ahJ606qs=@vger.kernel.org
X-Received: by 2002:a05:7301:418a:b0:381:3b6:6c3d with SMTP id
 5a478bee46e88-38571417ca8mr54535492eec.35.1796116853434; Tue, 01 Dec 2026
 01:20:53 -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: <4f29e730-b8e0-447f-8418-fd11907ced81@bootlin.com>
X-Gmail-Original-Message-ID: <CAPY4CJ6xFU0bDbdgFsKcRSujYVRoGQKXoMccRe-hqtxn63NmiA@mail.gmail.com>
X-Gm-Features: Aa3M54pYHVXqXY0DePgiMduU5CCDJuAgq9E2SRVflXfgN-U9kZrNrFPO7L7CFGQ
X-Cc: 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>, intel-wired-lan@lists.osuosl.org, 
	netdev@vger.kernel.org, devicetree@vger.kernel.org, 
	linux-kernel@vger.kernel.org