Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp601618pxp; Wed, 9 Mar 2022 08:55:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRrlRTnKEsepYT32xy28NUqQg6GKTFqJLXGfaVQem8wetk74KbmD4fMvmbmK6z3jYoBKh3 X-Received: by 2002:aa7:c244:0:b0:416:46b:6237 with SMTP id y4-20020aa7c244000000b00416046b6237mr348183edo.139.1646844938418; Wed, 09 Mar 2022 08:55:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646844938; cv=none; d=google.com; s=arc-20160816; b=IZacb4JrvBHtdgpuskMLed9DB40QvRkobByL2PlDzvtOODqHE6yGSecq2m5d295tg9 OsNBgbFMG1ajJI7xzdJOj6KZVuHyUidMPfCLWUq/LNNCS4H14vXoXSsRU0lbvMHWE+CU IOEkxTILlZIMr3s2Iz/37GN0GbbGN2mo4VVaVyqiMGDXGMiLeLoxcb4yyAkUxw+ZpvUf bBcP8UKDDl8bXO8hfzFxb0wWoane1PTK8iPbQYDs1g6V8ySwGm4J0y7L5v8jBiHysyZ8 Rv5GPeJlFjRE4BsEbMEKsst8JqSXsrLQ7IpoQHnbGpPGn+hSKrC4avwTTrbNnicMqINM A8YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UxH83HRU2oCPvc3N63YEePHrI/31u162zdeP+Y/mXUU=; b=S4i/AE553UCWrzUVoN7Xs/W83Mj1zWsx88KqYcjn3sil/6eD9VFqZsi71KVlghSd8X tYn3D+kCBioy440bTuR28G6LnqRnKTq+zS+UALHnRkfR3iLbwlAzJi/WHx9Sa3S8VqJd HhUB/ObpZ+Ma42MGpVxgajV1VhcqXhRMDJc7GpNpV5TZz1ptcLwSEqFYH6vsIHRwZjjA Aq1dIbADVTNWxTFkNOARGtIku6ymQDEEXcrkhhNzKHY0v44LIafIcRGNQARPNNroyXfZ 9Xpx89U5OsxMEv7HqjqtsN3XLlPeDdZTQH+Bth1tbpoPkL3EaY6WxS8Bt+IxrQXueuMT SHEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=GeH+kNQX; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a056402070900b00410d469d75esi1721241edx.619.2022.03.09.08.55.14; Wed, 09 Mar 2022 08:55:38 -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=pass header.i=@bootlin.com header.s=gm1 header.b=GeH+kNQX; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235777AbiCIQgw (ORCPT + 99 others); Wed, 9 Mar 2022 11:36:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236709AbiCIQaJ (ORCPT ); Wed, 9 Mar 2022 11:30:09 -0500 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78F80CEA08; Wed, 9 Mar 2022 08:23:29 -0800 (PST) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 7FCBA2000E; Wed, 9 Mar 2022 16:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1646843004; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UxH83HRU2oCPvc3N63YEePHrI/31u162zdeP+Y/mXUU=; b=GeH+kNQXrgv7Sl+nvacBpCbP7Fkw48EK1JQ8flH73MOshjP+rKXU6a3lTN7C87I7f07hJ6 kq9QvjCV1+f9wLh4K39vIBNmKY7u5gsDXkC8G6YMsceSQoS9PrwkWpFJQ1APSS30ky9q0F z6roypWUrQvXgfC+s0lNkUWpAHyidbfJvqxBgEWud4rEWRxvvZs9tt67CZVIFn2Ow8bZ3t 3xNm0MxnBQza+oYmKO1g5tYjwgZ8Fsfe1IcvpabmxxRIURyXHTPXcHe4L2v152s8BHbArb gWV72Ja73pps/cYmMdzOmZGidGWwsu++Q6V/E3gS3NPOjPfKElyPyffIZ7McKg== From: Alexandre Belloni To: Alessandro Zummo , Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/29] rtc: pcf2127: set RTC_FEATURE_ALARM_RES_2S Date: Wed, 9 Mar 2022 17:22:42 +0100 Message-Id: <20220309162301.61679-11-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220309162301.61679-1-alexandre.belloni@bootlin.com> References: <20220309162301.61679-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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