🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24330

Re: [PATCH net 08/14] net: phy: as21xxx: Handle IPC payload write errors

#24330
From: Andrew Lunn
Date: Mon, 30 Nov 2026 02:54
19 lines
8996 bytes
On Mon, Nov 30, 2026 at 02:55:15AM +0200, Cristian Ciocaltea wrote:
> aeon_ipc_send_msg() ignores the return value of phy_write_mmd() when
> filling the IPC data registers.  On an MDIO failure the command is still
> issued, and the firmware acts on stale or partial data left in the
> registers.
> 
> Check the result of each write and abort the transfer on error,
> propagating the error code to the caller.
> 
> Fixes: 830877d89edc ("net: phy: Add support for Aeonsemi AS21xxx PHYs")
> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>

MDIO transactions pretty much never fail, so this is
theoretical. net-next please.

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

    Andrew
Technical Details
Message-ID: <9d904f29-c804-441f-a163-2d8e4c319a79@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-373791-linux-kernel-netdev=dewy.ru
References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com> <20261130-as21xxx-fixes-v1-8-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-373791-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 08/14] net: phy: as21xxx: Handle IPC payload write
 errors
Date: Mon, 30 Nov 2026 03:54:21 +0100
Organization: Usenet Network
Message-ID: <9d904f29-c804-441f-a163-2d8e4c319a79@lunn.ch>
References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com>
 <20261130-as21xxx-fixes-v1-8-1bd2eae6ccbc@collabora.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1315799"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:4u8jfp+XT/V+J3ymDSetotyonfM= sha256:OLTOITHf7kEEtWKV6+9x/e/4YRIqTeCGjK3eI8Z7CH4=
	sha1:r/QL13vV+n8U5rLMdHER3pPoV7o= sha256:rvMqaIinZcvJJXPcZn2TP4YHNDroV9ioiwMI2xdQrNc=
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 3E9DC125FB8; Mon, 30 Nov 2026 05:54:45 +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 qa8xtoVW2qNJ;
	Mon, 30 Nov 2026 05:54:42 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-373791-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 45708125FB2; Mon, 30 Nov 2026 05:54:34 +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 139E222FE9; Mon, 30 Nov 2026 02:54:33 +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=1796007270;
	b=gojwoddkHGKqq70zKtpxFWk2mVmxoBoUkNi71XWDl816URlZHK82eUN+Lx2f2QlUsUDc
	 ROCXbrFxe6bTQ3rBRneB0jaWEA1o7LY96dNQZCy44CLGjlLzE4ZBRpGswxTFMaUCBeysW
	 +c1vDugu5OHswCdwpCcvh9uVvRIIT5iklkDNUYBmnYttMlmdRKpBZGIeDhsHwGvldEwHp
	 D8Y5dY0CjTrIl7LiEjkX6mR/aASkn7CC/i4z1VdsavavC1mdjsaBxglw0rN0u6zThPfc3
	 59C6BHWf9a00q49OjbCOmOQJIV9EBoWxy915Svyt1E3uQuqBdAkbOs9XTbooQaRLVGQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796007270;
	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=6yuTvaoq2KXsXMyiY87JmxhfOogLd7FqgnHuSDicFIs=;
	b=2v40/H5lF9x/HSKU6sApgazwr0ifFvU73fC3gwdI4pz9Fpked7WS3obobd2cftPuJdP5
	 d73nfFBTK03jR1Bgjw7p4YXQL/miL8ZdZBx/HAcY7MUyfM2ZQ6oq2EkwsLPtg/3lWbO/H
	 csgsT0lT92Lgd+2cFUuBgjXpmtd1fv0JzoFAsEj+5FgnNS9q296WdWB4sUzw2pe6XlqsJ
	 AYxT0dRS4qAxfzLk151eBGvpckaH/FF7Bw0uan+i0xX9WKiF4JaguiL0IilYhKodTaORt
	 1kqWzigaRhaXHy0bCqhDhqqcGI0Vs9FXrg1Xru6uNg9AsGB5Sb0j4/iW+cSkOYJLfDw==
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=s++iUbEV;
	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 96647606A32C;
	Mon, 30 Nov 2026 02:54:30 +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=s++iUbEV
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=1796007269;
	b=Z+M7ug4Uaorr4v3sN+PS8IVwMOQ9rfU3k3gjVvTt5voDl4mjR5yNTDsng8bLl94wmdQb
	 TjGhGb0FuxAvgpA0aTwgaMHLgLkWMpOHzh1mnji4MyVAUnb84WKU59yCBm71jsiiW/TIC
	 3/2VN8TujoE4mEO4VGmcwUrjJ0t31uGa7yR8L+XxqGK22/1144Gku82hhfIuoovcLQanl
	 XV57exu3fK8D7YpDpIgZp50+7I2xVLm7Khn1bjkB6H3yltlHDl98tUGm5gZNyFkHupN0F
	 v0x+hS+ljq2emeXU7oiZmJeI3arrk8bkitS+HPFZLyGCBD0eARnIgfQTikp4bNxmHdg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796007269;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=6yuTvaoq2KXsXMyiY87JmxhfOogLd7FqgnHuSDicFIs=;
	b=uLiQGxCGECwcbqOQYsFkQqWFd8lNN2vNMNPHejsau0NCBD1vcICXvdKiwnt+ZZGqKPgP
	 w6Y0J37Xqj6AgA8TN8P6DwP/9UoGDYmGs834gr9oTNGvIgTaDOkR5K5B6kF8Q6kUS6gWb
	 m0MEhntbHc/eEQcOrO5PpmBddUEQLyZ7QxG7cpZNyBokoIQAHdjjxqJSgmPlZJjCqQfLH
	 wYHhwkNdsk3Jpm977SO2ytKgU4rkYnGBXUeTcaV3/qRZEuqXGGJKNG2IlUw7KfmmxlUmy
	 iDX8y0pPQBU8TXgN3MtIdRi5yZgx2v/KUGeKc7v9rWRaiUWZ/VnHZD9H42kr3Ewb7OQ==
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=s++iUbEV;
	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 6DA43606A31C
	for <netdev@vger.kernel.org>; Mon, 30 Nov 2026 02:54:29 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6DA43606A31C
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=6yuTvaoq2KXsXMyiY87JmxhfOogLd7FqgnHuSDicFIs=; b=s++iUbEVEZ0KnG2cOEriZdOKaK
	lItHjB60TeFTBHF3SPGhlCw5MoPcYWJrkUn7zs3h4XnQOhZX7wJtird4P5MLoeV7qNvs36HuY0hHp
	eRnV9tyNV7ZLnR7wZkeGTZSyB9HKyI5hQdF9QrBOd5/8hJanqIepkrNW47aWggfBwcR0=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xXrX3-002GUM-Nt; Mon, 30 Nov 2026 03:54:21 +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-8-1bd2eae6ccbc@collabora.com>