Linux RTC
 help / color / mirror / Atom feed
* [rtc-linux] [PATCH v2] RTC/PCF85063: fix reading/setting time/date
@ 2016-02-09 10:57 Juergen Borleis
  2016-02-09 10:57 ` [rtc-linux] [PATCH v2 1/3] RTC/PCF85063: simplify code to read the current time Juergen Borleis
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Juergen Borleis @ 2016-02-09 10:57 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:

 - when 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

Changes from v1:

 - using high level I2C access functions instead of the low level i2c_transfer()
   to simplify the code

Comments are welcome
Juergen

Please keep me on CC since 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] 5+ messages in thread

end of thread, other threads:[~2016-02-23 23:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-09 10:57 [rtc-linux] [PATCH v2] RTC/PCF85063: fix reading/setting time/date Juergen Borleis
2016-02-09 10:57 ` [rtc-linux] [PATCH v2 1/3] RTC/PCF85063: simplify code to read the current time Juergen Borleis
2016-02-09 10:57 ` [rtc-linux] [PATCH v2 2/3] RTC/PCF85063: fix time/date reading Juergen Borleis
2016-02-09 10:57 ` [rtc-linux] [PATCH v2 3/3] RTC/PCF85063: fix time/date setting Juergen Borleis
2016-02-23 23:04 ` [rtc-linux] Re: [PATCH v2] RTC/PCF85063: fix reading/setting time/date Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox