From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792763577; b=GWAEN/6N8LVHDB6qw362krLuf/3VNxmv70lJwmtdQzVWnKn0gA1BlDHoDJS0nJZSxdtp FzH+kMNpm6b+EbCOFfHL3s2RyUs1YHhJRmUs4lXn/uq1jCcJq1PqdbTKruODNGNsbSIVl le9q0KEoc4ISLatwojGxKNMfr0mEL5ZpJ+1ERcbB+7sDjC6xpmM0HUXFnhsukm8yEYUQS jHUAQjBFzI1Q+f5exKinnupXO3KnG/n7gCg8RZrt+bj4/ONCvPdT5zWBu4U6aBA49e0Kl nflDGqw05YeOqRv7CP+a94wHV+tEDdUpfXYysGMmVs7GCDyeSjmawrvMg8+99RRjxZg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792763577; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Last-TLS-Session-Version; bh=idO/P4wNVCCS8iWUVIafJ01VIG3apG7cu4Mx0xXu/2k=; b=iC4sTt+yGfyMPoo9lKVJgUr7VeJxHmhu4cWCbC41axgbzV0+jSROWvT30rNpFNbM7FeR zySwtf25vDDwU9u+Wc1/Fkv0hKMzcTK27OZN5z0XJq/xSK/fPpfvPQIDupIsyeTJ7K0Vc VefJzxPDP/LJ47XCmbL0y8RGCoTY0p0XC1qj+SaG64hUYbcxEUpKvis+qXwYTHx+Icvza TjUuw/zzWXfCf9KRQsZNmc6a0dL3X/QakkkTZ9PlA36xZrXLV9+zJvHdQT3agh3ZscJ3L WjwsNLoTWRhZpCsKr5G5FYVp4BFhfWZdKJiXUumihs/KawDvwCDcR18HF2xbPwCXLnA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=b7u7k6sk; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A524606A31B for ; Fri, 23 Oct 2026 13:52:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3A524606A31B 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, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=b7u7k6sk Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 2CFB8C51460; Fri, 23 Oct 2026 13:53:53 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 54BF460398; Fri, 23 Oct 2026 13:52:53 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 88ACC10328E54; Fri, 23 Oct 2026 15:52:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1792763572; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=idO/P4wNVCCS8iWUVIafJ01VIG3apG7cu4Mx0xXu/2k=; b=b7u7k6skjQay1BQaLP9nX7hB6gqS/T31ASpavRQtwdTXPr8aj1CqM+0jCDW3KZyyKAztj8 pDJ2P6GK0REsFJi/s7dNrDvG1GZe8sVmUH/ATTfagyAKN8mt+CO99JsDlj0lOSpp36vt4p el55TwFVgtuEH4ohfeo8mheA6IHcwGjl1wi8NCeX0LTxAuRD+hMV9NsnpRiBL+1F0iWUhp zLnGrKejhuptBq4oNkT7QL/1KEaJMZOZDvgFr2lDVxurDZsOF8jWtZDypFvGN1aOlunxC6 hFqT0uSPyoSAgiAKjw2aNn3jCksP6S5OzIF+LdAMqYiEh4U5koOb8WiRunXJng== Message-ID: <2c36a835-d297-44b9-a8e5-cb256caccbc8@bootlin.com> Date: Fri, 23 Oct 2026 15:52:45 +0200 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 User-Agent: Betterbird (Linux) Subject: Re: [PATCH net] net: ethernet: ti: am65-cpts: fix support for PTP_EXTTS_REQUEST2 ioctl To: James Clark , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Richard Cochran , Jacob Keller , Siddharth Vadapalli , Chintan Vankar , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261020003525.1237742-1-jjc@jclark.com> From: Kory Maincent Content-Language: en-US In-Reply-To: <20261020003525.1237742-1-jjc@jclark.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 On 10/20/26 02:35, James Clark wrote: > Commit 7c571ac57d9d ("net: ptp: introduce .supported_extts_flags to > ptp_clock_info") modified the PTP core to validate the supported flags > of external timestamp requests, rather than relying on each driver to > check them. > > am65_cpts_extts_enable() ignores the flags, and am65-cpts was not given > any .supported_extts_flags. Since PTP_EXTTS_REQUEST2 always implies > PTP_STRICT_FLAGS, the core now rejects every PTP_EXTTS_REQUEST2 for this > driver with -EOPNOTSUPP, where before that commit the same requests > succeeded. Only the PTP_EXTTS_REQUEST ioctl still works. > > Tests on a BeagleY-AI (J722S) show that the CPTS hardware timestamp push > inputs timestamp just the rising edge. Encode this in > .supported_extts_flags. A PTP_EXTTS_REQUEST2 for the rising edge then > succeeds, and one for the falling edge or for both edges fails with > -EOPNOTSUPP. Reviewed-by: Kory Maincent Thank you! -- Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com