🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24322

Re: [PATCH net 04/14] net: phy: as21xxx: Use the correct mask for the speed status

#24322
From: Andrew Lunn
Date: Mon, 30 Nov 2026 02:39
18 lines
9090 bytes
On Mon, Nov 30, 2026 at 02:55:11AM +0200, Cristian Ciocaltea wrote:
> as21xxx_read_status() masks the speed status with VEND1_SPEED_STATUS,
> the address of the register it just read, instead of VEND1_SPEED_MASK,
> which is the field mask the speed values are built with.
> 
> This affects the path taken when auto-negotiation is disabled.  For
> example, after setting "speed 100 duplex full autoneg off", ethtool
> would incorrectly report "Speed: 10Mb/s" instead of "Speed: 100Mb/s".
> 
> Switch to the correct field mask so the speed is decoded properly.
> 
> Fixes: 830877d89edc ("net: phy: Add support for Aeonsemi AS21xxx PHYs")
> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Technical Details
Message-ID: <ee676bb1-35e3-4951-89f0-fcc71fb77646@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-373784-linux-kernel-netdev=dewy.ru
References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com> <20261130-as21xxx-fixes-v1-4-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-373784-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 04/14] net: phy: as21xxx: Use the correct mask for
 the speed status
Date: Mon, 30 Nov 2026 03:39:13 +0100
Organization: Usenet Network
Message-ID: <ee676bb1-35e3-4951-89f0-fcc71fb77646@lunn.ch>
References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com>
 <20261130-as21xxx-fixes-v1-4-1bd2eae6ccbc@collabora.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1313272"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:2CbnxZmb612wsL60rNgvNkMH78Q= sha256:mOvvAkF0X9EVHCiVIGv5fKViiq4/6IChFNnvlke7ang=
	sha1:oDpQcUswVvY07T/0jk5Q0J8kpqs= sha256:eDBleaNaPA5tUcFcT69yO2kx8bo+tXx7KVCej4TMGPU=
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 C98F9125FB9; Mon, 30 Nov 2026 05:39:36 +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 pSm1L9D0WIUm;
	Mon, 30 Nov 2026 05:39:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-373784-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 0F86A125FB2; Mon, 30 Nov 2026 05:39:26 +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 D348027E2C; Mon, 30 Nov 2026 02:39:22 +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=1796006362;
	b=3Ic6ZnQKNORNzF5u74qPkkSOIi7uuiOkUQYvF01l2z0Ii+msE9NCMCGnx/s5eB/fi2Q9
	 XiDQMqWYhKy2f7SK14xrM82OSFsnH+ysgEpF3dGAJ30PZY5nqNgcdiG91jFoTVSMJ7Dpv
	 ZDkdqGuJznbcbDDYI2XyK2lw76z08Uo/XJwU2CQORKs1krBoEK0pUBj4YXqmlcpkFaxeW
	 NPfGs/7KposqEenrYfoeSUxdKv0rS1tQN5nk4pyV2aWuASrJsJGjCsvulSa0KMXe/ZK01
	 GfY3jnoMWvcN86jsjHIuO4s0z7UX0ekNblqImWfyLx9ylRgCUVfKTw10F8FPUP5njpA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796006362;
	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=dJSgsxjgkeULV4ngCHKq5uEuShqtbVPD/zXyTIDckH0=;
	b=rVXsxyOAkABtoqz+E0XS3TWSBWgnoD6BWACliwv1m482ZhPi4zwrWz+hSqfEDBT98GWj
	 Pq+XFby6qoHC+y6VfE7K99g9oGNhQVToPsiG4ymc3JObZTtA7onroLSNtr+aMpwCUf81Q
	 uBSxPX5YbiM4tZRqo4s063NXrP/JlkRvzhjRGnBz5APodtitDRXDnsAWGPMDYIUTCyQil
	 VZazk0Wmit5IF5NA+eitP/GMrLv8c7kAVrLQ5HLvJzKipP+uMWbUWlkw5KZzacf2tQRCb
	 jdSPC9BdkllyFwjfNhLm+Qf4m3KKldv6tEDdth27ApWOZiO2m25AnaIGKvseob37BIA==
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=p1vTysFr;
	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 AA355606A334;
	Mon, 30 Nov 2026 02:39:22 +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=p1vTysFr
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=1796006361;
	b=i1MVw+wBeKLbe07uueaZwJtvluppN768uEf9pAU3ffQOnmCll/IeWEzJXBGI4j4ZC+pQ
	 OZ1Owo21QwPMfvd15VgCkFHoNep9KTc3Zmwj2gAhN4yw1U5HlW+0wxZ/bANN7+K0cFdWq
	 iQNByRiM7PAqLOQhRxf/SziOFwJylAVlk0v7PdiauqAI0fI2wcmPiFdg/+Z7BiR8dZFpK
	 +uRxvIx9O6yiAHpSnBF8wWjZokrbwP6jN1Enl+INzOhJ6ErQijONqVtY752bqOd38GXQG
	 ArKvbTMhuU0LeosyPzHVfZ77U1KDfUB5FYWNVJYl6Fua/8MbPZXrVZtVxqEf1fxRyRw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796006361;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=dJSgsxjgkeULV4ngCHKq5uEuShqtbVPD/zXyTIDckH0=;
	b=nBzg5EsXpXOiHYXJgD/0A40L6/pkXZv+gjTtk2JbwY8W20KKLFWHURbGdwf62aI5YDV6
	 aheJb8Ja32JlPhani04FBt+lAab435O8hRYnfBToRlzT9RbEBy2e1bRGqLDiMLgHW1hmQ
	 0URBfewxAV97b496rmieIADEH/t7d5jzvwBxHspNrK8mhdmpXCwr5T/inA9PZS3EzyHfE
	 I6PXDvepBmFasE3mCFrSH3FxZ/JTejO755SCUa5CDl4DUB9NC0ko5uuzkJYLI2QN3tYya
	 HBIXz4/lctTzVfFHImaBAfX2s3fGxxwaqRVLS7BxxpWX55j+UNZKUD8eX3lqz5XWJAg==
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=p1vTysFr;
	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 85BEE606A32A
	for <netdev@vger.kernel.org>; Mon, 30 Nov 2026 02:39:21 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 85BEE606A32A
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=dJSgsxjgkeULV4ngCHKq5uEuShqtbVPD/zXyTIDckH0=; b=p1vTysFr4sJ188GElf6GQSaXWM
	EoTXZYsHhO5Oes47nHBD4rZ2cTB76vsVPjrBVvj0jnmjoZUjhMzLJHfParSN14dTn0jBqMh2DzLoR
	EzPys2AxU6cpyLKotJPiSEum1K/GNYpAJtUaNRiHGtxp3lVEOTrZfw0blX7ge3aXXM9g=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xXrIP-002GB4-Rl; Mon, 30 Nov 2026 03:39:13 +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-4-1bd2eae6ccbc@collabora.com>