Article View: linux.kernel.netdev
Article #17754Re: [PATCH net-next v2 1/4] net: phy: Map C45 probe read errors to -ENODEV during bus scan
From: Nicolai Buchwitz
Date: Tue, 17 Nov 2026 09:33
Date: Tue, 17 Nov 2026 09:33
35 lines
9917 bytes
9917 bytes
On 16.11.2026 22:34, Florian Fainelli wrote: > get_phy_c22_id() maps a bus read error of -EIO or -ENODEV to -ENODEV, > so > that mdiobus_scan_bus_c22() carries on with the next address when > nothing > answers. get_phy_c45_ids() only does so for phy_c45_probe_present(); a > failed read of the devices in package registers is turned into -EIO, > which > mdiobus_scan_bus_c45() treats as fatal and which makes the whole > __mdiobus_register() fail. > > MDIO controllers that report a read from an empty address as a bus > error > (e.g. MDIO_READ_FAIL on the UniMAC MDIO block) and that provide > read_c45() > with unmasked addresses therefore cannot be registered: the C45 scan > fails > on the first empty address. > > Let get_phy_c45_devs_in_pkg() return the bus error and apply the same > mapping as get_phy_c22_id() to the two places that look for a device at > an > address: the loop over the MMDs and the MMD 0 fallback. Errors from the > reads of the per-MMD identifiers, which only happen once a device has > answered, are still reported as -EIO. > > Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> > [...] Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de> Thanks, Nicolai
Technical Details
Message-ID:
<5c4b81ac731b21dc598d9a693d05d468@tipi-net.de>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365122-linux-kernel-netdev=dewy.ruReferences:
<20261116213449.1682731-1-florian.fainelli@broadcom.com> <20261116213449.1682731-2-florian.fainelli@broadcom.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365122-linux-kernel-netdev=dewy.ru From: nb@tipi-net.de (Nicolai Buchwitz) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 1/4] net: phy: Map C45 probe read errors to -ENODEV during bus scan Date: Tue, 17 Nov 2026 10:33:26 +0100 Organization: Usenet Network Message-ID: <5c4b81ac731b21dc598d9a693d05d468@tipi-net.de> References: <20261116213449.1682731-1-florian.fainelli@broadcom.com> <20261116213449.1682731-2-florian.fainelli@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2292870"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:/UQBt44aylcqRcpJGB8sCuK4xHg= sha256:2z2O7VSCsyME3i4J+ZrOyB/WnuhpGo0kk+GArzCBsNY= sha1:NRgkvxjAqPECYDchI/PmUWpMyD0= sha256:a5YIAaz6g15C0LgEuHmMfosXnkx1/CZcXNFc9Nlz4Qc= 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 ACA05114ED6; Tue, 17 Nov 2026 12:33:56 +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 (2048-bit key) header.d=tipi-net.de 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 3wJ6h7p4duq3; Tue, 17 Nov 2026 12:33:53 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365122-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 2729D114ED3; Tue, 17 Nov 2026 12:33:39 +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 93E3529DE3; Tue, 17 Nov 2026 09:33:36 +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=1794908015; b=4NUDj2VYIHSENhWZPJde/IMSWTPbCcH1KlKmMaLEIU3ufJymNexr/5aDfxYdos0R7v/+ 0035O+S1GWhQmJEwgGciGGDLr/txnS/2/HUU/TAc1mc0pBjVNz1SND9vrLvWgjLnupM6f o04T+IWiC1ZjhCGs9rwhvDcAL6CNqRyXcLTrbO6h2sUx0IkuLml4sISx7+AVSbzuJEgQj kMkFBnaTNyXEQl2m6QCBpRc9fFroDCLB2evllUTzlg/qBRTAqbmJ1uKY5WZeFNQ+x70ns PwKXv5HaQ8EQDJcTpigCqrkS/brtNy7F6b77bagXvxWDO1VTjqjJBfyDRmufxasIZww== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794908015; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Date:From:To:Cc: Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=Hm9omDHKcVbk1vAST3xtAg1ZnIT3HjaHoa+8ATARj3g=; b=X1dumU6PIXKQ5CxkLRYC10Yj7HYp51cZLRCI3PJhOJJ+HDJA3asmhN0vlULOzOrRpeuq yA5yORpBPAn+bIyyeEgdOQ2mLtzs7InSFE8ByyF4jDS4sbEcGl4Tb6o2vhSE5nAo/Gp9m vy+PnGwh/lZ3T/HTg/490kI9lXkdNBPFMXEuKqrjVT9EQJUHjRH+EZKo3/8VuPEPEyurq 2U0XBlxjqffocqDRcbo+D58XcY7KdRtVHofyB4JLsySgn6O+2Pubtsk1WEryNZJR4D5iJ NN+LVFDGtBVTfDzOJcvrGr2LPr+oZGE2d+TrQ+JPr13D8HavJs/AJVbRYqohDhcdNcw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=MHe4y5R9; dmarc=none header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; 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 A17EB606A329; Tue, 17 Nov 2026 09:33:35 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=MHe4y5R9 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794908009; b=f5aBN+uMBBXaIFw9K4SpKlyMT9pSs0V0rf+M6s1yeRoaU0i06gHtJsO8c4mLfxnzagV9 KHzk66Ix4D0wrpd2m216uqThUZB6uJ5SyM33BRTn0mugZAvrIS5zc9DSdL9/IvcmUmbze VeorYK80O0FXckv6Ho3REDgtmd/jdzc0mg2f9mVYFsfhagTf/KQ6oPLXpkM4X90HV8bsS S2bxDjTt99Cgcs7BSZlDRranJ2ilu7jdbRZLWIGLuH8BBTTos9H+71hRPEl7LHZ6uZXgN AilLhyCESh553uk3CdSGG8lK/LJK6kizDmMFNMntGymYo1Kxwp618HySVxgddazlQqA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794908009; h=DMARC-Filter:Received:DKIM-Signature:MIME-Version:Date:From:To:Cc: Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=Hm9omDHKcVbk1vAST3xtAg1ZnIT3HjaHoa+8ATARj3g=; b=uelUecEvIyUIqxLoYRENw1snyLkLk5sTP9RVK61Ed9cgnvLFN18ARKVf3ROWZ2lpS/7d eTKRc4woJz2IuAvXxTuHxiiiuHLwkqSJPHUh1bi5viFP7hDV55dSVaK0XDYjUxNZOg4pr 1AB9IOykGZ6hBaSbgY6vOR9WtZT8LBYrdRvdYntWcgOc1Q1UXBx1w32RXgh4JHZmmSGHj VYD5HnFNkqzn2VHUoFnpaTOibec2pgcf3qfT3VkdfM1j5kKnlejAWrjvu+Psxpfva7k4s aHRrCnxMdF4OCg3ksCpy8gih5Wwv6qSCX+aALWuy49rPj12XqBREiKpjXkHHPmdNbAQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=MHe4y5R9; arc=none smtp.remote-ip=194.13.80.246 X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D6D8606A31C; Tue, 17 Nov 2026 09:33:29 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4D6D8606A31C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 8D57EA02C3; Tue, 17 Nov 2026 10:33:26 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1794908007; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=Hm9omDHKcVbk1vAST3xtAg1ZnIT3HjaHoa+8ATARj3g=; b=MHe4y5R9nYxn68Beo+dC84F/mJg5VuUMHm+gmj5mv2nCtNqhaFvg44UcOEYogf+5hWPdol 7GWauLmyi7akLx8L7Qa0Oy/BaqmXZAXVGiQKYS2LKCQbjDczsVcYBFpdJWEAYeTz5FMqWq Nsyumx6/tjlKksuKGHr1+nMGlIO9XBzXqIYUznwBkJgbiTB29sfHahb78J/tQFwPAmrvsa yjWJA65sNpN2Mr4vJCFLJiI07BNWGlnMFhKhnLI/PCPv5OvDhIcrYbBkGTmIxXOJgiB3mP Zt9N3hFIAxXQ9XtWZ1fXbHzYYEB7/TTM/wYI4/NwFIt1D9sweOyPbXE6Vir9lg== 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-Cc: netdev@vger.kernel.org, Doug Berger <opendmb@gmail.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Andrew Lunn <andrew@lunn.ch>, 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>, linux-kernel@vger.kernel.org, Mlody12 mlody12 <kudzo51@gmail.com> X-In-Reply-To: <20261116213449.1682731-2-florian.fainelli@broadcom.com> X-Sender: nb@tipi-net.de X-Last-TLS-Session-Version: TLSv1.3