Re: [RFC PATCH 1/4] rtc: Introduce one interface to save the RTC hardware time range

2018-01-02 Thread Baolin Wang
Hi Alexandre, On 2 January 2018 at 15:47, Alexandre Belloni wrote: > Hi Baolin, > > Could you have a look at > https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git/commit/?h=rtc-ranges > > My approach has multiple advantages as it works for

Re: [RFC PATCH 1/4] rtc: Introduce one interface to save the RTC hardware time range

2018-01-02 Thread Baolin Wang
Hi Alexandre, On 2 January 2018 at 15:47, Alexandre Belloni wrote: > Hi Baolin, > > Could you have a look at > https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git/commit/?h=rtc-ranges > > My approach has multiple advantages as it works for 64-bit counters and > the range can be

Re: [RFC PATCH 1/4] rtc: Introduce one interface to save the RTC hardware time range

2018-01-01 Thread Alexandre Belloni
Hi Baolin, Could you have a look at https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git/commit/?h=rtc-ranges My approach has multiple advantages as it works for 64-bit counters and the range can be updated at runtime. On 02/01/2018 at 13:10:05 +0800, Baolin Wang wrote: > In order

Re: [RFC PATCH 1/4] rtc: Introduce one interface to save the RTC hardware time range

2018-01-01 Thread Alexandre Belloni
Hi Baolin, Could you have a look at https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git/commit/?h=rtc-ranges My approach has multiple advantages as it works for 64-bit counters and the range can be updated at runtime. On 02/01/2018 at 13:10:05 +0800, Baolin Wang wrote: > In order

[RFC PATCH 1/4] rtc: Introduce one interface to save the RTC hardware time range

2018-01-01 Thread Baolin Wang
In order to the setting time values are not beyond the limitation supported by RTC hardware, we introduce one interface to tell the hardware range to the RTC core, which are used to valid if the setting time values are in the RTC hardware range. Moreover we also need the RTC hardware range to

[RFC PATCH 1/4] rtc: Introduce one interface to save the RTC hardware time range

2018-01-01 Thread Baolin Wang
In order to the setting time values are not beyond the limitation supported by RTC hardware, we introduce one interface to tell the hardware range to the RTC core, which are used to valid if the setting time values are in the RTC hardware range. Moreover we also need the RTC hardware range to