🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #17841

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

#17841
From: Nicolai Buchwitz
Date: Tue, 17 Nov 2026 12:36
33 lines
9939 bytes
On 16.11.2026 22:34, Florian Fainelli wrote:
> Add Clause 45 read/write support to the UniMAC MDIO bus controller 
> driver
> by implementing the read_c45/write_c45 bus callbacks. Each access 
> performs
> the two-step C45 sequence (ADDR cycle followed by a READ/WRITE cycle) 
> under
> the bus lock and switches MDIO_CFG between C22 and C45 mode as needed;
> MDIO_CFG is only written when the mode actually changes.
> 
> Also skip the BMSR workaround read in unimac_mdio_reset() for children
> compatible with "ethernet-phy-ieee802.3-c45", since such PHYs are not
> expected to respond to C22 accesses.
> 
> Note that providing read_c45/write_c45 also makes the MDIO core scan 
> for
> C45 PHYs at registration time, on addresses that are not masked and do 
> not
> already have a C22 device.
> 
> Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
> Co-developed-by: Carlos Soto <carlos.soto@broadcom.com>
> Signed-off-by: Carlos Soto <carlos.soto@broadcom.com>
> Co-developed-by: Justin Chen <justin.chen@broadcom.com>
> Signed-off-by: Justin Chen <justin.chen@broadcom.com>

> [...]

Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>

Thanks,
Nicolai
Technical Details
Message-ID: <cefef6bd3411c56bdc872debae831450@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-365236-linux-kernel-netdev=dewy.ru
References: <20261116213449.1682731-1-florian.fainelli@broadcom.com> <20261116213449.1682731-5-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-365236-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2 4/4] net: mdio: mdio-bcm-unimac: Add Clause 45
 support
Date: Tue, 17 Nov 2026 13:36:59 +0100
Organization: Usenet Network
Message-ID: <cefef6bd3411c56bdc872debae831450@tipi-net.de>
References: <20261116213449.1682731-1-florian.fainelli@broadcom.com>
 <20261116213449.1682731-5-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="2327213"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:GmLE0GdIp3Ai4so1yrSU+CVweEs= sha256:fqZ59tzniPSTNn2k/35KqMJqYkUeo3lWaahxnCpsijU=
	sha1:1SpZ4BJ+QB9fQugHzJnvoCB/+Vs= sha256:37aGg8EyXpfpnVaE+641I8WbJItEiruKz/3/GVci/+4=
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 103E1114F4C; Tue, 17 Nov 2026 15:37:28 +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 dXOqJVEsufhY;
	Tue, 17 Nov 2026 15:37:22 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-365236-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 39123114EA4; Tue, 17 Nov 2026 15:37:13 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id B30382812C; Tue, 17 Nov 2026 12:37: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=1794919027;
	b=hgqtBB0CtNGotYwXR5rAMt6q8WhG5AWqd7GQPMyBMYWJYTPPSUHwypUAgk7uzrjhWfUp
	 ooWjHi4wGkopkCi1QqfzU4q2FU5ohlDJzxgyBgrSg/4AvQZFivjSosVEYO+J3EvJFgKXB
	 zxbA8JwpGzuyYROng/fkIiDOG0rZEqiLG52O/Qg392cTGqNDdIIcj7ydUn13bRIkXGZmu
	 oxtcKsdw7cG1l3qLiswBHtrN0IMYwNY82KQuPtdkqIjhv4oWssfKb5VqLHWFfu3NJMs2p
	 gmqQ9vwp6JmXLjWqwevXAn425jlZddfV/SyeDuzPii9rVpb4T3VPw3fxe6hFZujFJaQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794919027;
	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=rsl8lIUdxMSdZsgbl4gxPv/9K85NLxT9rxnZ+drG2RI=;
	b=Q6nhI0HmclRop6Dtnr4axd8Dh65Ezw2SXoCg0dOuJH3nKnWgmmrSbwk1Ez1Zjm+qsANn
	 XRrejHWmw5ilNrNpmK4Q0W+J7kNglU/f3ZIJB+2MZWnb2KXzcDSI6BPJW/tFlfXCIgcUB
	 U5AitJj5Ra4mpqSKKjRN/kWuM//0RLZyyMmJTfHGuu4aARM3BBhBjmNA+DjpUOAuEQjEr
	 bBle2JUHYKlGMLs6tezE0Jl8ldrPtDOpzknlCH6F18ujCgq3RK/5zSMDEaRLCgTuVqEhA
	 UelgquGAHora3Li8HeFkZ6Ik+JLeIFbAgQOXuPfJjunE6ThNny9mK2PM/Z53OmeoT8g==
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=IhmZd2mt;
	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 CA742606A339;
	Tue, 17 Nov 2026 12:37:07 +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=IhmZd2mt
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=1794919022;
	b=tYpAGSLAJ0TTCXDUp2M0q44ZycggIjn0KxweErJlo0FputPSBkJadXaCVQRGtqmqvWHW
	 RvUUUkxWhVoOHtLFAPrHaJutuGDg3bAeQm8Aj28fMANxmHGEwx5S/Ro23xrQsEvLksHfJ
	 fIki4wwSAHatNaSdxaGXtIkl461P5qN1R9SCfX43KpUkBoRtC5QwZLGgFm6FL73nHJL4o
	 4qQuBZrFbN9eamoelDiIYr8b2/yUMo2l8zgjmQfvtydiYJ0SM8uijVEbxWWzw323kEfdN
	 GXDrg4uGJ/cMKsoXorOhq7ZWB8FNg3crj5bzEnw1sEZUnyH9TW4TnaUi/8BCwETOsBw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794919022;
	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=rsl8lIUdxMSdZsgbl4gxPv/9K85NLxT9rxnZ+drG2RI=;
	b=dUzF1vkl/KOLi5skO7cTzB/3uryDwftcrH33OlhS+vDX8Cq4MsnQlhaHEfJhPIYy2HyY
	 m01UlJMg6tDJUjYfDEdiboZjlvpYdMQKuByy0JFeYIkuEEWlAjdlL6SfIQbO6doSV3y7f
	 6UF9gQLZOrYKpY17ial9BERM5s86RUf7xt/U8gCmWzMXq/xLzq6N8nOJhv0896PYalFwK
	 izgW/Kljj0WI12sYGsXZF7kAOLZk5GPxs8X3gi9hudxnL5EVFt6S7NAtu5L2CoEyv/C+X
	 UOGkmUVeo/zeXHcnKrEX9q2+H5TOLbO5etxBAotJi5IniFB7IJNR6f//KdCZ2robsTw==
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=IhmZd2mt;
	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 77B6F606A323;
	Tue, 17 Nov 2026 12:37:01 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 77B6F606A323
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 604D0A03E1;
	Tue, 17 Nov 2026 13:36:59 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1794919019; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=rsl8lIUdxMSdZsgbl4gxPv/9K85NLxT9rxnZ+drG2RI=;
	b=IhmZd2mtGVksC7yAOgoTfYA9YdqHyzf068Yz3i7VyyI7IsXSGcOIsBFg9SJG388dA4V8ZW
	g4gEiRSbzzNY3aP9f0jHz1NhHBuJfPu3XABsDPRvlmCG6OUJx36MxLbF1FPyKH68trYH2z
	RHPNjRfHCZBBnfwZBX1sF8kybkEapJ2RB7Krix/A37BOpLbDtthuuqR+TNB07D7vith7g/
	iJAFYu5cUOfsByoMEZyqvU1g0iL8UD0Ytbi0RgS92/kdquKPeWqiyrcR3LMQwPN63AMWnd
	uOT31WEiPM9zG+Wgt0WmYZ8LIp2RMAjHIZDeM7wfD6vV+tMaUGiiyKQ5qbeU+Q==
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, Carlos Soto <carlos.soto@broadcom.com>, Justin
 Chen <justin.chen@broadcom.com>, 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-5-florian.fainelli@broadcom.com>
X-Sender: nb@tipi-net.de
X-Last-TLS-Session-Version: TLSv1.3