diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2019-01-25 17:35:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-27 16:46:17 +0300 |
commit | 0b9eaf82c2a711fcd2c6d011bac59bbc7d26be83 (patch) | |
tree | 70ff6730ed4c35bf43801e38c42c3a2f7fda8172 /drivers/rtc/rtc-lp8788.c | |
parent | 391fd358568db5b98464b26c8fca0b2c03f6fef4 (diff) | |
download | linux-0b9eaf82c2a711fcd2c6d011bac59bbc7d26be83.tar.xz |
rtc: ds1307: rx8130: Fix alarm handling
[ Upstream commit 3f929cad943380370b6db31fcb7a38d898d91089 ]
When the EXTENSION.WADA bit is set, register 0x19 contains a bitmap of
week days, not a day of month. As Linux only handles a single alarm
without repetition using day of month is more flexible, so clear this
bit. (Otherwise a value depending on time.tm_wday would have to be
written to register 0x19.)
Also optimize setting the AIE bit to use a single register write instead
of a bulk write of three registers.
Fixes: ee0981be7704 ("rtc: ds1307: Add support for Epson RX8130CE")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/rtc/rtc-lp8788.c')
0 files changed, 0 insertions, 0 deletions