All of lore.kernel.org
 help / color / mirror / Atom feed
* [rtc-linux] [PATCH] RTC/PCF85063: fix reading/setting time/date
@ 2015-12-07 13:49 ` Juergen Borleis
  0 siblings, 0 replies; 18+ messages in thread
From: Juergen Borleis @ 2015-12-07 13:49 UTC (permalink / raw)
  To: rtc-linux; +Cc: Alessandro Zummo, Alexandre Belloni, linux-kernel, kernel

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.

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-01-21  0:04 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-07 13:49 [rtc-linux] [PATCH] RTC/PCF85063: fix reading/setting time/date Juergen Borleis
2015-12-07 13:49 ` Juergen Borleis
2015-12-07 13:49 ` [rtc-linux] [PATCH 1/3] RTC/PCF85063: fix time/date reading (part 1) Juergen Borleis
2015-12-07 13:49   ` Juergen Borleis
2015-12-07 13:49 ` [rtc-linux] [PATCH 2/3] RTC/PCF85063: fix time/date reading (part II) Juergen Borleis
2015-12-07 13:49   ` Juergen Borleis
2015-12-20 11:35   ` [rtc-linux] " Alexandre Belloni
2015-12-20 11:35     ` Alexandre Belloni
2016-01-07 10:12   ` [rtc-linux] " Juergen Borleis
2016-01-07 10:12     ` Juergen Borleis
2016-01-21  0:04     ` [rtc-linux] " Alexandre Belloni
2016-01-21  0:04       ` Alexandre Belloni
2015-12-07 13:49 ` [rtc-linux] [PATCH 3/3] RTC/PCF85063: fix time/date setting Juergen Borleis
2015-12-07 13:49   ` Juergen Borleis
2015-12-20 11:46   ` [rtc-linux] " Alexandre Belloni
2015-12-20 11:46     ` Alexandre Belloni
2016-01-07 10:13   ` [rtc-linux] " Juergen Borleis
2016-01-07 10:13     ` Juergen Borleis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.