Re: [RESEND PATCH v3] rtc: cros-ec: return -ETIME when refused to set alarms in the past

2018-03-06 Thread Alexandre Belloni
On 27/02/2018 at 10:50:03 +0800, Jeffy Chen wrote: > Since accessing a Chrome OS EC based rtc is a slow operation, there is a > race window where if the alarm is set for the next second and the second > ticks over right before calculating the alarm offset. > > In this case the current driver is se

Re: [RESEND PATCH v3] rtc: cros-ec: return -ETIME when refused to set alarms in the past

2018-02-26 Thread Brian Norris
Hi Jeffy, On Mon, Feb 26, 2018 at 6:50 PM, Jeffy Chen wrote: > Since accessing a Chrome OS EC based rtc is a slow operation, there is a > race window where if the alarm is set for the next second and the second > ticks over right before calculating the alarm offset. > > In this case the current d