Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp277249lqp; Wed, 12 Jun 2024 00:50:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXDK/phOa9MCBhgIopUSzjb0ixnX8VP7+fqN3oXBmB+NBwSuZmMZe6VIHmsDUGgGbUIkmw9rrSsQ4uaFsc4qM7LvG3O0uW3tyqoV/H/JQ== X-Google-Smtp-Source: AGHT+IEcGo3t/UAGgZqSBoHvFD8rs78sgdMzTKAcw3ZaXin6kDkVrfbu4oc+1i3XTfggXxkvToCU X-Received: by 2002:a05:6a21:78a4:b0:1af:d40a:7692 with SMTP id adf61e73a8af0-1b8a9c67834mr1187180637.42.1718178655356; Wed, 12 Jun 2024 00:50:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718178655; cv=pass; d=google.com; s=arc-20160816; b=r9FIyts47reStq7LkM4ZwojCIUFqAY64hrcdnSAiavZWr2xHlPRLwGH7x32Fluu2A/ AS204htlWiIyBsWawBgNL0k1XV1UbQey2kSo1aGe91+kw34qT3L0311foDZnWsgdN9Cw 7aTNezbDq7mUoUrsB9JyxCFD5o0LYmffKkZAi36oN817rP+2LJOA8B20u7LCY4pki46B qURaNwdztrn/fIJlDJRZbMQbCNFquI7wDommEcqhzPUCfyBf8x9jC8BgEnn8IDGyK6hs 4nQAF9+3tr+5pFVIpQ7UQKM9jUaI8SCv0JI1ia/3ghACPcSrk6N5pnoHLSlTWucTd2/l Rj6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=a6GIpVOdJiR3MRab3lILOz+mNYVouRDpopjjgMvEJfs=; fh=U25708yTxdLdXktMUYFyMb7Av9DqQqgUyRGGts3MkQ0=; b=UsedV927UoTPs9IUNHoPAVfMvk0P0rwQ1tgqZeKGe5SRSJSndfzY3Bjdl9/mJw8you pxNcdsIaOtdC3nQqma8CGRvAbGj/+65hEoQAi244H82u+Q3vBeKK2OKuBjvsLECeyPzR 3zpkLjOfr+qr82JpPdrZikn0IUL7mjk3a9IXONQ2ggKnh8aPOdBPB0PHrc3DIGCesC1U 6q27dc8gnBjnH1MWyL8AOgYflVb26tVetOxdgG1bsY94Nwvpcwd+DRTpMkUYrDq6EO0/ Tg3IkIfI7N9CaYFaZcyqdDoyAuDzpaltR15p1PUG3eLHhj832bMohKdhu0lU3100hdWg bT3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bCkD3cG9; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211103-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd831c78si73195355ad.627.2024.06.12.00.50.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 00:50:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bCkD3cG9; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211103-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CF9F528295B for ; Wed, 12 Jun 2024 07:50:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0888216C69A; Wed, 12 Jun 2024 07:50:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bCkD3cG9" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 8005616B736 for ; Wed, 12 Jun 2024 07:50:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718178650; cv=none; b=G1jJgTZ43a2QxogKiUwPR9fghPX4gorIRl8TDfNNCtitk5RSO5/PEg2yVNQF0zJ2/T//qxTukFPKujwOMdasZR9iQ1oO9y/J1jxjdWlUnot6aD+bjTlDmM9AXe2jpSYoJeuy9ubUO6KxBixwMT4AUPoP+oelh5VsDLZPKYnyKA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718178650; c=relaxed/simple; bh=6j5nmVN4/w954+EEjbFJDKGz9HKp0nWVC4rClE8nQ8M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XK4FKNY2mheA7kGxEvM5GlEqlqjVIYM/daiO/aJsVXjBubUeJ//KGyLa3N3Xsn0VFssER+TeYZnLvvCrcKBlpM6rE66ieTt6Z68sfUIBqLUHqzcZQT/mydD2pQAT4lkN3O5f8v5KUBoJy8cMJ1YMe+dnK7aT5KeS15//SzcNNKQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=bCkD3cG9; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718178647; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a6GIpVOdJiR3MRab3lILOz+mNYVouRDpopjjgMvEJfs=; b=bCkD3cG9ZfnqXJ3AQc4aXpbnfdgGIL3bA5Gh+UKN//XwGF4GlJKcHFd+hbp7fo/W0TjoLY SFV2ZNOOdFgm0KsRb9ZEDwIpOCoTcC8Oh0Gn/p0ifZjrHwjFpmHTd0Wwa2AFTcR96bbjAu NSWfpBOsIJyT2HGJ2j0Qb5UxJiFcCHU= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-117-DoC-gBKDNa-qxr4Nxyi01Q-1; Wed, 12 Jun 2024 03:50:39 -0400 X-MC-Unique: DoC-gBKDNa-qxr4Nxyi01Q-1 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C688F19560B2; Wed, 12 Jun 2024 07:50:37 +0000 (UTC) Received: from localhost (unknown [10.43.135.229]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4E1A119560AF; Wed, 12 Jun 2024 07:50:35 +0000 (UTC) Date: Wed, 12 Jun 2024 09:50:26 +0200 From: Miroslav Lichvar To: Richard Cochran Cc: =?iso-8859-1?B?Q3Pza+FzLA==?= Bence , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, =?iso-8859-1?Q?Szentendrei=2C_Tam=E1s?= , Alexandre Belloni Subject: Re: [RFC PATCH v2] rtc: pcf2127: Add PPS capability through Seconds Interrupt Message-ID: References: <20240611150458.684349-1-csokas.bence@prolan.hu> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 On Tue, Jun 11, 2024 at 10:06:39PM -0700, Richard Cochran wrote: > On Tue, Jun 11, 2024 at 05:04:57PM +0200, Cs?k?s, Bence wrote: > > > PCF2127/29/31 is capable of generating an interrupt on every > > second (SI) or minute (MI) change. It signals this through > > the Minute/Second Flag (MSF) as well, which needs to be cleared. > > This is a RFC, and my comment is that a PPS from an RTC is not useful > to the Linux kernel. I think a TCXO-based RTC can be useful to user space to improve holdover performance with NTP/PTP. There already is the RTC_UIE_ON ioctl to enable interrupts and receive them in user space. The advantage of the PPS device over the ioctl would be more accurate timestamping (kernel vs user-space). Should PPS be supported, it would be nice if it worked generally with all drivers that support RTC_UIE_ON. -- Miroslav Lichvar