Article View: linux.kernel.netdev
Article #8560Re: [PATCH net v2] net: pcs: xpcs: make supported_interfaces authoritative
From: Andrew Lunn
Date: Thu, 29 Oct 2026 13:10
Date: Thu, 29 Oct 2026 13:10
11 lines
8578 bytes
8578 bytes
> + /*
> + * The RK3568 XPCS supports 1000BASE-X, SGMII and QSGMII.
> + */
> + phy_interface_zero(xpcs->pcs.supported_interfaces);
> + __set_bit(PHY_INTERFACE_MODE_SGMII, xpcs->pcs.supported_interfaces);
The comment and the code does not really match. Why not set the other
two interface modes as well?
Andrew
Technical Details
Message-ID:
<8cd7eb4a-84ba-487a-b1f2-226d6fa02af0@lunn.ch>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353295-linux-kernel-netdev=dewy.ruReferences:
<20261029102728.3189359-2-coiaprant@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353295-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2] net: pcs: xpcs: make supported_interfaces authoritative Date: Thu, 29 Oct 2026 14:10:31 +0100 Organization: Usenet Network Message-ID: <8cd7eb4a-84ba-487a-b1f2-226d6fa02af0@lunn.ch> References: <20261029102728.3189359-2-coiaprant@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2012907"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:1IllvzGLOL6YGbz+Pyw2qscCbJ0= sha256:2v6BJ/oBRy1HeF7cLZgi42CugmiGdepMD/MNjL6n8QU= sha1:ET7qykUvSsz9ZiRtXDAw4WswDdY= sha256:dBGzcEYcrg1N1sNTZF4Dt5Vpwpo7p5lTC35jggu/LyA= Content-Disposition: inline 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 D07F8125C68; Thu, 29 Oct 2026 16:14:51 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.049 X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch 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 VRcirbT6jgQA; Thu, 29 Oct 2026 16:14:44 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353295-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 37CCD125C66; Thu, 29 Oct 2026 16:14:35 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 94A252B96A; Thu, 29 Oct 2026 13:11:02 +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=1793279462; b=Qpma2X/m/RjvIyy5RNOZvnSeRy7UB8Vx+mjdMHDvoiR8sd4HHkKRFWsCPyfD9UNP0y02 8ZGUmCtWXKLbKeDYwg2bapSEOjQBwcSXEKAbQWiGIxGElNtHdhuIkztq04JNml/Ax70uC +5MP99e8T/4IJXu1Y4LMe5OSrmiSLUaO+JpD7/9qrWU2wqDKdN2wgwIysDB9mDXtB/9mO cSF3ln3n6er2Gcd+nWrcpJkIN82smbkacuvufT8Q5AX/8XZ3P+CYrHVvedPSL+doE/1pK fjN6HWF1/pUpr/mB8Fs6UOzPOkYIFB/BbagSVV8fJCb+Wa6FF+1dZ5j63SZHOn6wNSA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793279462; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=xEX+VUkqLlTdDV/lONb3Jp5n3X29i+nwYbi6eZJH5mk=; b=GBO+qk5oOueYdss14wD8wUxYMKQEPnroLbO6p9hFmF54Vp1j+sdTdtv0IivAGs9kq8+1 3SYGFjVqznEx26M23YGA4Dj5O0cVDeHZcOba31PSrUUE1zlN8OYciirM+boEya5+AZzj5 pF/JLEBrI7IOQR0XA14sgyt8cLwzijAWrtFuXcLqYLJnftSOmf0RJYGphdspLCdRQ+7k1 cBF/hRpde6diTE0cOvQjDlk2BSD4Don0/SXyGKjutJ6m89dj1cBGDbUwFscbtFTpdmj2g UhDR6jTpoW9jrf3A0K5lttaSObZrT/Imy4RorKo3wtjSKkxFTuyokEKO33ntcuF1rxg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=zvTybEo+; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; 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 2D032606A324; Thu, 29 Oct 2026 13:11:02 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=zvTybEo+ X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793279456; b=waHpvWwHBTWtRwpRv5izGglhtWxEgAhRcJzS88zuGZUNlRmJADbSUUEvNJv0Qsh6fS6u 9maB3nVVGaDgoUGo8/LPGRmatE8l9Qg5ApBAigs3qzT34ZUV3ZSptzWTUoX+mOkidnWqK 3iZUzxcqNVVLjWjAjceK7Xi6eV7XU7bIQjqXNqobVP9puzRkUYqh9yEo8AV3D/TNMId+y SG6aq71v1LjT5eoo/F0HuptnW7siJxO/oXdoIslEZ/LhxaS3DoUiQQDsubjT51y6OsGR8 r1OuszTL/OPrfVSvO1e4zzf4JsoKYSJ1QK6/FJgNd7O5i7LPb2LQkiMX+cUTYR7ZorA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793279456; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=xEX+VUkqLlTdDV/lONb3Jp5n3X29i+nwYbi6eZJH5mk=; b=4IDQN4MKCH5/sFBPXnDpZO1Vr/Adzu/sA26TCbQR83Gilky0E+R8y6/BrK7wcvUQVj+y Tnkr2PGDDoa/3u3fgLj+GhlQQWLAEWa9OwjxzwOWAR0dqtG3jZPpNAqodB+Iu7O7ZiJjN xvOvVAOtqlnnaX2tn1mJL9vQgSCNa7Tgee7L+dsx8YVLVWGYhNZElf//Hk4bIIzCvjVJr ilB+lS5MtrxekWfWxcoo3ufzmqhiTn2xor2zqsPFxtC/Tp8qgBkN3RRpypA3Vx14mvTsx DLcbX9Gw6Z1zXMB/eucHNWs/hJ+oMCQrEXq2f806tAgTJegSzMaFHlIUZCQryd11Rtw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=zvTybEo+; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 545C0606A321; Thu, 29 Oct 2026 13:10:55 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 545C0606A321 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=xEX+VUkqLlTdDV/lONb3Jp5n3X29i+nwYbi6eZJH5mk=; b=zvTybEo+UjTGt38a18tRwnzwB6 DT+YhzzZZEIj0vutoFd5RI6qXLSpj8+uihrnXiC0eJ/NZ8zIYnMtTK/kDCVH4ucYGyfNmyILmQXdU lMCwewguiTZQ5TawgNEq3m5vAs+B0KKRhshzrxD12zSzxca2vV7Y/NhM7kChKW+ljhCs=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xMPtn-00DFME-83; Thu, 29 Oct 2026 14:10:31 +0100 X-Cc: Jakub Kicinski <kuba@kernel.org>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>, netdev@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org 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: <20261029102728.3189359-2-coiaprant@gmail.com>