Article View: linux.kernel.netdev
Article #18686Re: [PATCH net] net: phy: air_en8811h: check PBUS register read errors
From: Andrew Lunn
Date: Wed, 18 Nov 2026 18:43
Date: Wed, 18 Nov 2026 18:43
34 lines
9644 bytes
9644 bytes
On Thu, Nov 19, 2026 at 02:24:36AM +0800, Zhao Li wrote:
> an8811hb_check_crc() ignores the return value of its PBUS reads. When
> the status read fails, the loop tests a stale or uninitialized
> pbus_value and can stop waiting before the check has finished. When the
> result read fails, the PASS or FAIL message tests the status value.
>
> en8811h_print_fw_version() also ignores a failed read, which leaves
> priv->firmware_version at 0 on the first firmware load.
> en8811h_read_status() then handles it as firmware older than 24011202
> and guesses the link partner's 2.5GBASE-T ability from the link speed.
>
> Return the error from each of these reads. A failed version read now
> fails the firmware load or the probe, as the other PBUS errors there
> do.
>
> Found by an AI code review agent; not triggered. Compile-tested with W=1.
>
> Fixes: 71e79430117d ("net: phy: air_en8811h: Add the Airoha EN8811H PHY driver")
> Fixes: 5afda1d734ed ("net: phy: air_en8811h: add Airoha AN8811HB support")
> Cc: stable@vger.kernel.org # needs adjustments for <= 7.1
Does this bother anybody?
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
MDIO pretty much never returns an error.
Please repost for net-next.
Andrew
---
pw-bot: cr
Technical Details
Message-ID:
<31de7b62-098a-425a-bf0e-38064b3a42d3@lunn.ch>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366361-linux-kernel-netdev=dewy.ruReferences:
<20261118182436.32455-1-enderaoelyther@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366361-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: phy: air_en8811h: check PBUS register read errors Date: Wed, 18 Nov 2026 19:43:55 +0100 Organization: Usenet Network Message-ID: <31de7b62-098a-425a-bf0e-38064b3a42d3@lunn.ch> References: <20261118182436.32455-1-enderaoelyther@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2669022"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:TFqO5LNX5qq+VMKIhXTe/silnF0= sha256:oJdREBtjGQxxrdaeQYGQMk+e3gSc0bdPznbx2CMpsbI= sha1:stMzjq11cZX8mmOzxpxg+Q4vHXk= sha256:RgPyqcGO1I6xt9r7G78pLw2ENwzLCay0Sc6L7r2hojI= 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 9331211537D; Wed, 18 Nov 2026 21:44:27 +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 r8IssgEuGOiZ; Wed, 18 Nov 2026 21:44:22 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-366361-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 ACFA311536B; Wed, 18 Nov 2026 21:44:13 +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 6F085860E3; Wed, 18 Nov 2026 18:44:09 +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=1795027448; b=PElT+9z5XFcoYVQiQYpUz5mdNCf9QC9G1uU3TmSZClhQSy2HK1TN2Nso7l7/FqTMMnrZ lBOX4RhVkMui1C++F8Dj6TtQ7V7wKI+3Qfqzljef1YRxVAWBgNap9dN924OOluOcmw+iN o3Lzcu+4o/iwr7ZMb+nAlL/Gb858WWoIOY8/VlQMRSmXgodTM9t0pziq223C8OeaKMN3M mZ9jKCYaCU6Uu0VUHPBQlKUIjLwDO2ZHdyKgnj6IZE6F0+cPRB3xwGKVCwu53HQjjUGaP MgwOtDJADrKAePOBTldcDBmqabFZCp0v5lMFoOVvs8VKmKgcnZKlgVjuXZaAPloAzRQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795027448; 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=Exh67LGpxykc1JGTN+in07YExIL4rUDgMV0oj2/L/Eg=; b=naj69DGMDYjf+1Ln6O0bjtXWQsFPondMjGi03CpFJShHtU1kOP/xZJYSBy6NDldz6Zkx nVfLSg4Ld7a5PZ7tNrnJoPVMjAxytYT+ZhM0EItV6Klw17XBqR6NUKWAVQcmA9uTcPgLj bOWXCWmJ6u34yvhCW+VmEvSl3FmA8nr5S8B2Gf5XJkAeFAXYPO+I4gt4jSdDsFPOnWkqt ZF3ELE9xAY7sLh+1awMArIe1BlT81/3vbWOqC8B54rgtX4VdfrUcrEocWNRAMbuYv2M+z BY3aXame4KkckLIrH0G1DQkxb2bT7wIVjEHUbVz1e6kKX+Rq8IwRgYzndwrh5ZtY36w== 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=bVwK3gIB; 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 8B13260A2626; Wed, 18 Nov 2026 18:44:08 +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=bVwK3gIB 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=1795027447; b=oXbchHcVtesILpJPrkCJCz4NRHsC+MIsejsZjQOMZjZfng1i2pR8/GZbaV14r3dzHRnV SA4EJX2fNkPzsE3BTXps70lzBwgKfMJkCG5RaG//BadKeiO3/uAg/b6wWjFrnEgh7cfNl zTGTj/B2KRsDe4YC9y+ldzd6uo0MQGjKEJdUpIyIUTtGG1LD6eDopdikBwgOtJ6DWgpz+ LKkgFweR9VQpymFWNlFENkVd9wzkEHzaGDPZ6XkiCk5t7g5/x2+/H0jwliATGO5Anry6W GdVXEumxXJRfCgNz9hTL3rreM4fzQKKrSxuH2t6KM/4S7Spvy4dE3F0BOyZWUHFAHhw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795027447; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=Exh67LGpxykc1JGTN+in07YExIL4rUDgMV0oj2/L/Eg=; b=tw4wEh2PZghhB4mNAgtBkIMMjbPqT5uBsw2V6GCxlioe20z5KlzVzKB5PCRQOGzoglXd z2ske3ug9zkMyYuIfmqjCRlPJX1Tn3TSzwoDYn9kMQSFKzJonIByhoqb62MlEeWT9VfJb ta+yXBnGV0uEYHCViXXRY1FqO1vJ++mVn71VHgneBP7Wq2+51ExBp1f05nuQBPKH+LqIx iOq2X2vPK3kcGc9kNy6HYz5jXbhSzzdiVExkstEAO/CadaDNx5tbxiMELTJg3ORDbC0nm 1fHtxExBrGU8WYR9C7XGLVhYYiLQ5LMHrq64OvayzeaaTLWHKdP5ah9Gjs6Y2J3iMGw== 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=bVwK3gIB; 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 5CA2B606A331; Wed, 18 Nov 2026 18:44:07 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5CA2B606A331 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=Exh67LGpxykc1JGTN+in07YExIL4rUDgMV0oj2/L/Eg=; b=bVwK3gIBoh1JAh+xKxY1vWJ8OO fHzZaF3l9M7ah8N5eVTQJFCwbBiZQBD82LzWGm0pYXrIwvcHdC0lMR3LHPXUeGqMSl0hjvNF7/mp9 YPfqAc+xiEcNAUfTuvs8xcP/6EwHqs9MAfT9ZZsqL3I9bCOAFhvu2B5qosMnOXbToLnE=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xTkdP-00HUdI-IX; Wed, 18 Nov 2026 19:43:55 +0100 X-Cc: 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>, Eric Woudstra <ericwouds@gmail.com>, Bjørn Mork <bjorn@mork.no>, "Lucien . Jheng" <lucienzx159@gmail.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@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: <20261118182436.32455-1-enderaoelyther@gmail.com>