🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24889

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

#24889
From: Andrew Lunn
Date: Tue, 01 Dec 2026 01:25
15 lines
9464 bytes
> When both mac and phy support ptp timestamp, and the user has not
> selected a provider(dev->hwprov is NULL), the core uses the mac.

We try to keep policy out of the kernel. It is policy to decide which
stamper to use, so it should be userspace which decides and sets
dev->hwprov. This is however a new feature, so we need to ensure it
does not cause regressions with older code. So that is what this
phy_is_default_hwtstamp() is about. The Marvell stampers have been
around a while.

Since yours is a new device, you should be using dev->hwprov. I guess
it is a reasonably simple patch to ptp4l.

   Andrew
Technical Details
Message-ID: <907fa080-bc18-4c1f-8b52-b06b892cdaa5@lunn.ch>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374611-linux-kernel-netdev=dewy.ru
References: <20261125090217.1198-1-javen_xu@realsil.com.cn> <20261125090217.1198-1-javen_xu@realsil.com.cn> <20261125090217.1198-4-javen_xu@realsil.com.cn> <20261125090217.1198-4-javen_xu@realsil.com.cn> <awathfkR13ZQH6g9@lxl00025.wbi.nxp.com> <15f473435a41440da45c6d070edc1128@realsil.com.cn> <07ddc9e6-2604-47d4-9e68-eedfaa4ee142@lunn.ch> <43e9de91177b4ffaa7b1c22c45109578@realsil.com.cn>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374611-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v4 3/3] net: phy: realtek: add hardware
 timestamping for RTL8127a
Date: Tue, 1 Dec 2026 02:25:10 +0100
Organization: Usenet Network
Message-ID: <907fa080-bc18-4c1f-8b52-b06b892cdaa5@lunn.ch>
References: <20261125090217.1198-1-javen_xu@realsil.com.cn>
 <20261125090217.1198-1-javen_xu@realsil.com.cn>
 <20261125090217.1198-4-javen_xu@realsil.com.cn>
 <20261125090217.1198-4-javen_xu@realsil.com.cn>
 <awathfkR13ZQH6g9@lxl00025.wbi.nxp.com>
 <15f473435a41440da45c6d070edc1128@realsil.com.cn>
 <07ddc9e6-2604-47d4-9e68-eedfaa4ee142@lunn.ch>
 <43e9de91177b4ffaa7b1c22c45109578@realsil.com.cn>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1583732"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8xSry3fH9jG9Y36yrS1cpgitF74= sha256:WD9Uapitvl43HL+4ez9Xgr13A6G5vnBo99D/Hw1SHJY=
	sha1:FHSnsKJB05uJEt8K+75j9T63ByM= sha256:SgdWzisUNq1UxkiAX+ycnWcdSBOXwL2HPvDhXRiWB6g=
Content-Disposition: inline
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 12C53117167; Tue,  1 Dec 2026 04:26:09 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
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 W2cwMa6PQazy;
	Tue,  1 Dec 2026 04:26:06 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-374611-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 08432116F2C; Tue,  1 Dec 2026 04:25:55 +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 AD52F23E13; Tue,  1 Dec 2026 01:25:53 +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=1796088350;
	b=1HSqvWEt6B/1Yh8+Z8P+PNqBz0C49QaI+14MdPNWXKGYx/HLhnDUoIOwRuTZ6zVpTDef
	 y9ejfH4SMDL8fC4g7o6CMo2ri4+p+T9SrBmxya35sfoeCStcAZEdL712lh1vvfYBn/n6d
	 eI+MPNZ0pfOiR2L00XVNMnGuldqpLr7c5eiw58yyYwECvt3FXj1vfvn6540hNxbBzpZJb
	 ptGDRXuScx92HX3evDoxFJL3bgjFXajW4yoxb9wnBxKpF+q8Hz/M5qdap5ps5l3qUy+Th
	 P7uc32QMgFAYvdl8lWVoC9MKwKP41lw75qtx19HfV2Q+FitPYUlTeNO0igzrwKSl4QQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796088350;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=LkgAf+T0Q2pxQTGSmX5cCHmzEJyEewKKLP/yvQ8VJ7U=;
	b=w2qnJs2sKq9VHlOYUla9KeQSU1HrZexgkdaiqf56LRnpZ7CTuWbIKpY9gkyMoNnDA25Z
	 rGIDGJrQaK1wBUZSp+9XrTJV/3jk1kDddjK99b/KaTWyyytp1PpfOhbrd6lE9Si/7bMsP
	 MRIiv6ShIF/Fplkm4XfUlgum43KFu/7BXU/aLG6bp3/ptNHiqjjXRl3XdKfn5loDbz3Yn
	 sLxKHrt45QPFgs4xIvOLY36htBQ2d9oMarhFCRGAcicCQx7Sy3yHYQJwmLKfesZW3cj6m
	 uJlwUiK399gcQYgBqnZXbBTdRch0Vgncuue+S4PFHSUA4f77FH4fkeVIkFsnXuHKtbA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=vBIoCuP6;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	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 A46D5606A330;
	Tue,  1 Dec 2026 01:25:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=vBIoCuP6
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796088349;
	b=tgAlkUpmSPwIsNdGxJGV9WM6dtHznov47Bs2U1tYt6DFi4WDwV0AshN8vZNC41gY3CKV
	 zDB/cx6uXpILi3pqPCCpQ/awoBsZrn6sKJR5RG3xQN5blF3fZ5MSniyX87IV2MpaOeOnw
	 2serSFDYCUhAX44QVh0LgLLFKjCle/utipiVjKbheIeBBU3CbCjQrgaAB/yzYve4GxDXP
	 Rc4y9wXwJUex32oMTkEaLKk2AzjWGaYm9YsDZ2v4dTU2E6vjSEJvwUFI0wMwDQNWj8pjn
	 /dXqzEaaDbHvX8Cw9LJ++dFwHhLw9YXLWDL3aEJnxVB77307T1tZX/eyHCI//e614Sg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796088349;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=LkgAf+T0Q2pxQTGSmX5cCHmzEJyEewKKLP/yvQ8VJ7U=;
	b=U8bgn8YdnXlYGphvunv2egLaxYJyoFflBuU6YaZCpMGi0wC2+CFMEPWCbssVhwP8Eu/0
	 D8B/v29JhXvdiYbqx7t1/6wiiAl8H97CMFJWjPCKWZY1HW3aTMSR1nUE20/ZAnsmkhXie
	 dZftkseDbUo6grSZRpHq114dctvFCFSpGdFWQTSUw2d0wr+BQwU8O9FvFZABUkY6zhGzn
	 tWUWhQxJ96Cy1mgEYM5KU/KdvYdXAB2KKnPmnrkvGl/gQDTA4I4ICvkpBae+uDgMALSCi
	 lmtn4Uih18EYRS1xehSHC1zvzY/Ckg751oBp63dr27qFbyR11UieleIgsT7nw40umcA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=vBIoCuP6;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 506D0606A31A;
	Tue,  1 Dec 2026 01:25:49 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 506D0606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=LkgAf+T0Q2pxQTGSmX5cCHmzEJyEewKKLP/yvQ8VJ7U=; b=vBIoCuP6Bnzdn+cn4gD/tGBdB1
	xxWUjB02G4gZLn2n1fabgFZlaaWcPq0lHmRqpGdV/9aCtqqZqBYT1Qpu9HSbdPDZtu/sECaaDnPV3
	OJs7eVXM2MuEdeNITejzkuWWhj0UDv0iQjYNJtml8hB28UwZliHVTpPVCMMRnAkUIv+U=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xYCcI-002Twf-Kx; Tue, 01 Dec 2026 02:25:10 +0100
X-Cc: Vladimir Oltean <vladimir.oltean@nxp.com>,
	"hkallweit1@gmail.com" <hkallweit1@gmail.com>,
	"linux@armlinux.org.uk" <linux@armlinux.org.uk>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"edumazet@google.com" <edumazet@google.com>,
	"kuba@kernel.org" <kuba@kernel.org>,
	"pabeni@redhat.com" <pabeni@redhat.com>,
	"nb@tipi-net.de" <nb@tipi-net.de>,
	"maxime.chevallier@bootlin.com" <maxime.chevallier@bootlin.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"daniel@makrotopia.org" <daniel@makrotopia.org>
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-In-Reply-To: <43e9de91177b4ffaa7b1c22c45109578@realsil.com.cn>