🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #17840

Re: [PATCH net-next v2 0/4] net: mdio: Clause 45 support for mdio-bcm-unimac

#17840
From: Nicolai Buchwitz
Date: Tue, 17 Nov 2026 12:36
43 lines
10269 bytes
On 16.11.2026 22:34, Florian Fainelli wrote:
> This patch series adds support for Clause 45 MDIO operations within the
> mdio-bcm-unimac driver. The series breaks things up in this way:
> 
> - make the C45 bus scan done by the MDIO core carry on when nothing
>   answers at an address, as the C22 scan already does
> - scope the existing defines to make it clear what is C22 vs. C45
>   specific
> - rework the polling completion loop to be a tighter loop
> - add support for clause 45 operations
> 
> Changes in v2:
> 
> - add patch 1, since providing read_c45/write_c45 makes the MDIO core 
> scan
>   for C45 PHYs on all addresses that are not masked. On a bus 
> registered
>   without a device tree node (e.g.: GENET with ACPI) a read from an 
> empty
>   address fails with -EIO, which get_phy_c45_ids() passed up instead of
>   mapping it to -ENODEV, and made the whole bus registration fail. 
> Reported
>   by Nicolai Buchwitz.
> - patches 2 and 3: collect Reviewed-by tags from Andrew Lunn and 
> Nicolai
>   Buchwitz, no code changes
> - patch 4: no code changes
> 
> Florian Fainelli (4):
>   net: phy: Map C45 probe read errors to -ENODEV during bus scan
>   net: mdio: mdio-bcm-unimac: Define MDIO_OP_SHIFT
>   net: mdio: mdio-bcm-unimac: Poll for completion at 1us granularity
>   net: mdio: mdio-bcm-unimac: Add Clause 45 support
> 
>  drivers/net/mdio/mdio-bcm-unimac.c | 130 +++++++++++++++++++++++++----
>  drivers/net/phy/phy_device.c       |  24 ++++--
>  2 files changed, 134 insertions(+), 20 deletions(-)

For the series:

Tested-by: Nicolai Buchwitz <nb@tipi-net.de> # Raspberry Pi CM4 
(BCM2711)
Technical Details
Message-ID: <7227e7df4fc7023d05d1dd16cd32f48b@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-365235-linux-kernel-netdev=dewy.ru
References: <20261116213449.1682731-1-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-365235-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2 0/4] net: mdio: Clause 45 support for
 mdio-bcm-unimac
Date: Tue, 17 Nov 2026 13:36:18 +0100
Organization: Usenet Network
Message-ID: <7227e7df4fc7023d05d1dd16cd32f48b@tipi-net.de>
References: <20261116213449.1682731-1-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="2327099"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:0Dge+ZX9HUOoz4daMdxEVPkKMPo= sha256:VblPEA9kri6atkD+h/Xz2cVk9nm2QGVK6XDO+ryJ6+s=
	sha1:aCKBv45GAaal+k4cs8hrQvep5OA= sha256:xzl/A34+fkL4g9d+A+sBpb+zeiz06kwKduTJtfGahUM=
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 A0E46114F53; Tue, 17 Nov 2026 15:36:46 +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 (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 B6nwD0PhpqzA;
	Tue, 17 Nov 2026 15:36:38 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-365235-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 5AA36114F48; Tue, 17 Nov 2026 15:36:29 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id AC9976024E9; Tue, 17 Nov 2026 12:36:28 +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=1794918985;
	b=vi6BPf99FGpzH+w9J9EpWYhj6w8mnbiUpFyM0vR6F8iABEE2YafUZwg6CIg6+BFFPrB+
	 F0gl6GWu3vPNa9cF97Y0b24eYxXcSodHIbUPfOGkkQeoeoXbEgo4d+C0jqtkrjCdhMJpZ
	 FavIVDcFhSB2F9tEum/I3WALGyvTnHWmgDc5owyqgxGI/TzLdiKKmSQhhOamuEMfI421q
	 0++qJEPrwTUK6Zct4JXrMbuwVgJ77me/25c3SvRp0QsGWRDBN5a+dq1djrdWDPJBzlGlx
	 Xq3XdQLvdplcon32sz1JR2iPHl7DPy76e7zcAY379SIWxdGasxRHnM2cCuo06NpB2yw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794918985;
	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=bg9Vsl73OpwE99cWOctTdHXU7tbTS+OicLl+oSU+S6A=;
	b=M65p8ynPIH0lt1uBUNG1Gx07IT/mWS2vdA/EVohN8HtuclzJ+2Fz6FKI4InrZUZTLF+t
	 SihGKr6n/C8GjfXoIwZLQAe4CFokZEzahJuAFAuL7/gqSIugNAEC/MkI1Pj9OIUJ6mRBb
	 PzQfeJ/1w810WB545q7Jk/rvm3LIBw81jOjAnWwXQ1y3upQrqvQSsfTF4cTedNflpROr/
	 iwHXrtTmuWlm6j8LQ9KCq0VWm61sv6KpTnIGNtSS+7xLaoag3bWUT8XJirVPcZ9KRM8gg
	 Hd6Ri4uGAPkAZmsvY1qjpqIXD/ghvUcqndPUa3C1qNu7Hq6COwa/Rjj50rqa/Hv/LDQ==
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=KQpFtbKW;
	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 6B2DB606A336;
	Tue, 17 Nov 2026 12:36:25 +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=KQpFtbKW
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=1794918984;
	b=nM2tk05PfY5pFHr9ipZD72sdHc1R4L7YXDrkMXmwlMV3W7DwBw8PVstqiGikn4Og8R1I
	 qnZEV8rGMezyPLhnFuIy4s7PaV/kLs5srU9g4iHakMrjgKiH+UF9ANburFbHhBmazS9v8
	 j1llRVPVLW0qhC9lkVpKm7xDom49nZwitIseAFsnn7vmsTSVUdT+6Xy9SVWE2qo2Iz0/+
	 cywb5TvKpMNCkwfOui7j5l1ORF+VvjdC2vxouiqXOZQ8UVvot0s3HtOijwYKSPPs+9BtZ
	 CseKoX8hjuCPYOVpYstxsBa43uf6WMNG2sO3MjhQEqgHwcwoWcLEo0ccMJAzX9yBTjQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794918984;
	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=bg9Vsl73OpwE99cWOctTdHXU7tbTS+OicLl+oSU+S6A=;
	b=mRPFUuyh+XvQbYciL5Hg/nChIEjcU8+LVsgr1IXzyOLgR9MCLrCeKA/cWqvod/RdyA+i
	 Ne0z1twe6qPnO+uyHFLNm2ZSkxEu4YdtkbvKYZY+I7kFhOOet+qVA3ujadi5stFWYwRDh
	 XU+FK1ZuG1xvgAYCfqA9+HFErgbA92yJj5xU5PvkRj6pkJ8EQF2cKyMSLmtNpBb9IQZQU
	 NL59J7yRNyoRE3sZHBUg7kXimxjGMBEicQ4IlkhZg3/e/RZ6JN+8kyaiex4iNCFgHuGpU
	 2ixpMHfmcOPwRYRn51SMqRlcVPuH46Pzxiw9xJ6biRjnxDRDTAzeMcOFuSnrvuVuesQ==
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=KQpFtbKW;
	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) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 59250606A31C;
	Tue, 17 Nov 2026 12:36:22 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 59250606A31C
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 86713A02C3;
	Tue, 17 Nov 2026 13:36:18 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1794918980; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=bg9Vsl73OpwE99cWOctTdHXU7tbTS+OicLl+oSU+S6A=;
	b=KQpFtbKW/aYn0yLg6uHZZhZ2ZNp88McIXbyBRDWwPi3VHg3MGmW9QwrRkO5sWn6/Dj78eF
	pkGZpVsfnIau6gtgKoXzKyjj1LJG7ixtDtPah440EmTki1vY1w85jbDqS4mKQderco0fkp
	3tqhw7zH3ctgSAzCduMY8kJnk7gTFO8yn1FgV+vAg8neYV0uQwvVekVn+b9r/6dw0sTR+c
	FF+Gr3C2TwL5gtT9gV9jmG87iSrzcFUK0ttz5Mcy+9G9pxYi8BLp8sZ527++X3oZaUXECa
	lILZPA0XVUiEV4598bWBkUTECkjs3f2TSTjM4u1EzzF0X37iYjB+9cdSIqXLMQ==
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-1-florian.fainelli@broadcom.com>
X-Sender: nb@tipi-net.de
X-Last-TLS-Session-Version: TLSv1.3