Re: [PATCH v1 1/2] x86/rtc: Add option to skip using RTC

2019-08-26 Thread Tanwar, Rahul
Hi Andy, On 23/8/2019 8:56 PM, Andy Shevchenko wrote: get_wallclock() and set_wallclock() are function pointers of platform_ops which are initialized to mach_get_cmos_time() and mach_set_rtc_mmss() at init time. Since adding a new platform to override these functions is discouraged, so the

Re: [PATCH v1 1/2] x86/rtc: Add option to skip using RTC

2019-08-23 Thread Andy Shevchenko
On Fri, Aug 23, 2019 at 11:37:38AM +0800, Tanwar, Rahul wrote: > On 22/8/2019 9:04 PM, Andy Shevchenko wrote: > > On Thu, Aug 22, 2019 at 05:26:33PM +0800, Tanwar, Rahul wrote: > > > On 22/8/2019 5:02 PM, Andy Shevchenko wrote: > > > > On Thu, Aug 22, 2019 at 03:44:03PM +0800, Rahul Tanwar wrote: >

Re: [PATCH v1 1/2] x86/rtc: Add option to skip using RTC

2019-08-22 Thread Tanwar, Rahul
Hi Andy, On 22/8/2019 9:04 PM, Andy Shevchenko wrote: On Thu, Aug 22, 2019 at 05:26:33PM +0800, Tanwar, Rahul wrote: On 22/8/2019 5:02 PM, Andy Shevchenko wrote: On Thu, Aug 22, 2019 at 03:44:03PM +0800, Rahul Tanwar wrote: Use a newly introduced optional "status" property of "motorola,mc1468

Re: [PATCH v1 1/2] x86/rtc: Add option to skip using RTC

2019-08-22 Thread Andy Shevchenko
On Thu, Aug 22, 2019 at 05:26:33PM +0800, Tanwar, Rahul wrote: > On 22/8/2019 5:02 PM, Andy Shevchenko wrote: > > On Thu, Aug 22, 2019 at 03:44:03PM +0800, Rahul Tanwar wrote: > > > Use a newly introduced optional "status" property of "motorola,mc146818" > > > compatible DT node to determine if RTC

Re: [PATCH v1 1/2] x86/rtc: Add option to skip using RTC

2019-08-22 Thread Tanwar, Rahul
Hi Andy, On 22/8/2019 5:02 PM, Andy Shevchenko wrote: On Thu, Aug 22, 2019 at 03:44:03PM +0800, Rahul Tanwar wrote: Use a newly introduced optional "status" property of "motorola,mc146818" compatible DT node to determine if RTC is supported. Skip read/write from RTC device only when this node

Re: [PATCH v1 1/2] x86/rtc: Add option to skip using RTC

2019-08-22 Thread Andy Shevchenko
On Thu, Aug 22, 2019 at 03:44:03PM +0800, Rahul Tanwar wrote: > Use a newly introduced optional "status" property of "motorola,mc146818" > compatible DT node to determine if RTC is supported. Skip read/write from > RTC device only when this node is present and status is "disabled". In all > other c

[PATCH v1 1/2] x86/rtc: Add option to skip using RTC

2019-08-22 Thread Rahul Tanwar
Use a newly introduced optional "status" property of "motorola,mc146818" compatible DT node to determine if RTC is supported. Skip read/write from RTC device only when this node is present and status is "disabled". In all other cases, proceed as before. Suggested-by: Alan Cox Signed-off-by: Rahul