Re: [PATCH 06/13] clocksource: add common mmio clocksource

2011-05-12 Thread Tony Lindgren
* Russell King - ARM Linux li...@arm.linux.org.uk [110510 01:44]: On Tue, May 10, 2011 at 10:38:41AM +0200, Sascha Hauer wrote: You forgot to initialize cs-reg. With this: Damnit. Fixed. Tested-by: Sascha Hauer s.ha...@pengutronix.de With cs-reg initialization and

Re: [PATCH 06/13] clocksource: add common mmio clocksource

2011-05-12 Thread Thomas Gleixner
On Tue, 10 May 2011, Russell King - ARM Linux wrote: Add a generic mmio clocksource, covering both 32-bit and 16-bit register access sizes, for up or down counters. This can be used to easily create clocksources for simple counter-based implementations. Cc: Alessandro Rubini

Re: [PATCH 06/13] clocksource: add common mmio clocksource

2011-05-11 Thread viresh kumar
On 05/10/2011 12:59 PM, Russell King - ARM Linux wrote: Add a generic mmio clocksource, covering both 32-bit and 16-bit register access sizes, for up or down counters. This can be used to easily create clocksources for simple counter-based implementations. Cc: Alessandro Rubini

[PATCH 06/13] clocksource: add common mmio clocksource

2011-05-10 Thread Russell King - ARM Linux
Add a generic mmio clocksource, covering both 32-bit and 16-bit register access sizes, for up or down counters. This can be used to easily create clocksources for simple counter-based implementations. Cc: Alessandro Rubini rub...@unipv.it Cc: Colin Cross ccr...@android.com Cc: Eric Miao

Re: [PATCH 06/13] clocksource: add common mmio clocksource

2011-05-10 Thread Sascha Hauer
On Tue, May 10, 2011 at 08:29:18AM +0100, Russell King - ARM Linux wrote: Add a generic mmio clocksource, covering both 32-bit and 16-bit register access sizes, for up or down counters. This can be used to easily create clocksources for simple counter-based implementations. Cc: Alessandro

Re: [PATCH 06/13] clocksource: add common mmio clocksource

2011-05-10 Thread Russell King - ARM Linux
On Tue, May 10, 2011 at 10:38:41AM +0200, Sascha Hauer wrote: You forgot to initialize cs-reg. With this: Damnit. Fixed. Tested-by: Sascha Hauer s.ha...@pengutronix.de Thanks. -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to

Re: [PATCH 06/13] clocksource: add common mmio clocksource

2011-05-10 Thread Russell King - ARM Linux
On Tue, May 10, 2011 at 08:29:18AM +0100, Russell King - ARM Linux wrote: +cycle_t clocksource_mmio_readl_up(struct clocksource *c) +{ + return readl_relaxed(to_mmio_clksrc(c)-reg); +} + +cycle_t clocksource_mmio_readl_down(struct clocksource *c) +{ + return