From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Alessandro Zummo <a.zummo@towertech.it>
Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org,
Alexandre Belloni <alexandre.belloni@bootlin.com>
Subject: [PATCH v2 0/7] rtc: add new ioctl interface and BSM support
Date: Mon, 18 Oct 2021 17:19:26 +0200 [thread overview]
Message-ID: <20211018151933.76865-1-alexandre.belloni@bootlin.com> (raw)
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.
Changes in v2:
- Fix rv3032 direct mode value
- return earlier once BSM is set
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 | 74 ++++++++++++++++++++++++++++++++++++++
drivers/rtc/rtc-rv3032.c | 76 ++++++++++++++++++++++++++++++++++++++++
include/linux/rtc.h | 2 ++
include/uapi/linux/rtc.h | 31 +++++++++++++++-
6 files changed, 250 insertions(+), 1 deletion(-)
--
2.31.1
next reply other threads:[~2021-10-18 15:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-18 15:19 Alexandre Belloni [this message]
2021-10-18 15:19 ` [PATCH v2 1/7] rtc: add alarm related features Alexandre Belloni
2021-10-18 15:19 ` [PATCH v2 2/7] rtc: add parameter ioctl Alexandre Belloni
2021-10-18 15:19 ` [PATCH v2 3/7] rtc: expose correction feature Alexandre Belloni
2021-10-18 15:19 ` [PATCH v2 4/7] rtc: add correction parameter Alexandre Belloni
2021-10-18 15:19 ` [PATCH v2 5/7] rtc: add BSM parameter Alexandre Belloni
2021-10-18 15:19 ` [PATCH v2 6/7] rtc: rv3028: add BSM support Alexandre Belloni
2021-10-18 15:19 ` [PATCH v2 7/7] rtc: rv3032: allow setting BSM Alexandre Belloni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211018151933.76865-1-alexandre.belloni@bootlin.com \
--to=alexandre.belloni@bootlin.com \
--cc=a.zummo@towertech.it \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.