]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: spear: fix spear_rtc_read_time
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 9 Mar 2022 16:22:52 +0000 (17:22 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 23 Mar 2022 18:58:40 +0000 (19:58 +0100)
commite78771e95ab8bcbe64de9db9a40a454d36dd5802
tree81b106c3915155234fd5a46a6076158f6ac0e056
parent0c3b81b78ad5b79ecdad69f291f74ac4f3056efc
rtc: spear: fix spear_rtc_read_time

The reference manual doesn't specify whether the registers are latched and
they probably aren't, ensure the read time and date are consistent.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20220309162301.61679-21-alexandre.belloni@bootlin.com
drivers/rtc/rtc-spear.c