Article View: linux.kernel.netdev
Article #6836Re: [PATCH net] net: ethernet: ti: am65-cpts: fix support for PTP_EXTTS_REQUEST2 ioctl
From: Vadim Fedorenko
Date: Fri, 23 Oct 2026 13:51
Date: Fri, 23 Oct 2026 13:51
39 lines
10204 bytes
10204 bytes
On 20/10/2026 01: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.
>
> Fixes: 7c571ac57d9d ("net: ptp: introduce .supported_extts_flags to ptp_clock_info")
> Signed-off-by: James Clark <jjc@jclark.com>
> ---
> drivers/net/ethernet/ti/am65-cpts.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/ethernet/ti/am65-cpts.c b/drivers/net/ethernet/ti/am65-cpts.c
> index efbf2ef976a..df5659ead72 100644
> --- a/drivers/net/ethernet/ti/am65-cpts.c
> +++ b/drivers/net/ethernet/ti/am65-cpts.c
> @@ -779,6 +779,7 @@ static long am65_cpts_ts_work(struct ptp_clock_info *ptp);
> static struct ptp_clock_info am65_ptp_info = {
> .owner = THIS_MODULE,
> .name = "CTPS timer",
> + .supported_extts_flags = PTP_RISING_EDGE | PTP_STRICT_FLAGS,
> .adjfine = am65_cpts_ptp_adjfine,
> .adjtime = am65_cpts_ptp_adjtime,
> .gettimex64 = am65_cpts_ptp_gettimex,
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Technical Details
Message-ID:
<45128a4d-d92a-4966-b3a9-668de73d3d90@linux.dev>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351093-linux-kernel-netdev=dewy.ruReferences:
<20261020003525.1237742-1-jjc@jclark.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351093-linux-kernel-netdev=dewy.ru From: vadim.fedorenko@linux.dev (Vadim Fedorenko) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: ethernet: ti: am65-cpts: fix support for PTP_EXTTS_REQUEST2 ioctl Date: Fri, 23 Oct 2026 14:51:09 +0100 Organization: Usenet Network Message-ID: <45128a4d-d92a-4966-b3a9-668de73d3d90@linux.dev> References: <20261020003525.1237742-1-jjc@jclark.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="513573"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:bLYR5TOA6WNE66NRoxEDVgOh9Zc= sha256:UjnBmkv6SmDAXJWhqCGToPsuVm8Jn5j4EWGGccuz2k4= sha1:cnmhwgtLlT9BaHo1CwzJlz/+fpY= sha256:Ic09A/06TJxbqKd0/rH7zYqjKsX+WA2ya8+ysQH7oGY= Content-Language: en-US List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 1F78A1114C5; Fri, 23 Oct 2026 16:51:43 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.14 X-Spam-Status: No, score=-3.14 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linux.dev X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a5S_3wSrtnP9; Fri, 23 Oct 2026 16:51:32 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-351093-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 2AA7B111458; Fri, 23 Oct 2026 16:51:23 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id B68A860663F; Fri, 23 Oct 2026 13:51:22 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1792763481; b=HH3OvAjepf2bHhpvWFRpBDy0Ejchj9dsZLk3PiucI5PD1ndnrFLwCGYYBV1XAqGSHhXl L5563UtuLzNeNni7qOP3QOa8ZgZEVeMh3Xe9wmNiDyYcjQMbJy4SynYHT1KCEltH255/9 0JtsuIPqqs+5dIEeSEq40JFlQfmrIuz7Y180njPvSuy4QUCLMNDBw3dRhgO6CDovLtfkS vpLzmUUGR7fDyW5dGqCwbBPYh5dmAU1VDg/q8c2zM0319GbBTVZYLibeh8d/Mb0lkFiQO 9AutL0XE1q3mvcwRlh4OiiRADtgCi+cQbRI0TPd0xVGfz0ted1ytcR8PpRmmLnn8qMg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792763481; h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature: X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=CdsOu3OSEsynQJ6rdHJSUQdyHbmYdl9dN4nnm+613fs=; b=uy92MG1WpXvnn8UtuSuewMWxuzndEiSNoFb/j9pE3VWW8QR7xh0gBcTgfOpDOyoJ5p7Y LbQQwxk43wlgSybft96Ruxf1MtsuZpc6c+UEuu3vFAZyoGhE/s1lbi3ohHF0KpyvVIcw2 5DZ+1ZCHTCiDNik5PpslGJOcIuAZ8ivslOJd72RSQ//uM6SrFzSRyO878dOYevJTLY+lw 3n8jo2rPZ7LVls2I6J05HKM1Q33OzZJW3YeF89rgUqfQUY6ndi0khl4uopDH954O17MpJ +c14/tubJ4BWP8nhiHGaUdWMZQ70x3pPoENxe21TPsRsiXHGXlaO4Hr5cKnP5I2rmVQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=P4XJLwbO; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABA4B606A325; Fri, 23 Oct 2026 13:51:21 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=P4XJLwbO X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.126 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792763478; b=FmH+f65UC8JJcmya1pG37VtIQXzJavhQDUVSXIfnliXw/zbjV7aL/bcV/dyB25ejz4aI xpHMyfWD+e3afuUGARu6/NxA25WNGDBGLZPM4PnZsLlp/5iu36dFzn5gzT+f3+BPWfNbH rORSCbGNoZjAzPepmRKP10PHDuDFE49pzpRSZkvg57jbPniPUR9ZqtAc7NdkNar6CEV/n DRCcVnSKZaThdFgWG6NnqKM7qXKiWhuBU6txn0bhJd17p43FOeq8TI1+CArc9tm5VOCZl qBYAQaU3KN8Yq2QrdLrm05xddoEVBI0lzQPLUqXbFeVuwZUcNC8gmpDz+gf5OG0k0RQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792763478; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=CdsOu3OSEsynQJ6rdHJSUQdyHbmYdl9dN4nnm+613fs=; b=ei2tz4wgntBKJcMq1ewVDD27WPF2P90QMkRXd/jvtXjV1mBPkLVt6o1sxTA+6UOIKFxz BFuQGaZ47W/E0FDzz/BGMmyVnEejWEy2SJ8OjG8bboAfHPcn0rHSezNrdq9PyKAWz9/hE lqdfxBxmXc+5rV9pJEiQ8O8e5I35ohrzunoj9TNyrmC5e+nC6G3fhp/9L+MT7ScIg5Hnc halxIP41vasXB5yQUUxuYSHvkZBha1g4WRE1KERXRHz5cWPuuU84884i/3cJm7m8aMEy8 ZgagWbfa9MbU2gsHQoqWZbksxp/8HhhLdrnfWiZvXRW5YVxl3AGBMaJvuqnoPGd0qhA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=P4XJLwbO; arc=none smtp.remote-ip=91.218.175.126 X-Received: from mta0.migadu.com (out-126.mta0.migadu.com [91.218.175.126]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F618606A31B for <netdev@vger.kernel.org>; Fri, 23 Oct 2026 13:51:16 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7F618606A31B X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: netdev@vger.kernel.org X-DKIM-Signature: a=rsa-sha256; bh=n/CwR0aupi+SV9gglaQoOTa0JU0PwKkfaExBUVamX4U=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1792763474; v=1; x=1793368274; b=P4XJLwbOe7Nkc3VGr+sPWO9ELMXTjFkVzrP2iBk2r3idn4Kips19yACAacyOCbKNuZ8vnX9O yz/am+PXfngvvanvImUSlNEm624i/VXnUNHHrjFYyAfDTU8AlrB/lOdzkJVQW4T6Gh2C6Mv6s6f IMXBQxK4siqDC2DehhiOiYaQ= X-Envelope-To: netdev@vger.kernel.org X-Received: by smtp.migadu.com with ESMTPS id 9ced7062e363dd41; Fri, 23 Oct 2026 13:51:14 +0000 X-Mizu-Trace-ID: 9ced7062e363dd41 X-Migadu-Flow: FLOW_OUT X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-User-Agent: Mozilla Thunderbird X-Cc: Richard Cochran <richardcochran@gmail.com>, Jacob Keller <jacob.e.keller@intel.com>, Kory Maincent <kory.maincent@bootlin.com>, Siddharth Vadapalli <s-vadapalli@ti.com>, Chintan Vankar <c-vankar@ti.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <20261020003525.1237742-1-jjc@jclark.com>