From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796217738; b=WbaTRmtpFVrllmOL2mfJ0H3lFScszI+8r0pIpObLDjKfuLEaBCoXcm2efR+04JdZ4KyH lG+Rky4ngdiJmI1j+vPhd4dTXx2KpWv0GRnU6zaUsdIAw+55tEiywGxnsJTcodo0DZbEW 4+sNPYowzJqrVpefDJYnLCg0IC3aeP3XxqlAEvclqNhHSIlBR3rOBGmO3R8AxGLDUCEr1 Ru5Tvm1qxiiYMGLxpkV/Sv3dQyZ8RfUPM2Zu/I2ag1eixtpaBv25fPNH20LckVdckun0v jJmLk8MZyvM1mBVRtcSImgiOXoJUJ/lS+8AhvdS3IpmdfFLVvEqIsJW/rI1RhVdiGqQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796217738; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=VC7e55j2bljf8FP2YwYxKKk3S42V6GQOC5CQHRSGmOg=; b=Svnbb1xTu/nuj/DCdj/wuGBJGcUwjzKafIHUtpETKyTnIOaVhpMk9loMBo/4PmHXjx3Y EM5ae7XIiDk6plWO3qGP/x/ZpNwQ4WLPPgtfdxxXFJtTu9XO6OTQrgamUYfWzObJfXmL5 5jdWyoShnXei1FHx1uMcaef6IVd3PSIvNZWBEL5jX50ML3uBSzRxpB34oiRONYp10NiW6 SbXZL8RFyws39/PheV7GFNu3OxqhngDhWqO0BK69YzCUxeiM4ZJMz/y0Clzhh52jZflqz Nu/rZ5mtU9d23PCup4gFvPglvTrXqhYZY01a7KD1y2Nsp+gwNNyCfYTgwbpRF4syK1w== 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=rNciUDV4; arc=none smtp.remote-ip=156.67.10.101 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 1E4A5606A31A; Wed, 2 Dec 2026 13:22:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1E4A5606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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=rNciUDV4 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=VC7e55j2bljf8FP2YwYxKKk3S42V6GQOC5CQHRSGmOg=; b=rNciUDV4aF+XazE0JtuyQ9kt2G pHNL6pA363oLfLDQ2iY+3HbfIFMo9G3YJzB1HeYCGWXOWzRUBeCRzbWpPM2zM7iu3U36opZMZjNN4 I7aBDf0T6icnCZa0hBX61kF9+z1GUWg5zm8bA5Tu4YOKcUFIerW+Rw03E/YT/nBZlnWc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1xYkHV-002pQI-8L; Wed, 02 Dec 2026 14:21:57 +0100 Date: Wed, 2 Dec 2026 14:21:57 +0100 From: Andrew Lunn To: javen 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 Subject: Re: [PATCH net-next v5 3/4] net: phy: realtek: add PTP clock support for RTL8127a Message-ID: <69a985e6-92df-4cdd-bec3-56a6afdb927a@lunn.ch> References: <20261201094454.1150-1-javen_xu@realsil.com.cn> <20261201094454.1150-4-javen_xu@realsil.com.cn> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201094454.1150-4-javen_xu@realsil.com.cn> > +static int rtl_internal_nbaset_probe(struct phy_device *phydev) > +{ > + int ret; > + > + ret = rtl822x_probe(phydev); > + if (ret) > + return ret; > + > + /* Only the internal PHY of RTL8127A has a PTP block. PTP is > + * optional, keep the PHY usable without it. > + */ As you point out here, the PTP block is in the PHY. > +static int rtl8127a_ptp_read(struct rtl8127a_ptp *ptp, u16 reg) > +{ > + return phy_read_mmd(ptp->phydev, MDIO_MMD_VEND2, reg); > +} And you are using PHY APIs to access it. All this code needs to move into the PHY driver. I can accept old code violating layering, but new could should not. NACK. Andrew