Re: [PATCH] clocksource/drivers/timer_sun5i: Replace code by clocksource_mmio_init

2015-11-12 Thread Daniel Lezcano
On 11/12/2015 07:08 PM, Maxime Ripard wrote: Hi Daniel, On Thu, Nov 12, 2015 at 06:11:18PM +0100, Daniel Lezcano wrote: The current code to initialize, register and read the clocksource is already factored out in mmio.c via the clocksource_mmio_init function. The only difference is the readl v

Re: [PATCH] clocksource/drivers/timer_sun5i: Replace code by clocksource_mmio_init

2015-11-12 Thread Maxime Ripard
Hi Daniel, On Thu, Nov 12, 2015 at 06:11:18PM +0100, Daniel Lezcano wrote: > The current code to initialize, register and read the clocksource is > already factored out in mmio.c via the clocksource_mmio_init function. > > The only difference is the readl vs readl_relaxed. > > Factor out the cod

[PATCH] clocksource/drivers/timer_sun5i: Replace code by clocksource_mmio_init

2015-11-12 Thread Daniel Lezcano
The current code to initialize, register and read the clocksource is already factored out in mmio.c via the clocksource_mmio_init function. The only difference is the readl vs readl_relaxed. Factor out the code with the clocksource_mmio_init function. Signed-off-by: Daniel Lezcano --- drivers/