rtc: rv3028: ensure ram configuration registers are saved
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 9 Oct 2020 15:31:01 +0000 (17:31 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 15 Oct 2020 10:09:35 +0000 (12:09 +0200)
commit024e6f3dce9ef0bc61acc5b93bb1eba491e4f8d0
tree8f252d9c2ad07b4fbb91a5a1def83b830cf9f6e5
parentde0ad60e79e1ce563223b3fddf03fc19f606c6d4
rtc: rv3028: ensure ram configuration registers are saved

If RV3028_CTRL1_EERD is not set (this is the default), the RTC will refresh
the RAM configuration registers from the EEPROM at midnight. It is
necessary to save the RAM registers back to EEPROM after modifying them.

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