From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 6CD53370D4D for ; Mon, 13 Jul 2026 07:11:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783926710; cv=none; b=DvseZKEuRC+thnhNMxe23ROiTTLqjN1hSHwREMxuUNq8I65sSZrAGRs5u5oPWAFp9quyIeM67bqBiwA+rZRGSzb3UbskjffrUzrwdfxCopAkiNYYrgeC7eWNSPp0CKeChSopSOHhcb2AFabmT6XNJCB0ZT4QVanfxI5qKAIizKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783926710; c=relaxed/simple; bh=0tx5h/gOw7mSpA6bQ0Ivylr29fJutlF0yRBcE/DtAMQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bi8Z7vWGY3jawoo2khw3/bsPp9iKTs93vxqmMEgFUNA9xAd7eYmix/nd1V6/rVraDnFCC9dnw49ek9W+BEUslKmEc0HDoJBbGdBTRnNeuK5gTqyxUgNykmtEmHSB4MQ5shNl+bkx4/ERP2BpohlN7+k3B/MxNr9xN29gl37tDAw= 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=STJovxC/; arc=none smtp.client-ip=185.171.202.116 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="STJovxC/" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 44EEFC2BB11; Mon, 13 Jul 2026 07:12:03 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 4C7A860341; Mon, 13 Jul 2026 07:11:47 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9F36911BD3A3D; Mon, 13 Jul 2026 09:11:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1783926705; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=lNaj+7pmUwVXwV8Z90r3nasLl/i2CdZABVfDqyXQdbo=; b=STJovxC/VfEKBizaWvwjz4PuaSUSXqXT0t0n0+hSHVLNMa25RFtQEZlmqNhz+WJo8lDBZ8 4NLNN+na/vHxA8TAPYGPxAAQmPmKpIL7KPGYyucuQMnHTYOSPZ9qHlkheSXNEcBds6BU8Y XQPhWomUU1WoxvDEdBsXqS2+8WA8dVJvDvXh6gIuRl115HuK56pByX06aaCi3bcKeRehv4 HH/QSWqjeddYarySxrWc6BaaWTzJWXBYtfz35OQXJAajIoTL/iE0g6K5zFjcbXL9WOsi4V NjW8UJJQJZU1KJ6WtKtjZPMtbjo+woC4OCSq3lyaT+BcNVtfy3vYQs5M+90ptg== From: "Bastien Curutchet (Schneider Electric)" Date: Mon, 13 Jul 2026 09:11:28 +0200 Subject: [PATCH net-next v2 09/10] net: dsa: microchip: explicitly enable detection of L2 PTP frames 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: 7bit Message-Id: <20260713-ksz-new-ptp-v2-9-7209c05058ef@bootlin.com> References: <20260713-ksz-new-ptp-v2-0-7209c05058ef@bootlin.com> In-Reply-To: <20260713-ksz-new-ptp-v2-0-7209c05058ef@bootlin.com> To: Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Russell King , Simon Horman , Maxime Chevallier 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.3 X-Last-TLS-Session-Version: TLSv1.3 Detection of L2 PTP frames needs to be enabled for PTP to work at the L2 layer. The bit enabling this detection is set by default on the switches currently supported by the driver, but it is unset by default on the KSZ8463 for which support will be added in upcoming patches. Explicitly enable the detection of L2 PTP frames for all switches when PTP is enabled. Signed-off-by: Bastien Curutchet (Schneider Electric) --- drivers/net/dsa/microchip/ksz_ptp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/dsa/microchip/ksz_ptp.c b/drivers/net/dsa/microchip/ksz_ptp.c index 89fbc1253f25..be6b8240ac03 100644 --- a/drivers/net/dsa/microchip/ksz_ptp.c +++ b/drivers/net/dsa/microchip/ksz_ptp.c @@ -953,8 +953,9 @@ 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.54.0