]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtc: interface: Add RTC offset to alarm after fix-up
authorCsókás, Bence <csokas.bence@prolan.hu>
Wed, 19 Jun 2024 14:04:52 +0000 (16:04 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 6 Jul 2024 22:40:17 +0000 (00:40 +0200)
commit463927a8902a9f22c3633960119410f57d4c8920
treeec326aaf2486e8e418fa80c09e77fbfdd36cde9f
parent68f78c720da4088d254250867126c6ae5b68fa2a
rtc: interface: Add RTC offset to alarm after fix-up

`rtc_add_offset()` is called by `__rtc_read_time()`
and `__rtc_read_alarm()` to add the RTC's offset to
the raw read-outs from the device drivers. However,
in the latter case, a fix-up algorithm is run if
the RTC device does not report a full `struct rtc_time`
alarm value. In that case, the offset was forgot to be
added.

Fixes: fd6792bb022e ("rtc: fix alarm read and set offset")
Signed-off-by: Csókás, Bence <csokas.bence@prolan.hu>
Link: https://lore.kernel.org/r/20240619140451.2800578-1-csokas.bence@prolan.hu
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/interface.c