[PATCH net-next v4 6/8] net: dsa: microchip: Enable Ethernet PTP detection

Bastien Curutchet (Schneider Electric) posted 8 patches 1 week, 6 days ago
[PATCH net-next v4 6/8] net: dsa: microchip: Enable Ethernet PTP detection
Posted by Bastien Curutchet (Schneider Electric) 1 week, 6 days ago
KSZ8463 needs to enable the Ethernet PTP detection to fire the
interrupts when a timestamp is captured.

Enable Ethernet PTP detection.

Signed-off-by: Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>
---
 drivers/net/dsa/microchip/ksz_ptp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/dsa/microchip/ksz_ptp.c b/drivers/net/dsa/microchip/ksz_ptp.c
index 5daadf62689e6d60ab32e7a5a6c1f3fac3024b87..7eb033157f226b1169bc184d71569328e9a20a5b 100644
--- a/drivers/net/dsa/microchip/ksz_ptp.c
+++ b/drivers/net/dsa/microchip/ksz_ptp.c
@@ -947,8 +947,8 @@ int ksz_ptp_clock_register(struct dsa_switch *ds)
 	/* Currently only P2P mode is supported. When 802_1AS bit is set, it
 	 * forwards all PTP packets to host port and none to other ports.
 	 */
-	ret = ksz_rmw16(dev, regs[PTP_MSG_CONF1], PTP_TC_P2P | PTP_802_1AS,
-			PTP_TC_P2P | PTP_802_1AS);
+	ret = ksz_rmw16(dev, regs[PTP_MSG_CONF1], PTP_TC_P2P | PTP_802_1AS | PTP_ETH_ENABLE,
+			PTP_TC_P2P | PTP_802_1AS | PTP_ETH_ENABLE);
 	if (ret)
 		return ret;
 

-- 
2.52.0
Re: [PATCH net-next v4 6/8] net: dsa: microchip: Enable Ethernet PTP detection
Posted by Jakub Kicinski 1 week, 3 days ago
On Tue, 27 Jan 2026 10:06:48 +0100 Bastien Curutchet (Schneider
Electric) wrote:
> KSZ8463 needs to enable the Ethernet PTP detection to fire the
> interrupts when a timestamp is captured.

Is it worth stating our expectation WRT other switches given this 
is a shared function (not advocating to add a condition to be clear,
just document).