]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita9c1ec63f71076befee76b0fd00d0df7746adb8d
tree8f252d9c2ad07b4fbb91a5a1def83b830cf9f6e5
parent557a7d56a95db4acc7a48c490d0c7d3262c7546f
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