]> www.infradead.org Git - users/dwmw2/linux.git/commit
rtc: pcf2127: add BSM support
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 27 Jan 2025 16:27:28 +0000 (17:27 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 28 Jan 2025 23:42:29 +0000 (00:42 +0100)
commit97274527e8dc709bbb4c7cb44279a12d085da9ef
treea90fbbf79b2021187d3904c8d6ac4855a74526e3
parent58589c6a6e9ed8781eb8876ece5f4ef4c8dc3eed
rtc: pcf2127: add BSM support

The pcf2127 encodes BSM, BLD and power fail detection in the same set of
bits so it is necessary to do some calculation when changing BSM to keep
the rest of the configuration as-is. However, when BSM is disabled, there
is no configuration with BLD enabled so this will be lost when coming back
to a mode with BSM enabled.

Link: https://lore.kernel.org/r/20250127162728.86234-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcf2127.c