Re: [PATCH v2 1/2] rtc: wilco-ec: Remove yday and wday calculations

2019-09-25 Thread Nick Crews
Hi Alexandre, Sorry to be a pain, but I passed this by some other Chrome OS kernel engineers, and when the HW gives a bogus time we want logging at a more severe level than the dev_dbg() call in the core, so I'm going to send another revision. It's going to require duplicated calls to

Re: [PATCH v2 1/2] rtc: wilco-ec: Remove yday and wday calculations

2019-09-23 Thread Alexandre Belloni
On 23/09/2019 11:20:42-0600, Nick Crews wrote: > > This is coming from struct tm, it is part of C89 but I think I was not > > born when this decision was made. man rtc properly reports that those > > fields are unused and no userspace tools are actually making use of > > them. Nobody cares about

Re: [PATCH v2 1/2] rtc: wilco-ec: Remove yday and wday calculations

2019-09-23 Thread Nick Crews
On Sun, Sep 22, 2019 at 1:05 PM Alexandre Belloni wrote: > > On 22/09/2019 18:13:06+0200, Pavel Machek wrote: > > On Mon 2019-09-16 12:12:15, Nick Crews wrote: > > > The tm_yday and tm_wday fields are not used by userspace, > > > so since they aren't needed within the driver, don't > > > bother

Re: [PATCH v2 1/2] rtc: wilco-ec: Remove yday and wday calculations

2019-09-22 Thread Alexandre Belloni
On 22/09/2019 18:13:06+0200, Pavel Machek wrote: > On Mon 2019-09-16 12:12:15, Nick Crews wrote: > > The tm_yday and tm_wday fields are not used by userspace, > > so since they aren't needed within the driver, don't > > bother calculating them. This is especially needed since > > the

Re: [PATCH v2 1/2] rtc: wilco-ec: Remove yday and wday calculations

2019-09-22 Thread Pavel Machek
On Mon 2019-09-16 12:12:15, Nick Crews wrote: > The tm_yday and tm_wday fields are not used by userspace, > so since they aren't needed within the driver, don't > bother calculating them. This is especially needed since > the rtc_year_days() call was crashing if the HW returned > an invalid time.

[PATCH v2 1/2] rtc: wilco-ec: Remove yday and wday calculations

2019-09-16 Thread Nick Crews
The tm_yday and tm_wday fields are not used by userspace, so since they aren't needed within the driver, don't bother calculating them. This is especially needed since the rtc_year_days() call was crashing if the HW returned an invalid time. Signed-off-by: Nick Crews ---