Re: [PATCH] rtc: interface: set the next alarm event appropriately

2017-09-21 Thread Alexandre Belloni
Hi, On 21/09/2017 at 14:45:17 +0800, YiPing Xu wrote: > > > On 2017/9/20 17:16, Alexandre Belloni wrote: > > Hi, > > > > On 20/09/2017 at 11:22:31 +0800, Xu Yiping wrote: > > > From: Xu YiPing > > > > > > After commit 2b2f5ff00f63 ("rtc: interface: ignore expired

Re: [PATCH] rtc: interface: set the next alarm event appropriately

2017-09-21 Thread Alexandre Belloni
Hi, On 21/09/2017 at 14:45:17 +0800, YiPing Xu wrote: > > > On 2017/9/20 17:16, Alexandre Belloni wrote: > > Hi, > > > > On 20/09/2017 at 11:22:31 +0800, Xu Yiping wrote: > > > From: Xu YiPing > > > > > > After commit 2b2f5ff00f63 ("rtc: interface: ignore expired timers when > > > enqueuing

Re: [PATCH] rtc: interface: set the next alarm event appropriately

2017-09-21 Thread YiPing Xu
On 2017/9/20 17:16, Alexandre Belloni wrote: Hi, On 20/09/2017 at 11:22:31 +0800, Xu Yiping wrote: From: Xu YiPing After commit 2b2f5ff00f63 ("rtc: interface: ignore expired timers when enqueuing new timers"), the rtc_timer_enqueue will not reprogram the RTC when

Re: [PATCH] rtc: interface: set the next alarm event appropriately

2017-09-21 Thread YiPing Xu
On 2017/9/20 17:16, Alexandre Belloni wrote: Hi, On 20/09/2017 at 11:22:31 +0800, Xu Yiping wrote: From: Xu YiPing After commit 2b2f5ff00f63 ("rtc: interface: ignore expired timers when enqueuing new timers"), the rtc_timer_enqueue will not reprogram the RTC when there is any non-expired

Re: [PATCH] rtc: interface: set the next alarm event appropriately

2017-09-20 Thread YiPing Xu
Hi, On 2017/9/20 17:16, Alexandre Belloni wrote: Hi, On 20/09/2017 at 11:22:31 +0800, Xu Yiping wrote: From: Xu YiPing After commit 2b2f5ff00f63 ("rtc: interface: ignore expired timers when enqueuing new timers"), the rtc_timer_enqueue will not reprogram the RTC

Re: [PATCH] rtc: interface: set the next alarm event appropriately

2017-09-20 Thread YiPing Xu
Hi, On 2017/9/20 17:16, Alexandre Belloni wrote: Hi, On 20/09/2017 at 11:22:31 +0800, Xu Yiping wrote: From: Xu YiPing After commit 2b2f5ff00f63 ("rtc: interface: ignore expired timers when enqueuing new timers"), the rtc_timer_enqueue will not reprogram the RTC when there is any

Re: [PATCH] rtc: interface: set the next alarm event appropriately

2017-09-20 Thread Alexandre Belloni
Hi, On 20/09/2017 at 11:22:31 +0800, Xu Yiping wrote: > From: Xu YiPing > > After commit 2b2f5ff00f63 ("rtc: interface: ignore expired timers when > enqueuing new timers"), the rtc_timer_enqueue will not reprogram the RTC > when there is any non-expired timers in the

Re: [PATCH] rtc: interface: set the next alarm event appropriately

2017-09-20 Thread Alexandre Belloni
Hi, On 20/09/2017 at 11:22:31 +0800, Xu Yiping wrote: > From: Xu YiPing > > After commit 2b2f5ff00f63 ("rtc: interface: ignore expired timers when > enqueuing new timers"), the rtc_timer_enqueue will not reprogram the RTC > when there is any non-expired timers in the timerqueue. If we set a >

[PATCH] rtc: interface: set the next alarm event appropriately

2017-09-19 Thread Xu Yiping
From: Xu YiPing After commit 2b2f5ff00f63 ("rtc: interface: ignore expired timers when enqueuing new timers"), the rtc_timer_enqueue will not reprogram the RTC when there is any non-expired timers in the timerqueue. If we set a RTC_TIMER between now and the next

[PATCH] rtc: interface: set the next alarm event appropriately

2017-09-19 Thread Xu Yiping
From: Xu YiPing After commit 2b2f5ff00f63 ("rtc: interface: ignore expired timers when enqueuing new timers"), the rtc_timer_enqueue will not reprogram the RTC when there is any non-expired timers in the timerqueue. If we set a RTC_TIMER between now and the next non-expired timers, it won't go