Re: [PATCH 8/9] RFC: rtc: hctosys: support rtc_read_timeval() for high precision clocks

2013-06-14 Thread John Stultz
On 06/14/2013 09:52 AM, Alexander Holler wrote: Some RTCs do provide a higher precision than seconds. Add support for them by trying rtc_read_timeval() before using rtc_read_time() to get the time in the hctosys mechanism. [snip] + rc = rtc_read_timeval(rtc, ); + if (rc ||

[PATCH 8/9] RFC: rtc: hctosys: support rtc_read_timeval() for high precision clocks

2013-06-14 Thread Alexander Holler
Some RTCs do provide a higher precision than seconds. Add support for them by trying rtc_read_timeval() before using rtc_read_time() to get the time in the hctosys mechanism. Signed-off-by: Alexander Holler --- drivers/rtc/class.c | 35 --- 1 file changed, 24

[PATCH 8/9] RFC: rtc: hctosys: support rtc_read_timeval() for high precision clocks

2013-06-14 Thread Alexander Holler
Some RTCs do provide a higher precision than seconds. Add support for them by trying rtc_read_timeval() before using rtc_read_time() to get the time in the hctosys mechanism. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/rtc/class.c | 35 --- 1

Re: [PATCH 8/9] RFC: rtc: hctosys: support rtc_read_timeval() for high precision clocks

2013-06-14 Thread John Stultz
On 06/14/2013 09:52 AM, Alexander Holler wrote: Some RTCs do provide a higher precision than seconds. Add support for them by trying rtc_read_timeval() before using rtc_read_time() to get the time in the hctosys mechanism. [snip] + rc = rtc_read_timeval(rtc, tv); + if (rc ||