Re: [PATCH] clocksource: sun4i: Clear interrupts after stopping timer in probe function

2016-07-26 Thread Thomas Gleixner
On Tue, 26 Jul 2016, Chen-Yu Tsai wrote: > On Tue, Jul 26, 2016 at 1:49 PM, Maxime Ripard > wrote: > > On Tue, Jul 26, 2016 at 11:01:59AM +0800, Chen-Yu Tsai wrote: > >> The bootloader (U-boot) sometimes uses this timer for various delays. > >> It uses it as a

Re: [PATCH] clocksource: sun4i: Clear interrupts after stopping timer in probe function

2016-07-26 Thread Thomas Gleixner
On Tue, 26 Jul 2016, Chen-Yu Tsai wrote: > On Tue, Jul 26, 2016 at 1:49 PM, Maxime Ripard > wrote: > > On Tue, Jul 26, 2016 at 11:01:59AM +0800, Chen-Yu Tsai wrote: > >> The bootloader (U-boot) sometimes uses this timer for various delays. > >> It uses it as a ongoing counter, and does

Re: [PATCH] clocksource: sun4i: Clear interrupts after stopping timer in probe function

2016-07-26 Thread Chen-Yu Tsai
On Tue, Jul 26, 2016 at 1:49 PM, Maxime Ripard wrote: > On Tue, Jul 26, 2016 at 11:01:59AM +0800, Chen-Yu Tsai wrote: >> The bootloader (U-boot) sometimes uses this timer for various delays. >> It uses it as a ongoing counter, and does comparisons on the current

Re: [PATCH] clocksource: sun4i: Clear interrupts after stopping timer in probe function

2016-07-26 Thread Chen-Yu Tsai
On Tue, Jul 26, 2016 at 1:49 PM, Maxime Ripard wrote: > On Tue, Jul 26, 2016 at 11:01:59AM +0800, Chen-Yu Tsai wrote: >> The bootloader (U-boot) sometimes uses this timer for various delays. >> It uses it as a ongoing counter, and does comparisons on the current >> counter value. The timer

Re: [PATCH] clocksource: sun4i: Clear interrupts after stopping timer in probe function

2016-07-25 Thread Maxime Ripard
On Tue, Jul 26, 2016 at 11:01:59AM +0800, Chen-Yu Tsai wrote: > The bootloader (U-boot) sometimes uses this timer for various delays. > It uses it as a ongoing counter, and does comparisons on the current > counter value. The timer counter is never stopped. > > In some cases when the user

Re: [PATCH] clocksource: sun4i: Clear interrupts after stopping timer in probe function

2016-07-25 Thread Maxime Ripard
On Tue, Jul 26, 2016 at 11:01:59AM +0800, Chen-Yu Tsai wrote: > The bootloader (U-boot) sometimes uses this timer for various delays. > It uses it as a ongoing counter, and does comparisons on the current > counter value. The timer counter is never stopped. > > In some cases when the user

[PATCH] clocksource: sun4i: Clear interrupts after stopping timer in probe function

2016-07-25 Thread Chen-Yu Tsai
The bootloader (U-boot) sometimes uses this timer for various delays. It uses it as a ongoing counter, and does comparisons on the current counter value. The timer counter is never stopped. In some cases when the user interacts with the bootloader, or lets it idle for some time before loading

[PATCH] clocksource: sun4i: Clear interrupts after stopping timer in probe function

2016-07-25 Thread Chen-Yu Tsai
The bootloader (U-boot) sometimes uses this timer for various delays. It uses it as a ongoing counter, and does comparisons on the current counter value. The timer counter is never stopped. In some cases when the user interacts with the bootloader, or lets it idle for some time before loading