Article View: linux.kernel.netdev
Article #24375Re: [PATCH net 13/14] net: phy: as21xxx: Fix speed and duplex reporting
From: Andrew Lunn
Date: Mon, 30 Nov 2026 03:50
Date: Mon, 30 Nov 2026 03:50
18 lines
9070 bytes
9070 bytes
On Mon, Nov 30, 2026 at 02:55:20AM +0200, Cristian Ciocaltea wrote: > With autoneg enabled, as21xxx_read_status() derives the result purely in > software via phy_resolve_aneg_linkmode(). That does not work reliably > here: the advertisement is driven by the firmware over IPC, which > ignores the Clause 45 AN registers phylib writes except for the maximum > speed, and arbitrary subsets of speeds are not supported. So the firmware is totally FUBAR? So autoneg does not work, other than for a single link mode? This suggests you are setting phydev->supported wrongly. It should have a single link mode in it, the top speed the PHY supports. phylib should then do the correct thing, it will only let the user select that one link mode for advertisement. Andrew
Technical Details
Message-ID:
<285d83ae-7c91-44c4-a37c-7c4201c11211@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-373854-linux-kernel-netdev=dewy.ruReferences:
<20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com> <20261130-as21xxx-fixes-v1-13-1bd2eae6ccbc@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-373854-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 13/14] net: phy: as21xxx: Fix speed and duplex reporting Date: Mon, 30 Nov 2026 04:50:44 +0100 Organization: Usenet Network Message-ID: <285d83ae-7c91-44c4-a37c-7c4201c11211@lunn.ch> References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com> <20261130-as21xxx-fixes-v1-13-1bd2eae6ccbc@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1326114"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:8atuJHX5/I/HEZ9Uj3DVZlo/bH4= sha256:bHSGDOVbRSYOyNtlWDAfqANSq7roH7uDqGObkbasuRc= sha1:TApGwmjv9oczDRJsMlMwyozNTzw= sha256:FnRQfMI5WNROhHvkHWYnddhaO3kVtjWroKImN9Ta2oQ= 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 471AC125FC0; Mon, 30 Nov 2026 06:51:12 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.151 X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31 tests=[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 GxfevHEYLRm5; Mon, 30 Nov 2026 06:51:09 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-373854-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id EB586125FBC; Mon, 30 Nov 2026 06:51:00 +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 893C06007B0; Mon, 30 Nov 2026 03:51: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=1796010657; b=2cgcehbxD5DTkmY+5lH/LAAuE20sweuQalUW7QilFMmZ7urJ02Xey+DjsmNzCLaG5ADL eul2yiExCeHVqPCZGC7bCmU4HcrFytqXpiUzZrfb0AVeVvCu4lfXXf1Sj21G8u7ggiTes 93d2XluRUgEAZLpxsAlRFt3YgzyRg5BCHQ9kwItKQkNPhrCwzEL5m+SGkExyhFPFGAgpM MwlKQyRIxg+EmKpG2+wSCq8BXt5ENK2P5SkCg+pLpDetemKYWui0fW7jaUAP19Xc3EFS1 B6tr9MAjxnUPY6HC1PoRmF3ah4whcNK+QHlVAYmt3ao9Pg+PE5xyumI7FvU0NWgAg/A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796010657; 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=S6ZLF+9Ol9FcrZmuMH3V0ZhB3OadixAkxeZICCgycJU=; b=ibOnOg3eP6AWP18iqwmzl5rYcOMX23Zd/qk9sGaVEWio0bm0mVEOpApUW+XyE4cQVL7G PPAItLdLj+I/qlrI8ukRkr09JefFRqHd+y1iTLMMoFGHdHtFmPyqbLDU67ThlJcJkDHFZ khMLD3K5PPZOB5UYlRlkU72q7wV6qjMESH58l02uHz830x7EmivigzQLa0BI5hqajsj2z KbcP4iV5BcRo+QyrHO+8T1z+3+69zrZPfWV/msCGVPw/Qb9Wuh8nB+NIfNH+pb3+iN4fV o7/rKR4pAbMdV3TiRnohSg/Iih+W5RP2qpA54l7PSzRN+eJc6umDVbrGLv5+4wkZXZg== 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="cgw/Pdzd"; 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 1FDA8606A336; Mon, 30 Nov 2026 03:50:57 +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=cgw/Pdzd 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=1796010656; b=uV7/bnf3l0rMlN0H0YiFL/eeBW6+9fW5cT7vQbE/oizB4z8jNfx+hPFtJgcUmDT8q6z1 NFnXLV8PizFSNRMV/a/tF/8DCuMKYYP13+nCEiuhLD1apZpwQ8zvmh0L5Y/XjGvbrApTu THOFdvaj7dGUmr1CX2J7MN+PcqWJymRk3AUnC5Tpc8r/KVckZV1CnrZqYwi0S1auPhpMM i7/F0G1QZWpsDCE2SbVTHjZC01fExBKi+x4nGwJi4f398meCYbhg1Uf5um5r1zGZgkxEO XPPVShZoxkwFHf7JLWAZ5LLKNZ/Nr4sdwFSP3aMx6aq7lqVzbJiP1KHvAc+442w80fQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796010656; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=S6ZLF+9Ol9FcrZmuMH3V0ZhB3OadixAkxeZICCgycJU=; b=KvRqbRbmV3M5kco80aCW1PgerZjRTs5207FoBLC7YBjQRaYVuyv2sKCzSnakE5zFBDdy gNj2nd92WmCSM/acSaMruPpLiMhlF0wGxJdP7/fuTme456xpQkmsEWmIZbv7woL8yc4x4 QcMtrR/Zc7z+3GvTaI+GC0ulVHcx0GyjXVt3H2Of5vPYuC7l4sBjP69+CfSyyyMm4GBiz kiKJYDYWqZW165jp4/Db3sSv1TaMF4CY1U9FayT4j49EV3bcNnYM1Z7mYbDoX0c11rg/T 07QiNCwXI3MUSbrqo053gYhT8qJaF2mza3tFFC3tVgxnkCerl9M5rqzA/TMZC+L8PZg== 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="cgw/Pdzd"; 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 F3A3C606A325 for <netdev@vger.kernel.org>; Mon, 30 Nov 2026 03:50:55 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F3A3C606A325 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=S6ZLF+9Ol9FcrZmuMH3V0ZhB3OadixAkxeZICCgycJU=; b=cgw/Pdzd2N0PoGqttwaHFsXqXD 4/BsqJq0DVOvmWvJ0EKbi9cPshzeOTsi30ljMPaxOHHn2MyYxBxBgv1QusraKwrv8+BvOAAth0o8Y EbF9t8hfHG10IyM7HYVNmxKjuEuHqvilF9bRfskkA+DJuUTApP9/TAEzjp/tiw2VQSd4=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xXsPc-002HSN-Sc; Mon, 30 Nov 2026 04:50:44 +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: <20261130-as21xxx-fixes-v1-13-1bd2eae6ccbc@collabora.com>