Skip to content

rtc: add new ioctl interface and BSM support

Alexandre Belloni linux-rtc lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 0 repliesNew
  2. v17 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Fix rv3032 direct mode value
- return earlier once BSM is set

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7rtc: add alarm related featuresinclude/uapi/linux/rtc.h+3 -10 replies
2/7rtc: add parameter ioctldrivers/rtc/dev.c include/uapi/linux/rtc.h+58 -00 replies
3/7rtc: expose correction featuredrivers/rtc/class.c include/uapi/linux/rtc.h+5 -10 replies
4/7rtc: add correction parameterdrivers/rtc/dev.c include/uapi/linux/rtc.h+20 -00 replies
5/7rtc: add BSM parameterdrivers/rtc/dev.c include/linux/rtc.h include/uapi/linux/rtc.h+18 -30 replies
6/7rtc: rv3028: add BSM supportdrivers/rtc/rtc-rv3028.c+74 -00 replies
7/7rtc: rv3032: allow setting BSMdrivers/rtc/rtc-rv3032.c+76 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/7] rtc: add new ioctl interface and BSM support

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(-)
Signature · 1 line
2.31.1