From: Hugo Villeneuve <hugo@hugovil.com>
To: Hugo Villeneuve <hugo@hugovil.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>,
Hugo Villeneuve <hvilleneuve@dimonoff.com>,
linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] rtc: add BSM flags descriptions
Date: Thu, 12 Mar 2026 13:51:45 -0400 [thread overview]
Message-ID: <20260312135145.d37cfddb9317018de436bbd0@hugovil.com> (raw)
In-Reply-To: <20260113100427.f2162f0d5ba80a259511f9d2@hugovil.com>
On Tue, 13 Jan 2026 10:04:27 -0500
Hugo Villeneuve <hugo@hugovil.com> wrote:
> On Mon, 21 Jul 2025 11:33:31 -0400
> Hugo Villeneuve <hugo@hugovil.com> wrote:
>
> > From: Hugo Villeneuve <hvilleneuve@dimonoff.com>
> >
> > It is hard to decipher what the RTC BSM flags mean, so add
> > meaningful descriptions.
> >
> > Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
> > ---
> > include/uapi/linux/rtc.h | 11 ++++++++---
> > 1 file changed, 8 insertions(+), 3 deletions(-)
> >
> > diff --git a/include/uapi/linux/rtc.h b/include/uapi/linux/rtc.h
> > index 97aca4503a6a..da65130e316d 100644
> > --- a/include/uapi/linux/rtc.h
> > +++ b/include/uapi/linux/rtc.h
> > @@ -141,10 +141,15 @@ struct rtc_param {
> > #define RTC_PARAM_CORRECTION 1
> > #define RTC_PARAM_BACKUP_SWITCH_MODE 2
> >
> > +/* Backup switch mode */
> > #define RTC_BSM_DISABLED 0
> > -#define RTC_BSM_DIRECT 1
> > -#define RTC_BSM_LEVEL 2
> > -#define RTC_BSM_STANDBY 3
> > +#define RTC_BSM_DIRECT 1 /* Switch if Vbackup > Vdd */
> > +#define RTC_BSM_LEVEL 2 /* Switch based on a threshold, usually with an hysteresis */
> > +#define RTC_BSM_STANDBY 3 /*
> > + * Switch if Vdd > Vbackup.
> > + * Useful to ensure the RTC doesn't draw any
> > + * power until the device is first powered on.
> > + */
> >
> > #define RTC_MAX_FREQ 8192
>
> Ping?
Ping, Ping?
--
Hugo Villeneuve
prev parent reply other threads:[~2026-03-12 17:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-21 15:33 [PATCH] rtc: add BSM flags descriptions Hugo Villeneuve
2026-01-13 15:04 ` Hugo Villeneuve
2026-03-12 17:51 ` Hugo Villeneuve [this message]
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=20260312135145.d37cfddb9317018de436bbd0@hugovil.com \
--to=hugo@hugovil.com \
--cc=alexandre.belloni@bootlin.com \
--cc=hvilleneuve@dimonoff.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox