]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: ingenic: Reset regulator register in probe
authorPaul Cercueil <paul@crapouillou.net>
Tue, 5 May 2020 22:13:36 +0000 (00:13 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 11 May 2020 14:35:05 +0000 (16:35 +0200)
commit7c6eee22ee4787ad7a08f59467d0939bd8182827
treee535d682ae9f85a062e5d59d68fdd4fa97564557
parent65b0a5043f4fd58654624a191963350a66571fdb
rtc: ingenic: Reset regulator register in probe

The regulator register specifies how many input clock cycles (minus one)
are contained in one tick of the 1 Hz clock.

Since this register can contain bogus values after the system boots, it
needs to be reset in the probe register, otherwise the RTC may count way
to slow or way too fast.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200505221336.222313-7-paul@crapouillou.net
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-jz4740.c