Article View: linux.kernel.netdev
Article #27097Re: [PATCH net-next v6 3/4] net: phy: realtek: add PTP clock support for RTL8127a
From: Andrew Lunn
Date: Fri, 04 Dec 2026 19:08
Date: Fri, 04 Dec 2026 19:08
19 lines
8869 bytes
8869 bytes
> Changes in v6:
> - Drop a stale sentence from the commit message and the unused time_set
> - Use phy_read_mmd_poll_timeout()
So you still have PHY code in the MAC driver?
I had a quick look at the code. I don't see it access any MAC
registers, it is all PHY. So why is this in the MAC driver?
Please don't ignore what i said. New code should not violate the
layering. If there is a legitimate reason for this code to be in the
MAC driver, please explain, in detail, what it is. Otherwise move it
into the PHY driver.
Andrew
---
pw-bot: cr
Technical Details
Message-ID:
<86ad2d6d-9c39-41a8-8e44-12093d2b5301@lunn.ch>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377581-linux-kernel-netdev=dewy.ruReferences:
<20261204021116.66-1-javen_xu@realsil.com.cn> <20261204021116.66-4-javen_xu@realsil.com.cn>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377581-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v6 3/4] net: phy: realtek: add PTP clock support for RTL8127a Date: Fri, 4 Dec 2026 20:08:53 +0100 Organization: Usenet Network Message-ID: <86ad2d6d-9c39-41a8-8e44-12093d2b5301@lunn.ch> References: <20261204021116.66-1-javen_xu@realsil.com.cn> <20261204021116.66-4-javen_xu@realsil.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2839902"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:pB8AhF2ii28s7wgdlV4B5vc6aow= sha256:xmLoSX8s+EHqTAXVGnkace3TqORH0VKtWFIAtMWQ25M= sha1:ETWVaO7oDw5L9ZgrqObPfi3Jukk= sha256:lrJkYB+opdM4miYps1zBDbkGBLvRnYmGAg/7Oqn83LU= 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 BC9D6117CAF; Fri, 4 Dec 2026 22:09:33 +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 (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 bHGQ89XDOfzv; Fri, 4 Dec 2026 22:09:27 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-377581-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 66478117CAD; Fri, 4 Dec 2026 22:09:18 +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 047EE39F19; Fri, 4 Dec 2026 19:09:15 +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=1796411353; b=Pass6qtVKFJ3+sjlaVQQrM3rLNJabOyPE/KGl7p2gzoS9TLKFu053iezq1PIzWRnSF8v t+jepCvBwXJaVQVUMg3vmDqGXdOlwr3/CCTCzHZNiRCjvp1QFQMFRtFTlvLWstkZ7R5Sp 6zsMlcrrIZb/U7Gl5SXbRpdzLvhepgbdYTmSkvrp94ny2gZpjEj6+h6Gyssrp5Kp+YDjI YT19gET0rlQ88AdJyVyUdh5R1uNEk1iGCjN03QeTCARDkIMkiO4tveXVmy6qwL6YxgZmT r5d9Y9jmqzGdu7CgdOokBzpWnmN89cJ6GMISCTPGLXr8PdtSouIJcZ/tEXATHIHGhMA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796411353; 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=XlrxpbWUY3E1OubnnPJHDQmMGze2zdY3u5lgmtshO3I=; b=qIv0N35u4OaHLX+dq1emLquAv2OR03TnwHSVMrtZtuGypN1SRVxvAWoR/J++HJq1d+1d Nrywl6HYm1r0kWi5XQ1YCoqiG5B5uUKwryzIjOFx4j68Qnzgqf68oy5iiNVm1cXifkltO H4R1H0tAwimhFijukalCdYJQjg3o3WB9v0ftvnQdrc/8nZjD2WSTy2WAKfwt/Fuqox8hL RYu9AehlRwkiBL5v8LPMD9K2Ep7S/HsulQvPq1FbA77IY+ZxtOACe27XTLHJGmQBeWl3V evXay8nUYXp6XNX48sxj+DM0Kc5Rk36EVVHCvse2ydYcenPBpmkiSioQIloFudt0VKA== 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=iXZbkewU; 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 964C4606A33D; Fri, 4 Dec 2026 19:09:13 +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=iXZbkewU 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=1796411352; b=wjyp/7x74P1e5W6pp+v0AelTCvDoAlZMugTct1WYZWerz06LdONteGbb7dAgY6m66HqB z4pAVdTp4k4Kxkun9Ht2fGrFmqn57KbxBd2lUqbkj0BchEF8cjNYJxdy1CtISDSQ78qr+ gXe/zxdFaCQvxfPMrxJRQ122Bznf/sp8wIlIhy+t2r2OyBtQh45ffpeoP0m2cIqCaKyoD T6SYJKUO4yErmiXV6ibBY0LXb41Qxn+Q6IjltOOmFzF/1U3zlpqHa2vmazK91xCB4vywS XvNdk8t1RQSkr62jdCb7Myx+PzTPy3/WRqeAsi5aLR5UYBZ7ioo3XRZDNukUbKD62Gw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796411352; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=XlrxpbWUY3E1OubnnPJHDQmMGze2zdY3u5lgmtshO3I=; b=JI0RUCibPr4zLcJZOzxcSC66nql5o7JziOZIzabtw06MEBSSjYOzvVGf853BCL9LFh2W VxyALx+TvYeR3utxDyHyqPaBAWrs429n/3tTZRdPnDO/psB+tZkRCmiWVS9cJglviUO2k hYAi6Jg1MgcbGBQt2OLpv3v8TgepyeJCi432t0PlygHUQBHf9K2F8gNR2p9UGaTvF4dVR SefohVU5SQ699hFXyiM/ugPa9IJYLuhiRxy43tfcSP08vVJHYwbYUOufP5uRnej3y11ep eh/jlqNtl+g/3FFngP4mE4CchMu0jLfgni+UrSvfARjTK5r1jpc0vNf0J88C0GwEaLQ== 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=iXZbkewU; 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 76872606A322; Fri, 4 Dec 2026 19:09:12 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 76872606A322 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=XlrxpbWUY3E1OubnnPJHDQmMGze2zdY3u5lgmtshO3I=; b=iXZbkewUfoJeYbT6g1nYpXDUs8 s1SwaaX46LX4lfF6z5QGnMH/YmgPmgI0x0mWr0NdfLz1tShnmBd95w9n6SmGP9rhs5i9ALw5t0hqA oE7na8HlSoNudjr0suRusNKzvUYhcJYWqkjcMih3ymn3dbon5skAHRmEyxI4CFDmrQv4=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xZYeL-003IGG-AQ; Fri, 04 Dec 2026 20:08:53 +0100 X-Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, nb@tipi-net.de, maxime.chevallier@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, daniel@makrotopia.org, vladimir.oltean@nxp.com 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: <20261204021116.66-4-javen_xu@realsil.com.cn>