πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #2332

Re: [PATCH net-next 5/5] net: mdio: bcm-unimac: implement timestamped MDIO writes

#2332
From: Nicolai Buchwitz
Date: Mon, 12 Oct 2026 13:18
39 lines
8339 bytes
Hi James

On 12.10.2026 02:54, James Clark wrote:

> [...]

> Sashiko wanted write_sts limited to BCM2711 because the 63.5 to 64.5
> window has only been measured on BCM2711 and we don't have evidence
> that it applies elsewhere. If it doesn't, then we could potentially
> violate what PTP_SYS_OFFSET_EXTENDED promises. I think one could argue
> that this is too conservative: clause 22 specifies 64 bits and the
> 63.5 to 64.5 range falls out of that given a free-running MDC and some
> other reasonable assumptions. Andrew made a similar point on 4/5
> (https://lore.kernel.org/netdev/c136b0ad-6d7e-4695-b988-55eb37550d01@lunn.ch/).
> Florian said he wanted a compatible string but I am not sure whether
> because of this or because of the clock. In any case, I am happy to do
> it whichever way you and Florian decide.

I'd drop the compatible. Gating on a clock on the mdio node is BCM2711
only in-tree anyway, and as Andrew said on 4/5, 64 bits is clause 22.
Florian can still shout when he confirms the clock name :)

> In the probe, I believe I still need to add a call to
> devm_clk_get_optional() in the pdata branch, which is used when GENET
> creates the UniMAC device. At the moment this branch does priv->clk =
> pdata->clk, so it would not pick up the new GISB clock from the mdio
> node. I think this new clock would live alongside the existing
> pdata->clk: the write_sts rate would come from the mdio node clock,
> but pdata->clk would be used for gating. I was not planning for this
> series to make clk_set use the new GISB clock.

Fine, I can do that as a follow-up together with Andrew's 2.5 MHz
default once the clock is in.

> [...]

Thanks,
Nicolai
Technical Details
Message-ID: <365bd3473c9375d467663738f217ac51@tipi-net.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344988-linux-kernel-netdev=dewy.ru
References: <20261009143506.2507607-1-jjc@jclark.com> <20261009143506.2507607-6-jjc@jclark.com> <3b1a2994-5251-4800-8c61-b63d7a435b21@broadcom.com> <60accbd89cfaf0d4be1da5ec2fafd975@tipi-net.de> <CANz3_EYfcBopo=HgRioXkhoT6P+4WWpfFT7UeWkXd5eM_RNpSA@mail.gmail.com> <41c32f5a6f38ec9df8a79ce896912fb9@tipi-net.de> <CANz3_Eae-M6V9XROx4GqPB+BVjVWWuO5JqGoBOybh0-D7DNZVw@mail.gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344988-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 5/5] net: mdio: bcm-unimac: implement timestamped
 MDIO writes
Date: Mon, 12 Oct 2026 15:18:21 +0200
Organization: Usenet Network
Message-ID: <365bd3473c9375d467663738f217ac51@tipi-net.de>
References: <20261009143506.2507607-1-jjc@jclark.com>
 <20261009143506.2507607-6-jjc@jclark.com>
 <3b1a2994-5251-4800-8c61-b63d7a435b21@broadcom.com>
 <60accbd89cfaf0d4be1da5ec2fafd975@tipi-net.de>
 <CANz3_EYfcBopo=HgRioXkhoT6P+4WWpfFT7UeWkXd5eM_RNpSA@mail.gmail.com>
 <41c32f5a6f38ec9df8a79ce896912fb9@tipi-net.de>
 <CANz3_Eae-M6V9XROx4GqPB+BVjVWWuO5JqGoBOybh0-D7DNZVw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1785215"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:aTWWF2n/NVl/ptIy784RXl8kHaw= sha256:uWmcRY+7MZ3n31EDRQnIWHUokOm5ImABQr6tZHYFqzc=
	sha1:z5GYGLHsYcg1iK7Kok8rTw2df9Y= sha256:0PdlPaGecEJLD0M0zs4PiQG3NasHw6secxVHcJnaY84=
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 0E38710FBE6; Mon, 12 Oct 2026 16:31:24 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.75
X-Spam-Status: No, score=-0.75 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=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 o0tKsEDFX1Ax;
	Mon, 12 Oct 2026 16:31:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-344988-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 A036C10FBE7; Mon, 12 Oct 2026 16:31:10 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 942F763040; Mon, 12 Oct 2026 13:23:24 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 742A53911C0;
	Mon, 12 Oct 2026 13:18:33 +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.b="HwqI2EOv"
X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0426846D2DA;
	Mon, 12 Oct 2026 13:18:27 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.13.80.246
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791811113; cv=none; b=CeCwTagLhJFSZi1P1S66Ss/B2YgYoW4+PeG8mGuNJo7wnMXXjICra8vfoJ8qwIGK9erYHS8EupBsFlfQ4eKVtcJrNT2/mzZQt978VHVphLtDrYYB+CUHjpcnYLaWrDQl3bopI3gnI6k+z1a3aSIMFf0rcSaswV989KbXDYKMEE0=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791811113; c=relaxed/simple;
	bh=Bq/Kjg6CoCViVVMbPOG+5JtQptYfGBlE43kVe6rqTgU=;
	h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References:
	 Message-ID:Content-Type; b=AC4Vw06o79pbPlhWWDwJSTwvvQ+4E7MUIjjPLIdBRqfoElIRq2sIOAqCXpaNKRh0m88jd+T97eJ9ytZp7yuDWhy5ML3AqnP1MPt7o6G1Z+Ky7xiUncxyuROtxae2H9afbXQNeGsgvrhnNWVXz/0jxv1ohgN28Ezkd9tezaC6IAQ=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.b=HwqI2EOv; arc=none smtp.client-ip=194.13.80.246
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 07A3EA012B;
	Mon, 12 Oct 2026 15:18:21 +0200 (CEST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1791811104; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=Bq/Kjg6CoCViVVMbPOG+5JtQptYfGBlE43kVe6rqTgU=;
	b=HwqI2EOvmzNJQCcgUVfX+jdD29+XEkBwuw99rgT21hWqWS8SfMH04iWELdUW7sU87gWxDx
	SXwFVowM1FdnPmuT6J88AXonOFyMv1efY8AfB5J8lvL7TG+JcwZkUaY13W09zUJwZpZ6Ob
	152r3huJ8Ehi5OJNjMAf0Jbj01i9rwzCYyBNYbs1wOZbXVDOUfnf9ApwefUaVVGDJsr2IL
	7jEIDbVjh6b+YQvMDWyg4tYSuUJf34OCoa0PLdMgdmpDB+pvfbXVmT9mPhMFZtsGU+0GBX
	CXiclk4ppm4HitJwogpbAZqy03Tzh6hJa0KBwoau5lUABrwlLP5JM2fS113vmg==
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-Cc: Florian Fainelli <florian.fainelli@broadcom.com>, "David S. Miller"
 <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski
 <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Andrew Lunn
 <andrew+netdev@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Richard
 Cochran <richardcochran@gmail.com>, Doug Berger <opendmb@gmail.com>,
 ThΓ©o Lebrun <theo.lebrun@bootlin.com>, Russell King
 <linux@armlinux.org.uk>, Conor Dooley <conor.dooley@microchip.com>, Broadcom
 internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Thomas
 Gleixner <tglx@kernel.org>, Miroslav Lichvar <mlichvar@redhat.com>,
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org
X-In-Reply-To: <CANz3_Eae-M6V9XROx4GqPB+BVjVWWuO5JqGoBOybh0-D7DNZVw@mail.gmail.com>
X-Sender: nb@tipi-net.de
X-Last-TLS-Session-Version: TLSv1.3