Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2430163pxb; Sun, 17 Oct 2021 14:53:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymQmGZguN/A9mxaeEjGnQ+8Qf6JwsVbzXD3FWlWrOFRb/M1bcZISluFzYDkT21en6xyWal X-Received: by 2002:a17:90a:bd08:: with SMTP id y8mr28684744pjr.123.1634507599606; Sun, 17 Oct 2021 14:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634507599; cv=none; d=google.com; s=arc-20160816; b=cHu41NUSZdO3fb46poXE/Z/+IJb3FnsFO+XMhNBwD++Tqozci+cSiZRTwEN9tqJuSV RlN5oTvM0aacLQVzmP3miTNuYrYLVQIqayr3YFW29QX+Zh331tkxDd0yInK2ADB7jogb e5GCUToDM9wvpvItXolaapf59UCiLduXDOkSKzl0J80xy106zMfZQmMNC3CgLCKmyPZd nEQhL+BBd5ZYMaQ+/Pu1uXYY3RZ/sLoNQhBaCKB0xL6IJ8SJ/fQ5L1RBBkOEGtCG4EWN 1ZhYxChqTibeU1F5SmKvRYg9KXLr7Suk7HZX4tOqyDJKoDMgqQlcjns9hbbpEDxnRUde moew== 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 :message-id:date:subject:cc:to:from; bh=9zSWL4Wt3xI4NLGWNrLIWok97qIvZwvC+v1h+l/ccqc=; b=WsalD3fSLlS9SSX8dhhgvQFnzCI0oZbimamWe8c7IUwGc8nlQRmYc0g/1Vvy5bqYe8 5H5s8+0KnUwjAhGw9OGGNXQ0678WO+F6p3AaSVimrgWJ22ZMP9SvJbv8SVYxEUh/YYNX hmEw+mrLBKJaF0N5hYlLn5LHfsXbdZF0+ghNDvJZgxV5eK2sZ2gCj4yzemkxvaSx/Jpu GstntwA0hk+k5+CRjX63sgegvc3swk89HWVCWKL7qI91tg9/D2oKpQvWRni6MT0jLXwt McwImwLiaoG7kSEctievpNCPkzY06EowcH3jWREp80MSMtPZ9yKbkE6B277qFLn2c/SB 5ISA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si17235335ply.116.2021.10.17.14.53.04; Sun, 17 Oct 2021 14:53:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238399AbhJOT2y (ORCPT + 99 others); Fri, 15 Oct 2021 15:28:54 -0400 Received: from mslow1.mail.gandi.net ([217.70.178.240]:38969 "EHLO mslow1.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238317AbhJOT2y (ORCPT ); Fri, 15 Oct 2021 15:28:54 -0400 Received: from relay9-d.mail.gandi.net (unknown [217.70.183.199]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 427DFD673B for ; Fri, 15 Oct 2021 19:21:47 +0000 (UTC) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 5A1E5FF802; Fri, 15 Oct 2021 19:21:25 +0000 (UTC) From: Alexandre Belloni To: Alessandro Zummo Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandre Belloni Subject: [PATCH 0/7] rtc: add new ioctl interface and BSM support Date: Fri, 15 Oct 2021 21:21:13 +0200 Message-Id: <20211015192121.817642-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds a new ioctl interface allowing to get and set extended parameters on RTCs. While its main goal is to support backup switch mode, it also intends to fix a long time issue. Until now, it was not possible to know what features were supported by an RTC before actually trying to make use of it and see that succeed or fail. In order to make tests more reliable and allow userspace to take the correct decision, the features are now exposed. Alexandre Belloni (7): rtc: add alarm related features rtc: add parameter ioctl rtc: expose correction feature rtc: add correction parameter rtc: add BSM parameter rtc: rv3028: add BSM support rtc: rv3032: allow setting BSM drivers/rtc/class.c | 3 ++ drivers/rtc/dev.c | 65 +++++++++++++++++++++++++++++++++ drivers/rtc/rtc-rv3028.c | 73 +++++++++++++++++++++++++++++++++++++ drivers/rtc/rtc-rv3032.c | 78 ++++++++++++++++++++++++++++++++++++++++ include/linux/rtc.h | 2 ++ include/uapi/linux/rtc.h | 33 +++++++++++++++-- 6 files changed, 252 insertions(+), 2 deletions(-) -- 2.31.1