[rtc-linux] [PATCH] RTC/PCF85063: fix reading/setting time/date
From: Juergen Borleis <hidden>
Date: 2015-12-07 13:49:32
Also in:
lkml
The PCF85063 RTC needs special treatment while setting or reading the time/date: - while reading the 7 time/date registers they are blocked from updating by the one second pulse internally. So reading all time/date registers should happen in one turn to ensure reading is an atomic operation - to let setting the time/date be an atomic operation as well, the clock dividers must be kept in reset state to avoid a one second pulse during writing the 7 time/date registers Patch 1 and 2 change reading the time/date. I have kept them separately for easier review. Squasching both into one patch render it more or less unreadable. Patch 3 changes setting the time/date. Comments are welcome Juergen Please keep me on CC as I'm not subscribed to the list. -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.