From nobody Mon Feb 9 19:52:45 2026 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 949FC3002A9 for ; Mon, 26 Jan 2026 08:27:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769416077; cv=none; b=YGViF6QwOrkvZGGpP6761DidigCGQtBCmkEJp5jQ4HpMgDRdIYU70JMor5PnND6fcyJZDwhLwvxA5xACUZiwzvA87wyxlBjtdgWBt8KvAZ6/pWzwpVP1vL85gHdnEoyeQgCrF6cqdEHvsYg+/MEA6UzOBPwtDkb6eAw+s4xnwfw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769416077; c=relaxed/simple; bh=c9+1csdERnq6VqZtSUZe4hU4XHbogae+YRUiHHFm5fw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Jt2fvsrTkeolnZ1WuggO9Gqe4Bi49oAZmJU2Pa8lDMPdPmf8FllK+nyDoyVv2svZQ6cMFjky3r2rkjjdUrNjMarsqeh7sHVJt3tky4Oa5pbocVeXmE0xnkRv+xXgwbeI4xI05N5d+hHtxDok8BbFXOrWqBglF1N2mSN+9uhHFhE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=OH2PCQtH; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="OH2PCQtH" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 61CBD4E42295; Mon, 26 Jan 2026 08:27:50 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 37F3760717; Mon, 26 Jan 2026 08:27:50 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E0244119A863B; Mon, 26 Jan 2026 09:27:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1769416068; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=wlZcPsofQBAS2VnD7y5K6VUGRbgqI5PAGFZ5dErBbds=; b=OH2PCQtHj8d+JaoQjRxRUz4n0Ph8kmWvCkL4keZeoZb0aQ+JZ++WWCceIivKWQETvSiItR uE01anpeDeHxk3sh6pY8ndEZ3zKCpQ7UHMkZwjYzj6BN+a6gjUawQh9/Rm3Z46NWsw2DN3 0xgHgKKiKJobCiWGTSRiziIyPUdR6l52nWiozOaspxmRWMVBkN/3sUg7CuERCi/YeXZu7v jkbz6v6vXCLKxN4GqRk+VKYxbHFSFdRbqG7EfqaVReuxEadkLsmSftFlIOEdqkL80pjD83 MDMzgwXjUurrxQr2TP1oEQQCqRC8ySz2ViYieMnlP+z9FnLlYfOW/rRk5moTQg== From: "Bastien Curutchet (Schneider Electric)" Date: Mon, 26 Jan 2026 09:27:34 +0100 Subject: [PATCH net-next v3 6/8] net: dsa: microchip: Enable Ethernet PTP detection Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260126-ksz8463-ptp-v3-6-9f092aeb8492@bootlin.com> References: <20260126-ksz8463-ptp-v3-0-9f092aeb8492@bootlin.com> In-Reply-To: <20260126-ksz8463-ptp-v3-0-9f092aeb8492@bootlin.com> To: Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Simon Horman Cc: Pascal Eberhard , =?utf-8?q?Miqu=C3=A8l_Raynal?= , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Bastien Curutchet (Schneider Electric)" X-Mailer: b4 0.14.2 X-Last-TLS-Session-Version: TLSv1.3 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) --- 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/microchi= p/ksz_ptp.c index 1ab41cc96af9ea3b4c092d7a90a6c41fce705a32..f773989e4d2f72fe7b474ff8965= 09ffd425a87a0 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 =3D ksz_rmw16(dev, regs[PTP_MSG_CONF1], PTP_TC_P2P | PTP_802_1AS, - PTP_TC_P2P | PTP_802_1AS); + ret =3D ksz_rmw16(dev, regs[PTP_MSG_CONF1], PTP_TC_P2P | PTP_802_1AS | PT= P_ETH_ENABLE, + PTP_TC_P2P | PTP_802_1AS | PTP_ETH_ENABLE); if (ret) return ret; =20 --=20 2.52.0