From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B104C433EF for ; Fri, 15 Oct 2021 19:26:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3ADCB61163 for ; Fri, 15 Oct 2021 19:26:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238426AbhJOT2z (ORCPT ); Fri, 15 Oct 2021 15:28:55 -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