]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: pcf85063: fix time/date setting
authorJuergen Borleis <jbe@pengutronix.de>
Tue, 9 Feb 2016 10:57:27 +0000 (11:57 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 14 Mar 2016 16:08:17 +0000 (17:08 +0100)
commitd5c6dff294f86acd58bd3a34d7c4e0a50c6ce170
treebbfccf5b20e1ed35931e7d0aff550bb31dbf2099
parente21c05915634ae95fd2a79d2cd9b6a09cc977ff4
rtc: pcf85063: fix time/date setting

When setting a new time/date the RTC's clock must be stopped first, in
order to write the time/date registers in an atomic manner.
So, this change stops the clock first and then writes the time/date
registers and the clock control register (to re-enable the clock) in one
turn.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-pcf85063.c