Article View: linux.kernel.netdev
Article #24634Re: [PATCH net 11/14] net: phy: as21xxx: Read 10/100/1000 link modes from C22 advertisement
From: Andrew Lunn
Date: Mon, 30 Nov 2026 13:39
Date: Mon, 30 Nov 2026 13:39
20 lines
9261 bytes
9261 bytes
> Yeah, the firmware is definitely broken. This is what ethtool currently shows
> for both PHY generations:
>
> Supported link modes: 10baseT/Half 10baseT/Full
> 100baseT/Half 100baseT/Full
> 1000baseT/Half 1000baseT/Full
> 10000baseT/Full
> 2500baseT/Full
> 5000baseT/Full
>
> However, my understanding is that Gen1 doesn't actually support 10baseT, only
> Gen2 does, while 100baseT/Half is never advertised by the firmware. I can go
> with the hard-coded approach, as there doesn't seem to be a better or more
> reliable way to get this information from the hardware.
Yes, hardwired is normal. See the mess aquantia made with their PHY as
an example.
Andrew
Technical Details
Message-ID:
<80d2d5e5-0dd8-4261-a2fa-c20aa32db273@lunn.ch>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374230-linux-kernel-netdev=dewy.ruReferences:
<20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com> <20261130-as21xxx-fixes-v1-11-1bd2eae6ccbc@collabora.com> <91684d78-c827-42e4-9563-c3ce1dcfe6be@lunn.ch> <78142251-19b5-49f5-9ca7-038dd3e70650@collabora.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374230-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 11/14] net: phy: as21xxx: Read 10/100/1000 link modes from C22 advertisement Date: Mon, 30 Nov 2026 14:39:23 +0100 Organization: Usenet Network Message-ID: <80d2d5e5-0dd8-4261-a2fa-c20aa32db273@lunn.ch> References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com> <20261130-as21xxx-fixes-v1-11-1bd2eae6ccbc@collabora.com> <91684d78-c827-42e4-9563-c3ce1dcfe6be@lunn.ch> <78142251-19b5-49f5-9ca7-038dd3e70650@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1435674"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:GqmU3H+QyCi89D9kDwC9BhJaUgo= sha256:0d86TN1+sbVV4MWM0ADhUPMzOeyHEZgossheisTpTZo= sha1:COndBtGGFPaFRA6qEOSyeiSqgUY= sha256:zO3ZDendQnWt+DycgGmMW6+DTHeqGq9hqTF58Zwum8A= 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 4A811125FF1; Mon, 30 Nov 2026 16:39:49 +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=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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-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 XrqvYYQOMb5a; Mon, 30 Nov 2026 16:39:46 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-374230-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 4364F125FF0; Mon, 30 Nov 2026 16:39:37 +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 2892426128; Mon, 30 Nov 2026 13:39:36 +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=1796045974; b=384XQTU7laA35M898wyFxDscGppabcqpm23wYdKQ+GcAeWkrW46+7WXVTBhz725D1QsX TRrpH01hJm7Wd+ZY/WUY0CLf2mWubxXiV+LE84qZGS6wO6KrlVe1SK5dMIPLAFOikcGA3 HDg3FXvZrJvYIFr2HHZK8pau6hVqM/TFCl1kYQCIuJscnMrLDWHZUpzx8b3OoaN8P51j1 0z3Dawj29+xAtVmVjM4GNQTHBgBRwfVC6YOt6aQzzyqU+9gVxrTT4WFT/7WE6bKQEpkxN s9bRr5t1IxCKphlOYNFthrTC9yyPtnDiUoQLZ3qtZL9dikA/AO/naEdPRwrOPOmuzXA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796045974; 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=33v+35Y+QWCncVH+r6A1kKsHbmsM9zi3cQ2Ge698BiI=; b=lPJANfhn4g1N5SYuW8c/GQh8RFouEeE3VsRs7iiOVS5LjFGxnVDJZ59zERTFem5T0kWm MgMpAEarTmOFTTzi+rFgLlvPMGR3tdCY/JbtPyZwtKwnpW1CzhcEFJ2kJy5fHinf5JbDt QaAwtDX9sP5DrKtmgpZ7LANG0ytLeY/3NFFE3e9GU6qgu5yFJeOUG4AuFrZA6MjYMXPf5 CeGUyN3ZrmxOzAbbKsAtekTM+HH1iQf1T+J004Z2bQdyj94wywT5d5f0IOUNtKPI+tFI7 aQ13MIFp9+sLw9fdDP6DDV/eca+U5AqnK5ZY+Q+lEFO6Dx+gYa7cuXHMEIdt7zrI5JA== 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="F/NPMwJL"; 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 1BB54606A339; Mon, 30 Nov 2026 13:39:34 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=F/NPMwJL 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=1796045973; b=2o4X5ml1tLoltd3jh8qAHHmH2qzxGfoHppkQbMdGw72nn6i2bhN3pw2M+P90jTEllgZh GnIPkO3m1du+ZrvKI2SP7saNJ6YWpBq7JXnMYPntudRmsFHDu4FftgUrsCqGRxWKk2yhM 7zLdtTWoItwmyVgqvzyU+J5eqpMYC6iFsQi2iqebY/cbYh9X+c1LnETIoacpYvd9m20MZ V0hAa3Wj161aGex/uX4BagnuQeF/JCq0Ry5Jf6MyqLj8tM7cGP/AmJIzZRFQr5Xm9pPQa X21nfJ0w+lZy0g4se92DNlZxUfDJHMY1k+xi1tRjmVaw1wAAPZWZkyv5kKKcUh4hKEA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796045973; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=33v+35Y+QWCncVH+r6A1kKsHbmsM9zi3cQ2Ge698BiI=; b=jBb9DnZNLVqhi2/jr4Z/7fVN9WNNWGm3h6fbIvpbVp0ey11ccvWyjTudEAj5U+U/qGQy pMXEEV6OMIJ2al5QwVGl7IlPl9GHgYCAtJY0mJfHI2blT/NXikZImyQNKvEgtRTuh+Bid 3sVnpZBtLP7KpiT9UHOMORraM75MARu1cKjjvP8Th1XiyHhk4MWrVbEx2f5oriGi8H8v9 kOb/7EMG/qlAEcm79GZnGX8tvBRs62ba2u1n1uMX3k2RhrK7uFIALsC87GW0sLeESny0D 0Y/a/Xi+ghvhzeXlpfzD/jRsMF5vYXRWju/GzJKAPs5PGR7cd43aB0mIlpZpEiBHI9A== 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="F/NPMwJL"; 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 ED8D5606A32C for <netdev@vger.kernel.org>; Mon, 30 Nov 2026 13:39:32 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ED8D5606A32C 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=33v+35Y+QWCncVH+r6A1kKsHbmsM9zi3cQ2Ge698BiI=; b=F/NPMwJLSqk+hJstzMUqi/lnZa jJjw88Ub9mZYHVdMP87jJpiSVEIIPhlAxVc0FAblyCHs8odmbXTBDoc131B0wVc1oZ20mPQxKINUy Eq2Y9eu/U7xahEDo/VQhK/m9XEZnILFuvUSTcu73cyp+uMytHIy9MdH8qgbV6s3RRR7k=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xY1bH-002NMW-72; Mon, 30 Nov 2026 14:39:23 +0100 X-Cc: Christian Marangi <ansuelsmth@gmail.com>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, kernel@collabora.com, netdev@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: <78142251-19b5-49f5-9ca7-038dd3e70650@collabora.com>