Article View: linux.kernel.netdev
Article #16687Re: [PATCH net-next v2] net: phy: aquantia: Poll global status register for provision ID
From: Andrew Lunn
Date: Sun, 15 Nov 2026 15:45
Date: Sun, 15 Nov 2026 15:45
18 lines
8966 bytes
8966 bytes
> > + if (val < 0) > > + phydev_warn(phydev, "Failed to read VEND1_GLOBAL_RSVD_STAT1: %pe\n", > > + ERR_PTR(val)); > > + else if (ret) > > + phydev_warn(phydev, "Firmware provisioning ID not ready; " > > + "interface mode detection may be incorrect\n"); > > [Severity: Medium] > If phy_read_mmd() fails while polling VEND1_GLOBAL_RSVD_STAT1, the > val < 0 term ends read_poll_timeout() right away with ret == 0. The > code then logs a warning and returns 0, so the MDIO error is lost. This is one of the earliest reads from the device. If the MDIO bus is going to fail, it will fail here, rather than later. So the error handling should be correct. Please address this issue. Andrew
Technical Details
Message-ID:
<461d4b43-e9b4-4adc-8a98-066b60885758@lunn.ch>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363744-linux-kernel-netdev=dewy.ruReferences:
<20261111-aquantia-poll-global-status-register-v2-1-b602fc7e80a9@oss.qualcomm.com> <179473078423.2199510.11398825136938509686@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363744-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2] net: phy: aquantia: Poll global status register for provision ID Date: Sun, 15 Nov 2026 16:45:13 +0100 Organization: Usenet Network Message-ID: <461d4b43-e9b4-4adc-8a98-066b60885758@lunn.ch> References: <20261111-aquantia-poll-global-status-register-v2-1-b602fc7e80a9@oss.qualcomm.com> <179473078423.2199510.11398825136938509686@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1840989"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:+5pFtoABplw+iip/OAAMq8D4p8E= sha256:AmCe+Qppp8JNizR/EXNM+ILz8lywCtsMZGbjd/xUmnE= sha1:nROyK4Lr9E4zWFTdtBAO5NFtO9E= sha256:HwZlfc2/VtKKyTT1F7QRvYAJG09zUTVqwLQGIs3YxQE= 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 3A8EA1149FA; Sun, 15 Nov 2026 18:45:37 +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 7Mn_i56QcFhn; Sun, 15 Nov 2026 18:45:33 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-363744-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 F27D31149F7; Sun, 15 Nov 2026 18:45:24 +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 67DA034051; Sun, 15 Nov 2026 15:45:23 +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=1794757523; b=1GFFKl8K33sr8puUKxTbSnlnZoAOOuhxGud4Ld2ixq8Bhn6umtId9r/uPnOrb/00PgCE C9KvBd7OQjFbfWuRcWuPm4IBWPj2uvnjunzkIxM72dOSRoEkKLZBxDJm1EJXhOz4F4DU6 Dy4I2mmUL53xDdskkMi7prpUDNdyrlZvIW3GjmEnsHVRYjlBN+dK5AyjbEfn3zg1sr1AJ zPOv0RHtY02TYrIoCuMIJXk37VfCtWrF6FQwF8gTbEq/iHYHyxnOM8rYx6jblL2NAvoup 3HwJONyYYhRXovuJrWW0MivpPtiYmd+TcWINqOj/cDTznflMtTMzyddKFN/qIut3DNg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794757523; 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=bBM/s+aQjFTftPHguTWbXGM/kzewEVvTrYdHEpzwFkA=; b=wwkfQglcc9xR/A7abufPqbKcI/9HGWgQ1zbreyrOwCMVwFOn21vo04SgN2Sd/6xq4JFt 0liuDX/NV9ubN9dt2S60VL0Tb9cnWPH2bBKuqWiicjw9Hbj6B6XjVOgZn+x3z9Fb6wU+B 5PqW4iQ40u1DjWTlD6Vecj3T87TJaw/CYoHgUFrm31U13CqrYihNomTC8La+EQRd3JpJw R57/A5hyYR6j3kc2W340hG/s3kpG9+qU/ftdQzfN/4Nfl2setAXLOccN1ncRD5a8/x71i 4tOIYowRUO9Lx7jAO62gmng8iB/f+lRP8mhf9nU+10Bze9ZMeHnrffQhEIOx55TCXog== 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=HvjuzU1j; 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 3EA2E606A32C; Sun, 15 Nov 2026 15:45:23 +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=HvjuzU1j 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=1794757522; b=JLSi3UeeuH2cwV9bsXzuuMxxFGR5dnTLgHh4/nUxHu+XNfUXQpSzQUR/S6LaUNmrEMWn PeOHxIHWp7DtLMYC06HSK6hdNmAp9D86GlkeG3kqEgc/BeR51IuJ3X4fk/NrE1JD7ryl/ 2Fv7XdC30oSggBfnoY40s/OvLpQtnqMI6bq6BOc4Gut4AtuLwFM61R6WHweJ1LKeMSTR/ 4gGzdqA2DaVzNtAbVsSuPSdGmrgZK54wchJdepWYZ4wbUTh61IFLoBhhdxoMMQKPrf2gG aSqchUWG4ILNzaxMOkAtlzuYejF9OHg1LOaig2WxuxHezLFwB3EjI48NqamapxKkGtg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794757522; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=bBM/s+aQjFTftPHguTWbXGM/kzewEVvTrYdHEpzwFkA=; b=UbWd/ou3VTGXwMjKlY+LlHal5yyFBZwt0zkf4po7XOjyzN9WvaAJ3Sg6zsoSTy6FbCnK Z6pcpgWqZFlI/AAs/qjaCh+3hILQPLL59JIuhXUmvqzhbDlLhWlBgMPXk2bksfWM3dtnR AzzAEOg1RQq2StmioTxcyc3BanNkeVmOAk69vEiwE4tHpeamP7GBvlISUeu2LWlok0so8 XlekFSeN/wHukx7KBCHvOMEF9+eQJEdNHKWdqC+BRBoT8dY7+Gwqhf7FE4+Dbzfo/v+dR UIpwwnxIcUPA500XY7RTsxLyAYSTKUL63NT0Ep6LMAq3LNDzKB3cTpd3H6hjngdQPqA== 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=HvjuzU1j; 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 1AFFD606A31A; Sun, 15 Nov 2026 15:45:21 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1AFFD606A31A 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=bBM/s+aQjFTftPHguTWbXGM/kzewEVvTrYdHEpzwFkA=; b=HvjuzU1jedJ5B5vLEaIu0J/wVS 76PsIUbnDHa2n4G6cHNOSMvki+f7NTOeoxqTE4v+qDX0Vgff6UROCVykOSA5Wou/p6KVxRrfDgXYn 26Hu+1B9a5UeZEh9nzXh2BwuQNUFmeOqInYoq6NP+0JyixCIyxpNEAzMtCw2U+ibxY4c=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xScPp-00GdU7-Oh; Sun, 15 Nov 2026 16:45:13 +0100 X-Cc: hongmei.xu@oss.qualcomm.com, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, sagar.cheluvegowda@oss.qualcomm.com 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: <179473078423.2199510.11398825136938509686@kernel.org>