Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1819546pxp; Thu, 10 Mar 2022 12:50:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbomG9+F+yOJagjk4ridInxoFme/MHbheugLZibk/kriI+ObLtaINMxvDKc81kIRnA4JG3 X-Received: by 2002:a05:6402:d5d:b0:415:e9c0:cb63 with SMTP id ec29-20020a0564020d5d00b00415e9c0cb63mr6374420edb.326.1646945408764; Thu, 10 Mar 2022 12:50:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646945408; cv=none; d=google.com; s=arc-20160816; b=b/aDW/cTmZQk3heuBupiPGX1T6N5ce0/irP7NG8gO5RuGpFrKHIT0VcPWlX3JuTAn3 uH5EQA1ofIKVPnIyUqZglDGuRaA4OzRYH7rgLgxRcLlyV5Q8D/wOQkheZLuecMz7gd1s 78PA75WO0GRQRriHVsthclT3gpxf1FQAW2d02LnOTzkAU+R+tQvnAMY1yHtyPd5abRHV H3stfSu44EVIIrG6kNowti1SEwJcAev0arTHhoi6HDbdCxmy2q76+KLDg1nvMDBkoB1/ +5pRoX0JBAoFzVS4mAMg/B3uwkffOO5bCPSrj391AT3bSkigKxo+V/N0P5kER2BrMtet Lo8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:from:date:dkim-signature; bh=ga7LhQbUj0BJm9/YIp6vd9e5mI8wLFqKkHI6WlgR2iM=; b=ZtbK4XGDwtNLiof9mXuklxkHEck0mVlfBiXJJFifcUW7c2eCP4mF7jgL5EELA8tdMu 0S1+92Ga5tsbFi9vO6kHbYk3SQP5VTSJpIAECFK0gAZJyQYsuQQmgnhlhlGnFXRvG304 P9ddWfksocghQnDQw0me5grd8Q2MKE6bDrtMH90EEw3BCo3oiXJConQYgotfpCMAQmXh yqohoWmC0Be88fCHEuEQji5e0YbV4GH3ufB3gXCBAxv9lhxQaxlzfZJpWkBjgcvTpxnp g52bk3XUGsMRKaQD3k36+WtJwjW+o20k2Bvh+u/RJ9oKkDcYzGZ48mXO+OWSRLUSWdKy SqTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=jYcZ3D5y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a50e44b000000b0041081d62f81si4164070edm.557.2022.03.10.12.49.45; Thu, 10 Mar 2022 12:50:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=jYcZ3D5y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240754AbiCJQKc (ORCPT + 99 others); Thu, 10 Mar 2022 11:10:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240760AbiCJQK2 (ORCPT ); Thu, 10 Mar 2022 11:10:28 -0500 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9039818F21C; Thu, 10 Mar 2022 08:09:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:Content-Type:Mime-Version: References:In-Reply-To:Message-Id:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ga7LhQbUj0BJm9/YIp6vd9e5mI8wLFqKkHI6WlgR2iM=; b=jYcZ3D5y4UT3qqdPO2H11nxNoU gEgE6zKIL9/IrIFL6S9iqnEP4o0ovBh/Aqhj3XrIpsb5lrZ3IbSPMPy+ixz0rOILP7DLE6BC3JCci Lr5a0Nvmufb4+Ju8dV4ab7OQ/13t7g1AiQjUsR2HF0yaqby//ielf25EkUEyEF1Qr0GM=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:59680 helo=pettiford) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1nSLLr-0002a4-08; Thu, 10 Mar 2022 11:09:20 -0500 Date: Thu, 10 Mar 2022 11:09:18 -0500 From: Hugo Villeneuve To: Alexandre Belloni Cc: Alessandro Zummo , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: <20220310110918.41a681474f5a0e11abdedc39@hugovil.com> In-Reply-To: <20220309162301.61679-11-alexandre.belloni@bootlin.com> References: <20220309162301.61679-1-alexandre.belloni@bootlin.com> <20220309162301.61679-11-alexandre.belloni@bootlin.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 70.80.174.168 X-SA-Exim-Mail-From: hugo@hugovil.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Subject: Re: [PATCH 11/29] rtc: pcf2127: set RTC_FEATURE_ALARM_RES_2S X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 9 Mar 2022 17:22:42 +0100 Alexandre Belloni wrote: > The PCF2127 doesn't support UIE because setting an alarm to fire every > second confuses the chip and the fastest we can go is an alarm every 2 > seconds. Hi Alexandre, can you describe what "confuses the chip" means? In my experimental PCF2131 driver, I activated UIE and it seems to be working fine at 1s intervals, but since it is similar to PCF2127, maybe there is still a problem and I just didn't see it. Hugo. > Signed-off-by: Alexandre Belloni > --- > drivers/rtc/rtc-pcf2127.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/rtc/rtc-pcf2127.c b/drivers/rtc/rtc-pcf2127.c > index f8469b134411..63b275b014bd 100644 > --- a/drivers/rtc/rtc-pcf2127.c > +++ b/drivers/rtc/rtc-pcf2127.c > @@ -656,6 +656,7 @@ static int pcf2127_probe(struct device *dev, struct regmap *regmap, > pcf2127->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; > pcf2127->rtc->range_max = RTC_TIMESTAMP_END_2099; > pcf2127->rtc->set_start_time = true; /* Sets actual start to 1970 */ > + set_bit(RTC_FEATURE_ALARM_RES_2S, pcf2127->rtc->features); > clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, pcf2127->rtc->features); > clear_bit(RTC_FEATURE_ALARM, pcf2127->rtc->features); > > -- > 2.35.1 > -- Hugo Villeneuve