🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #27342

Re: [PATCH net-next v6 4/4] net: phy: realtek: add hardware timestamping for RTL8127a

#27342
From: Nicolai Buchwitz
Date: Sat, 05 Dec 2026 11:07
23 lines
9004 bytes
Hi Javen

On 4.12.2026 03:11, javen wrote:

> [...]

> +static int rtl8127a_ptp_hwtstamp_set(struct mii_timestamper *mii_ts,
> +				     struct kernel_hwtstamp_config *config,
> +				     struct netlink_ext_ack *extack)

> [...]

> +	/* The hardware is either on or off, only reprogram it on a change */
> +	mutex_lock(&ptp->lock);

IMHO this needs the runtime PM check too. The MAC may be suspended, e.g. 
when ptp4l starts before the cable is plugged in.

> [...]

Thanks,
Nicolai
Technical Details
Message-ID: <a2095414fcff5615d0eb971b4c231534@tipi-net.de>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377944-linux-kernel-netdev=dewy.ru
References: <20261204021116.66-1-javen_xu@realsil.com.cn> <20261204021116.66-5-javen_xu@realsil.com.cn>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377944-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v6 4/4] net: phy: realtek: add hardware
 timestamping for RTL8127a
Date: Sat, 05 Dec 2026 12:07:13 +0100
Organization: Usenet Network
Message-ID: <a2095414fcff5615d0eb971b4c231534@tipi-net.de>
References: <20261204021116.66-1-javen_xu@realsil.com.cn>
 <20261204021116.66-5-javen_xu@realsil.com.cn>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3012476"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:+V4dgVOY0lwrlm+GMjHX1p3UTb8= sha256:TJz2MVIuX8ZfYMGMm9MDYpLpTny9bIXHNmVHzBb9KcY=
	sha1:FV0s2ovFJfVCVV/8zGEj7GI+f7c= sha256:e1vDWvoR3S60PI6JK5vqy1j9Pbu2zp8TUiAkbjSA0rQ=
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 A8D25117DF1; Sat,  5 Dec 2026 14:07:46 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.298
X-Spam-Status: No, score=-3.298 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.001,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, 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 AhnWyGImB0qL;
	Sat,  5 Dec 2026 14:07:40 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-377944-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 AD6DE117BCE; Sat,  5 Dec 2026 14:07:29 +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 91043338F7; Sat,  5 Dec 2026 11:07:25 +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=1796468844;
	b=tsPcGOI3ZxKzHxwazlSAlhkmWpho7tOJcofiFy+1mEwHsUIY6AHO6newThmmH+a3LK1Q
	 LbU6ew56YmvLWQbjLYMrUTNofFdTbPPS8qjZjsY0c9WKmwBbEfbWkN/1EF/qqwXu2ey7b
	 6HsGX74m0LPS9hmgI5pQattjLeXpp+VFh2a9fj8kigqIPvXNmIaq715HpOoPfFqJDTq8Q
	 KmDLUj11RwsIzPASH1D5n/g5elNGZdoKZS9BUZypEZnxNtXSUPlN3nwEZTyjw3dNYiK+d
	 nxW900Bkw5GiTArXCzS25PfBP/DCfz/FRe9CB5q7WZqZNF3tgKGkf9UmNZ/2aHVIEVg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796468844;
	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=jXfhIzUvfuoOwYA/nv3n3Det/KnHrAzuI4Y+2+U8iC0=;
	b=E5AMnlP5DD+Der5pmX4Kss5/cCsmxbM4PsXWu+hiC0oGUXREE9wORYHLzPA1N+8zHzuz
	 YuWzdeMaDVUmF48ltVaaCRSDf0tU86aLt8NJl6w+YLAb9fIT2P6GMXG802eVWDa6llnEN
	 lmZF6k2qqTwOCogoZckqT8uLk6Sc6lX9ywW+32l14mbhrIColEeBrAA0+XMVxeZYePfmu
	 aBqQwoXxSrK7bx6ghS6UUnHJaZS1reCdKC1VQi/DSikUpnbRDajSEinYichG1ZWnSUce7
	 kv/x8FYiQr/xx/xezGcubhHA5Xd4oo5RKZ36G+YT+T0xn5sV8Kpejp8oUNRp9QqUdoA==
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=Hma+Mpz7;
	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 E16DC606A33B;
	Sat,  5 Dec 2026 11:07:23 +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=Hma+Mpz7
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=1796468843;
	b=YJw2owVbZUj6GmnItysHLLv8UM2bFPk6BcDh2Y4UoZJUCld7GAYEGr8O2/CL+63Wwtvs
	 Rp5WN+vSeDw0bdZ4SGe9xNSO2p3fvkuMMmGs8FbDuUGcStPbC2NKDyJG+htI1Z8srggK/
	 WBa0QOiFZONTeMnmmtGws2QEQJl7mt6jUv4sFTArX2AThiBZPBmlbFCeXEWvq+6lSXU02
	 VObd0tWf7lSAwTtj5ufiPmN4WpKdEnccSx2gl7JLsBYIoRywmVLRF30NXvpGxIQimpxrc
	 CogujLRHu+BRK9getBgiRZlZkLrvBqmgDYg7tKxF+4dczF6lESu3UkAwB+kEES5JISA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796468843;
	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=jXfhIzUvfuoOwYA/nv3n3Det/KnHrAzuI4Y+2+U8iC0=;
	b=YQW+97jPFUJ5jk/EN81q1TuO/c/2YL1kEfZ4opFTE70IHvlDjuID6rshRkg2j/clxdhl
	 +eEtg0Whs5VF0DsHSd90ATaTUHD+AFPDeFQrX3QXESpO0J+rRSjADm9Yua08e21n8h0EY
	 YB5yNeI0N/vjh6rla7M/GEZKCa+zNk5Y3YaRAD+vz0mVBiz98+LcLFmR9m4/x9QQVQjp7
	 +7si0Rt62HjD1BQDLT5pta/LCCYGykjpZJhEbDUZx3y2UrOdKQUEO731RRikIaS/JZuYM
	 fLdsxNrRNWDQVtWf1//HmEGROkQMRe6fK5moxsYsaqzwn+tdNFurV+zR6Uw1ScjNiQQ==
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=Hma+Mpz7;
	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 AFDB9606A322;
	Sat,  5 Dec 2026 11:07:21 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AFDB9606A322
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 EF648A2067;
	Sat, 05 Dec 2026 12:07:13 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1796468838; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=jXfhIzUvfuoOwYA/nv3n3Det/KnHrAzuI4Y+2+U8iC0=;
	b=Hma+Mpz7M2zmBt3q8qQ13t1UyYJvePmEJUuq3GdVv5a4o7HLsxqaECCDAfPh316/9lHI72
	a2w2q1ITxWgrasV/IkqMxTI+DChwlPTBW7dxEc1RXek5YQGE1QFaTgEG7KSxGsQRaIdT3M
	LKTuRZA5MCXMep49uhrDxas5IbTlyLWTjZjKJMqq7l0pquJGZDAxVgn8Ko/6G7t50+Y7vv
	ekKZ6Acz9K2raIQ9DLKD0uVb//K96Y0jp1/aaP57/vQORSVpdWIZhb9wTegsdCD7NKUvwR
	UEQ1sIyVsbcsdm0r0XPc65Pi03tIXaPER2rJ5uVcGoepUcFsqz9JWiPEU5OFoA==
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: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk,
 davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
 pabeni@redhat.com, maxime.chevallier@bootlin.com, netdev@vger.kernel.org,
 linux-kernel@vger.kernel.org, daniel@makrotopia.org, vladimir.oltean@nxp.com
X-In-Reply-To: <20261204021116.66-5-javen_xu@realsil.com.cn>
X-Sender: nb@tipi-net.de
X-Last-TLS-Session-Version: TLSv1.3