Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3495917pxb; Mon, 4 Apr 2022 18:50:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFTL4YLTg9sqR+vAvc2ZclMcFA+6yGbPoOpuxsv3EjoeHaO/HEZpYdrQ5T/+fK5yabNsYY X-Received: by 2002:a17:903:2488:b0:153:8f59:8c03 with SMTP id p8-20020a170903248800b001538f598c03mr1171363plw.54.1649123422127; Mon, 04 Apr 2022 18:50:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649123422; cv=none; d=google.com; s=arc-20160816; b=duIVQdj0J1O/24E4u0H8HusI7XldRLQGm6gOm0L2dDvhel0f3tFcF0IcopJdBaF7Bj 1DgcRkq8C0vjuD9nFMtE4hAJtUj3QTgiF8wRt4xPNUAtQbt0yVx0elVCBlLP1JLGIOQx tBcdZBabGFfSFrpq2bn/gKyXesetXlaQrmEw0eTvn5yGHzdNRJez276LfguvsiVPXry3 7pY4UyyIEoCnTRvliBOowiAL7rQJRB1Itm1IfvWytE6SjuAmlSfHzkAEClPbNGbGMDVS mVvlQ6KTCXdg8pCQjSQ9NOl+5lDQ4eu9FEwVzPjCaURMQGGbRGVkgXoeTmyic3PbuXKX BEDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=r/HOAWD9NQve0+L1ZUrgJcxvj4WZhxF2ITTY20w8QMk=; b=g+dtpMrb4l0nNnqA+mJj/TS/H0BkaQWZxSOAa0c51lp4fzL/Ti4PIZtXoj/xcO/y08 cmG0YcldQ8C/mUXwQPXu6vLzAGWM8UP1ThK7OUul9a2w4sShvLkAzHH5ex1eKIihBMOF FRGTllwzX3jGacwbA7nvIuSElq09ICD90ZPB8N2Qc/Mq9f0dPBVjxNGoTPWU2ZNhquLP rSI9kMg2HU1v1NYzfs55FIHh5WCfo5a2ElR+jLKZyacr7nbe9u5bEeCHpCpJHOMgxfi7 4HZzV7rRJ0hZjKw2HAAXvsJkmgA2fVZ2v8RHfdJKQuIvf/rGLQKiEVWSTXKiHcaC7j/h LuWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jkzztuWa; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w14-20020a170902e88e00b00153ff064711si11885338plg.144.2022.04.04.18.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:50:22 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jkzztuWa; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ED7E33988BA; Mon, 4 Apr 2022 17:51:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350062AbiDAR23 (ORCPT + 99 others); Fri, 1 Apr 2022 13:28:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346717AbiDAR22 (ORCPT ); Fri, 1 Apr 2022 13:28:28 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7838C1DDFEC; Fri, 1 Apr 2022 10:26:37 -0700 (PDT) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 50DEFC0003; Fri, 1 Apr 2022 17:26:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1648833995; 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: in-reply-to:in-reply-to:references:references; bh=r/HOAWD9NQve0+L1ZUrgJcxvj4WZhxF2ITTY20w8QMk=; b=jkzztuWaNF9oeDSwd2ZW7StnstfMLQ+rd4rUWYvZ42+pxWpliYsgtBaPMfFqPLlvj1OV5U Qn5bCU5FotcshvJSeQBON8jMdI4XPJgZthg3SRv1QGzWo4tgchx0hKbNExew8MonW66wez ywxaqmLAXy9QxWrE1Kad+Ewci+U15uhhV+UYXFXF23AtRMuhTtqft7VQAWnfy1hDU5dpsm R7UnSmBzVx5EqN0vIlDyDN/J0CM1rOzvBe4dBy+cGAL9b8gDYrqv43pHN1OAN0gxtdlSlD 4f8SnvNdWRXfv6HerillumQH6a+D+ni1IUSPJBQlUjSwUXlGszyUk4FB/KQ+ig== Date: Fri, 1 Apr 2022 19:26:35 +0200 From: Alexandre Belloni To: Linus Torvalds Cc: linux-rtc@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [GIT PULL] RTC for 5.18 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On 01/04/2022 09:50:30-0700, Linus Torvalds wrote: > On Thu, Mar 31, 2022 at 3:21 PM Alexandre Belloni > wrote: > > > > Here is the RTC subsystem pull request for 5.18. The bulk of the patches > > are about replacing the uie_unsupported struct rtc_device member by a > > feature bit. > > Hmm. > > I've pulled this, but I don't see the point of the ALARM_RES_2S bit. > > In particular, I don't see it used anywhere, and the two drivers that > now set it clear both the UPDATE_INTERRUPT and ALARM features. > > So what's the point of that feature bit? > The features member is exposed to userspace which will be the main consumer in order to know what to expect from a particular RTC. ALARM_RES_2S could also be used to forbid setting the alarm for two consecutive seconds but this is not yet implemented as you observed. This is not the most pressing issue but currently it is allowed and you will not get any interrupt from the RTC for the second alarm so this is silently ignored. Note that these two are probably not the only ones that are affected, those are the ones I did test. Regards, -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com