]> 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)
commit4881a781c0f6cbd46fa8c012dee28c8f257c9bea
tree8f252d9c2ad07b4fbb91a5a1def83b830cf9f6e5
parentaf50ad7b96999ae90928807cf5407a6307349b0d
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