Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp602415pxp; Wed, 9 Mar 2022 08:56:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZqkkV/CRHCv3l4ilRr3qalbmUxrFov5ssKpx6nNxAnXztxyhRr9M9xQs+KI+0RsRS9wby X-Received: by 2002:a17:906:bc9b:b0:6da:9f90:a56a with SMTP id lv27-20020a170906bc9b00b006da9f90a56amr601665ejb.575.1646844996874; Wed, 09 Mar 2022 08:56:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646844996; cv=none; d=google.com; s=arc-20160816; b=ZNdC//TkgsW20sLoK2luaGxaN5WalVnvVCG01E3xGNlsZz353jqFdRZlPxSpOZ+bZD DYj3j9wtjs0ec2PHzO9yhJyn9KPtTmuN6QU73te+6HakXGJ6toof12SmrvdlytC4Prqg xigdYpcbVNu0XAqsL1VO6d/QKSjT/MpW38mDzBtfnhPNNQPdPqASoCyA/0ZFojP4812L Y4VLL0X/JQG5mGQafWAh3TIfCLW42DJyxMwWWzjEjlbU1Xq3gthw8oplXH7vsjqQHUDj oom+BCuAikqFXQStbgx1VxvQpFbpnk2QypIMFB9MW+RZx17OBjMryveookREPctvlPDP qc0A== 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=iBRIeLyR/4fuJk7gsuq+GGFfhXePuyoJiqkqDqgc92I=; b=UqsGGEwaij+RraGcEawMM/hxLkKxkCj3ojVwGMFgx7wRgN3SJs3qCX6FtnAQeCag2r SwKeCwyBsDicxNl4Kpk0Wrr/ehgcF4Z4lPjYGvsYVBe6ctYJLmmn74NCts5HGxs/RAAl VFsS9Ft8BzbXyY22j71weEaSM37VRoEIilmG9bzna1ZzzxIIJRrr965dFVApc+RGK1bf FomTu3Vn7sOsEm5Yj4eYBe3PxN6n3qyx/qmbAyZ9+ZSdtOQxDfP3rIQrCedSYdCCFfsw X7+bMDuVT5Xyzp0QXSY+GklvSGG9Sf3xf2l/krbeBWY47mUFSfm6/SHP97sr8IR1NYrw 2AsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=PSt5q9Xq; 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 dn7-20020a17090794c700b006da97c94c5asi1539993ejc.826.2022.03.09.08.56.13; Wed, 09 Mar 2022 08:56:36 -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=PSt5q9Xq; 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 S236709AbiCIQiI (ORCPT + 99 others); Wed, 9 Mar 2022 11:38:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236784AbiCIQaM (ORCPT ); Wed, 9 Mar 2022 11:30:12 -0500 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::225]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19F30DE2D4; Wed, 9 Mar 2022 08:23:37 -0800 (PST) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 96AE41C0008; Wed, 9 Mar 2022 16:23:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1646843013; 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=iBRIeLyR/4fuJk7gsuq+GGFfhXePuyoJiqkqDqgc92I=; b=PSt5q9XqkeLaILnZL/FbR+oGsJmMBzNQm2ELPayUQLyMANYfWZgGk7F4UMNJNo9R4T1KOf 2BmfDvETD2wgqTzG6/13VDpXtJJjutXlNIGTxDsj89iQ5aC3Ba9AVyZW0ISZuCUcvFfNEE 4gbav8vpeo+rLMpMiXBVqTxELXFh2bGzdqt1yBa/g8PIa0TW+j6C9mQyXZR5DftlIkuoMr 2Dxj8HgdWQV6Jf1SSXWikylz9HQLVd7dsA5UiEu2OHOpizzz6y8b+ZFq9+oldRvMcz+lgw 7Gt+hH18ARRsH0979LIRwXyCpDz5wBarneFUorE/nPvDAwNLeo353tsRBdTUtw== From: Alexandre Belloni To: Alessandro Zummo , Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 22/29] rtc: add new RTC_FEATURE_ALARM_WAKEUP_ONLY feature Date: Wed, 9 Mar 2022 17:22:53 +0100 Message-Id: <20220309162301.61679-22-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,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 Some RTCs have an IRQ pin that is not connected to a CPU interrupt but rather directly to a PMIC or power supply. In that case, it is still useful to be able to set alarms but we shouldn't expect interrupts. Signed-off-by: Alexandre Belloni --- include/uapi/linux/rtc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/rtc.h b/include/uapi/linux/rtc.h index 03e5b776e597..97aca4503a6a 100644 --- a/include/uapi/linux/rtc.h +++ b/include/uapi/linux/rtc.h @@ -133,7 +133,8 @@ struct rtc_param { #define RTC_FEATURE_UPDATE_INTERRUPT 4 #define RTC_FEATURE_CORRECTION 5 #define RTC_FEATURE_BACKUP_SWITCH_MODE 6 -#define RTC_FEATURE_CNT 7 +#define RTC_FEATURE_ALARM_WAKEUP_ONLY 7 +#define RTC_FEATURE_CNT 8 /* parameter list */ #define RTC_PARAM_FEATURES 0 -- 2.35.1