RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-19 Thread Hiremath, Vaibhav
On Tue, Mar 13, 2012 at 17:07:16, Ming Lei wrote: > Hi, > > On Tue, Jan 24, 2012 at 7:38 AM, Kevin Hilman wrote: > > Vaibhav Hiremath writes: > > > >> OMAP device has 32k-sync timer which is currently used as a > >> clocksource in the kernel (omap2plus_defconfig). > >> The current implementation

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-19 Thread Ming Lei
On Mon, Mar 19, 2012 at 7:11 PM, Hiremath, Vaibhav wrote: > > I think you made very good point here. With the above patch, we are almost > missing the capability of registering dmtimer as a clocksource for OMAP. > It will always use 32k-counter, and never fall back to dmtimer. > > Then the only o

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-19 Thread Santosh Shilimkar
On Monday 19 March 2012 05:14 PM, Ming Lei wrote: > On Mon, Mar 19, 2012 at 7:11 PM, Hiremath, Vaibhav wrote: >> >> I think you made very good point here. With the above patch, we are almost >> missing the capability of registering dmtimer as a clocksource for OMAP. >> It will always use 32k-coun

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-21 Thread Hiremath, Vaibhav
On Mon, Mar 19, 2012 at 17:14:30, Ming Lei wrote: > On Mon, Mar 19, 2012 at 7:11 PM, Hiremath, Vaibhav wrote: > > > > I think you made very good point here. With the above patch, we are almost > > missing the capability of registering dmtimer as a clocksource for OMAP. > > It will always use 32k-

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-21 Thread Hiremath, Vaibhav
On Mon, Mar 19, 2012 at 17:45:32, Shilimkar, Santosh wrote: > On Monday 19 March 2012 05:14 PM, Ming Lei wrote: > > On Mon, Mar 19, 2012 at 7:11 PM, Hiremath, Vaibhav wrote: > >> > >> I think you made very good point here. With the above patch, we are almost > >> missing the capability of registe

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-21 Thread Shilimkar, Santosh
On Wed, Mar 21, 2012 at 5:12 PM, Hiremath, Vaibhav wrote: > On Mon, Mar 19, 2012 at 17:45:32, Shilimkar, Santosh wrote: >> On Monday 19 March 2012 05:14 PM, Ming Lei wrote: >> > On Mon, Mar 19, 2012 at 7:11 PM, Hiremath, Vaibhav wrote: >> >> >> >> I think you made very good point here. With the a

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-23 Thread Ming Lei
On Wed, Mar 21, 2012 at 7:29 PM, Hiremath, Vaibhav wrote: > On Mon, Mar 19, 2012 at 17:14:30, Ming Lei wrote: >> On Mon, Mar 19, 2012 at 7:11 PM, Hiremath, Vaibhav wrote: >> > >> > I think you made very good point here. With the above patch, we are almost >> > missing the capability of registeri

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-28 Thread Hiremath, Vaibhav
On Wed, Mar 21, 2012 at 19:30:01, Shilimkar, Santosh wrote: > On Wed, Mar 21, 2012 at 5:12 PM, Hiremath, Vaibhav wrote: > > On Mon, Mar 19, 2012 at 17:45:32, Shilimkar, Santosh wrote: > >> On Monday 19 March 2012 05:14 PM, Ming Lei wrote: > >> > On Mon, Mar 19, 2012 at 7:11 PM, Hiremath, Vaibhav

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-28 Thread Shilimkar, Santosh
On Wed, Mar 28, 2012 at 7:46 PM, Hiremath, Vaibhav wrote: > On Wed, Mar 21, 2012 at 19:30:01, Shilimkar, Santosh wrote: >> On Wed, Mar 21, 2012 at 5:12 PM, Hiremath, Vaibhav wrote: >> > On Mon, Mar 19, 2012 at 17:45:32, Shilimkar, Santosh wrote: >> >> On Monday 19 March 2012 05:14 PM, Ming Lei wr

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-28 Thread Hiremath, Vaibhav
On Wed, Mar 28, 2012 at 19:50:02, Shilimkar, Santosh wrote: > On Wed, Mar 28, 2012 at 7:46 PM, Hiremath, Vaibhav wrote: > > On Wed, Mar 21, 2012 at 19:30:01, Shilimkar, Santosh wrote: > >> On Wed, Mar 21, 2012 at 5:12 PM, Hiremath, Vaibhav wrote: > >> > On Mon, Mar 19, 2012 at 17:45:32, Shilimkar

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-28 Thread Shilimkar, Santosh
On Wed, Mar 28, 2012 at 8:07 PM, Hiremath, Vaibhav wrote: > On Wed, Mar 28, 2012 at 19:50:02, Shilimkar, Santosh wrote: >> On Wed, Mar 28, 2012 at 7:46 PM, Hiremath, Vaibhav wrote: >> > On Wed, Mar 21, 2012 at 19:30:01, Shilimkar, Santosh wrote: >> >> On Wed, Mar 21, 2012 at 5:12 PM, Hiremath, Va

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-29 Thread Hiremath, Vaibhav
On Wed, Mar 28, 2012 at 20:19:07, Shilimkar, Santosh wrote: > On Wed, Mar 28, 2012 at 8:07 PM, Hiremath, Vaibhav wrote: > > On Wed, Mar 28, 2012 at 19:50:02, Shilimkar, Santosh wrote: > >> On Wed, Mar 28, 2012 at 7:46 PM, Hiremath, Vaibhav wrote: > >> > On Wed, Mar 21, 2012 at 19:30:01, Shilimkar

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-29 Thread Hiremath, Vaibhav
On Fri, Mar 23, 2012 at 13:50:25, Ming Lei wrote: > On Wed, Mar 21, 2012 at 7:29 PM, Hiremath, Vaibhav wrote: > > On Mon, Mar 19, 2012 at 17:14:30, Ming Lei wrote: > >> On Mon, Mar 19, 2012 at 7:11 PM, Hiremath, Vaibhav wrote: > >> > > >> > I think you made very good point here. With the above pa

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-30 Thread Shilimkar, Santosh
On Fri, Mar 30, 2012 at 12:04 PM, Hiremath, Vaibhav wrote: > On Wed, Mar 28, 2012 at 20:19:07, Shilimkar, Santosh wrote: >> On Wed, Mar 28, 2012 at 8:07 PM, Hiremath, Vaibhav wrote: >> > On Wed, Mar 28, 2012 at 19:50:02, Shilimkar, Santosh wrote: >> >> On Wed, Mar 28, 2012 at 7:46 PM, Hiremath, V

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-30 Thread Hiremath, Vaibhav
On Fri, Mar 30, 2012 at 13:11:35, Shilimkar, Santosh wrote: > On Fri, Mar 30, 2012 at 12:04 PM, Hiremath, Vaibhav wrote: > > On Wed, Mar 28, 2012 at 20:19:07, Shilimkar, Santosh wrote: > >> On Wed, Mar 28, 2012 at 8:07 PM, Hiremath, Vaibhav wrote: > >> > On Wed, Mar 28, 2012 at 19:50:02, Shilimka

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-30 Thread Santosh Shilimkar
On Friday 30 March 2012 02:02 PM, Hiremath, Vaibhav wrote: > On Fri, Mar 30, 2012 at 13:11:35, Shilimkar, Santosh wrote: >> On Fri, Mar 30, 2012 at 12:04 PM, Hiremath, Vaibhav wrote: >>> On Wed, Mar 28, 2012 at 20:19:07, Shilimkar, Santosh wrote: On Wed, Mar 28, 2012 at 8:07 PM, Hiremath, Vai

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-30 Thread Hiremath, Vaibhav
On Fri, Mar 30, 2012 at 14:08:20, Shilimkar, Santosh wrote: > On Friday 30 March 2012 02:02 PM, Hiremath, Vaibhav wrote: > > On Fri, Mar 30, 2012 at 13:11:35, Shilimkar, Santosh wrote: > >> On Fri, Mar 30, 2012 at 12:04 PM, Hiremath, Vaibhav > >> wrote: > >>> On Wed, Mar 28, 2012 at 20:19:07, Shi

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-30 Thread Shilimkar, Santosh
On Fri, Mar 30, 2012 at 2:42 PM, Hiremath, Vaibhav wrote: > On Fri, Mar 30, 2012 at 14:08:20, Shilimkar, Santosh wrote: >> On Friday 30 March 2012 02:02 PM, Hiremath, Vaibhav wrote: >> > On Fri, Mar 30, 2012 at 13:11:35, Shilimkar, Santosh wrote: [] >> > >> > With this patch, will you be abl

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-30 Thread Hiremath, Vaibhav
On Fri, Mar 30, 2012 at 14:50:02, Shilimkar, Santosh wrote: > On Fri, Mar 30, 2012 at 2:42 PM, Hiremath, Vaibhav wrote: > > On Fri, Mar 30, 2012 at 14:08:20, Shilimkar, Santosh wrote: > >> On Friday 30 March 2012 02:02 PM, Hiremath, Vaibhav wrote: > >> > On Fri, Mar 30, 2012 at 13:11:35, Shilimkar

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-30 Thread Shilimkar, Santosh
On Fri, Mar 30, 2012 at 2:58 PM, Hiremath, Vaibhav wrote: > On Fri, Mar 30, 2012 at 14:50:02, Shilimkar, Santosh wrote: >> On Fri, Mar 30, 2012 at 2:42 PM, Hiremath, Vaibhav wrote: >> > On Fri, Mar 30, 2012 at 14:08:20, Shilimkar, Santosh wrote: >> >> On Friday 30 March 2012 02:02 PM, Hiremath, V

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-30 Thread Hiremath, Vaibhav
On Fri, Mar 30, 2012 at 15:12:19, Shilimkar, Santosh wrote: > On Fri, Mar 30, 2012 at 2:58 PM, Hiremath, Vaibhav wrote: > > On Fri, Mar 30, 2012 at 14:50:02, Shilimkar, Santosh wrote: > >> On Fri, Mar 30, 2012 at 2:42 PM, Hiremath, Vaibhav wrote: > >> > On Fri, Mar 30, 2012 at 14:08:20, Shilimkar

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-30 Thread Santosh Shilimkar
On Friday 30 March 2012 04:59 PM, Hiremath, Vaibhav wrote: > On Fri, Mar 30, 2012 at 15:12:19, Shilimkar, Santosh wrote: >> On Fri, Mar 30, 2012 at 2:58 PM, Hiremath, Vaibhav wrote: >>> On Fri, Mar 30, 2012 at 14:50:02, Shilimkar, Santosh wrote: On Fri, Mar 30, 2012 at 2:42 PM, Hiremath, Vaib

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-30 Thread Ming Lei
On Fri, Mar 30, 2012 at 5:20 PM, Shilimkar, Santosh > >> After Ming Lie's comment, the point that I came to my mind was, >> certainly there will be resolution difference between these two clocksources, >> if  gptimer2 is sourced from sys_ck (26Mhz). >> > GPTIMER2 with sysclock is not an option. GP

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-30 Thread Shilimkar, Santosh
On Sat, Mar 31, 2012 at 7:00 AM, Ming Lei wrote: > On Fri, Mar 30, 2012 at 5:20 PM, Shilimkar, Santosh >> >>> After Ming Lie's comment, the point that I came to my mind was, >>> certainly there will be resolution difference between these two >>> clocksources, >>> if  gptimer2 is sourced from sys

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-31 Thread Ming Lei
On Sat, Mar 31, 2012 at 2:30 PM, Shilimkar, Santosh > Since you need to recompile the kernel, you can very much tweak the > clocksource to use GPTIMER with sysl clock. Support for that is still > in place. With current kernel, running 'make menuconfig' can do it, but after applying Hiremath's patc

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-31 Thread Shilimkar, Santosh
On Sat, Mar 31, 2012 at 2:09 PM, Ming Lei wrote: > On Sat, Mar 31, 2012 at 2:30 PM, Shilimkar, Santosh >> Since you need to recompile the kernel, you can very much tweak the >> clocksource to use GPTIMER with sysl clock. Support for that is still >> in place. > > With current kernel, running 'make

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-31 Thread Ming Lei
On Sun, Apr 1, 2012 at 3:10 AM, Shilimkar, Santosh wrote: > On Sat, Mar 31, 2012 at 2:09 PM, Ming Lei wrote: >> On Sat, Mar 31, 2012 at 2:30 PM, Shilimkar, Santosh >>> Since you need to recompile the kernel, you can very much tweak the >>> clocksource to use GPTIMER with sysl clock. Support for t

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-31 Thread Shilimkar, Santosh
On Sun, Apr 1, 2012 at 7:09 AM, Ming Lei wrote: > On Sun, Apr 1, 2012 at 3:10 AM, Shilimkar, Santosh > wrote: >> On Sat, Mar 31, 2012 at 2:09 PM, Ming Lei wrote: >>> On Sat, Mar 31, 2012 at 2:30 PM, Shilimkar, Santosh Since you need to recompile the kernel, you can very much tweak the

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-02 Thread Kevin Hilman
"Shilimkar, Santosh" writes: [...] > I don't personally like to add features which hardly anybody use and > fundamentally broken with full kernel. Let's keep sane defaults, but not make it unreasonable to tweak eaither. I suggest what has already been mentioned. Register both timers, but have

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-02 Thread Shilimkar, Santosh
On Tue, Apr 3, 2012 at 12:05 AM, Kevin Hilman wrote: > "Shilimkar, Santosh" writes: > > [...] > >> I don't personally like to add features which hardly anybody use and >> fundamentally broken with full kernel. > > Let's keep sane defaults, but not make it unreasonable to tweak eaither. > Exactly.

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-03 Thread Hiremath, Vaibhav
On Tue, Apr 03, 2012 at 00:05:38, Hilman, Kevin wrote: > "Shilimkar, Santosh" writes: > > [...] > > > I don't personally like to add features which hardly anybody use and > > fundamentally broken with full kernel. > > Let's keep sane defaults, but not make it unreasonable to tweak eaither. > >

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-04 Thread Shilimkar, Santosh
On Tue, Apr 3, 2012 at 9:05 PM, Hiremath, Vaibhav wrote: > On Tue, Apr 03, 2012 at 00:05:38, Hilman, Kevin wrote: >> "Shilimkar, Santosh" writes: >> >> [...] >> >> > I don't personally like to add features which hardly anybody use and >> > fundamentally broken with full kernel. >> >> Let's keep s

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-04 Thread Hiremath, Vaibhav
On Wed, Apr 04, 2012 at 14:34:09, Shilimkar, Santosh wrote: > On Tue, Apr 3, 2012 at 9:05 PM, Hiremath, Vaibhav wrote: > > On Tue, Apr 03, 2012 at 00:05:38, Hilman, Kevin wrote: > >> "Shilimkar, Santosh" writes: > >> > >> [...] > >> > >> > I don't personally like to add features which hardly anyb

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-05 Thread Hiremath, Vaibhav
On Wed, Apr 04, 2012 at 16:09:51, Hiremath, Vaibhav wrote: > On Wed, Apr 04, 2012 at 14:34:09, Shilimkar, Santosh wrote: > > On Tue, Apr 3, 2012 at 9:05 PM, Hiremath, Vaibhav wrote: > > > On Tue, Apr 03, 2012 at 00:05:38, Hilman, Kevin wrote: > > >> "Shilimkar, Santosh" writes: > > >> > > >> [...

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-05 Thread Russell King - ARM Linux
On Thu, Apr 05, 2012 at 09:36:00AM +, Hiremath, Vaibhav wrote: > There seems to be limitation for ARM architecture, it is restricted by > sched_clock implementation present in "arch/arm/kernel/sched_clock.c". > Natively, clocksource framework does support change in rate/frequency for > register

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-05 Thread Hiremath, Vaibhav
On Thu, Apr 05, 2012 at 15:22:21, Russell King - ARM Linux wrote: > On Thu, Apr 05, 2012 at 09:36:00AM +, Hiremath, Vaibhav wrote: > > There seems to be limitation for ARM architecture, it is restricted by > > sched_clock implementation present in "arch/arm/kernel/sched_clock.c". > > Natively,

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-05 Thread Santosh Shilimkar
On Thursday 05 April 2012 04:01 PM, Hiremath, Vaibhav wrote: > On Thu, Apr 05, 2012 at 15:22:21, Russell King - ARM Linux wrote: >> On Thu, Apr 05, 2012 at 09:36:00AM +, Hiremath, Vaibhav wrote: >>> There seems to be limitation for ARM architecture, it is restricted by >>> sched_clock implement

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-05 Thread Kevin Hilman
"Hiremath, Vaibhav" writes: > On Thu, Apr 05, 2012 at 15:22:21, Russell King - ARM Linux wrote: >> On Thu, Apr 05, 2012 at 09:36:00AM +, Hiremath, Vaibhav wrote: >> > There seems to be limitation for ARM architecture, it is restricted by >> > sched_clock implementation present in "arch/arm/ke

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-05 Thread Hiremath, Vaibhav
On Fri, Apr 06, 2012 at 03:03:01, Hilman, Kevin wrote: > "Hiremath, Vaibhav" writes: > > > On Thu, Apr 05, 2012 at 15:22:21, Russell King - ARM Linux wrote: > >> On Thu, Apr 05, 2012 at 09:36:00AM +, Hiremath, Vaibhav wrote: > >> > There seems to be limitation for ARM architecture, it is rest

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-06 Thread Tony Lindgren
* Hiremath, Vaibhav [120405 22:25]: > On Fri, Apr 06, 2012 at 03:03:01, Hilman, Kevin wrote: > > > > What we need is only one-time selection at boot based on presence (or > > not) of various timers. IOW, we still only ever need to call > > setup_sched_clock() once based on which HW timers are av

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-06 Thread Kevin Hilman
"Hiremath, Vaibhav" writes: [...] > I liked Santosh's idea in using command line argument "clocksource=" and > make decision based on this. I have implemented it and tried it on both > OMAP3EVM and beaglebone and it works great. > > I have introduced something like this in mach-omap2/timer.c, >

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-08 Thread Hiremath, Vaibhav
On Fri, Apr 06, 2012 at 23:34:52, Tony Lindgren wrote: > * Hiremath, Vaibhav [120405 22:25]: > > On Fri, Apr 06, 2012 at 03:03:01, Hilman, Kevin wrote: > > > > > > What we need is only one-time selection at boot based on presence (or > > > not) of various timers. IOW, we still only ever need to

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-08 Thread Hiremath, Vaibhav
On Sat, Apr 07, 2012 at 02:48:47, Hilman, Kevin wrote: > "Hiremath, Vaibhav" writes: > > [...] > > > I liked Santosh's idea in using command line argument "clocksource=" and > > make decision based on this. I have implemented it and tried it on both > > OMAP3EVM and beaglebone and it works grea

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-09 Thread Jon Hunter
Hi Vaibhav, On 04/09/2012 01:19 AM, Hiremath, Vaibhav wrote: [...] Let me summarize it here again, Currently, the timer code is using config option CONFIG_OMAP_32K_TIMER, to choose between 32ksync counter and gptimer; it is compile time option. If user wants to use gptimer for HR ticks, he mu

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-09 Thread Hiremath, Vaibhav
On Tue, Apr 10, 2012 at 01:48:22, Hunter, Jon wrote: > Hi Vaibhav, > > On 04/09/2012 01:19 AM, Hiremath, Vaibhav wrote: > > [...] > > > Let me summarize it here again, > > > > Currently, the timer code is using config option CONFIG_OMAP_32K_TIMER, > > to choose between 32ksync counter and gptime

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-10 Thread Russell King - ARM Linux
On Mon, Apr 09, 2012 at 03:18:22PM -0500, Jon Hunter wrote: > True, but we would always want to use the 32k timer if CONFIG_PM is > specified. So what I am saying is that if a device has a 32ksync timer > and CONFIG_PM is defined, we always want to use the 32ksync timer and a > gptimer should

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-10 Thread Santosh Shilimkar
On Tuesday 10 April 2012 02:14 PM, Russell King - ARM Linux wrote: > On Mon, Apr 09, 2012 at 03:18:22PM -0500, Jon Hunter wrote: >> True, but we would always want to use the 32k timer if CONFIG_PM is >> specified. So what I am saying is that if a device has a 32ksync timer >> and CONFIG_PM is d

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-10 Thread Russell King - ARM Linux
On Tue, Apr 10, 2012 at 02:27:36PM +0530, Santosh Shilimkar wrote: > On Tuesday 10 April 2012 02:14 PM, Russell King - ARM Linux wrote: > > On Mon, Apr 09, 2012 at 03:18:22PM -0500, Jon Hunter wrote: > >> True, but we would always want to use the 32k timer if CONFIG_PM is > >> specified. So what

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-10 Thread Shilimkar, Santosh
On Tue, Apr 10, 2012 at 2:59 PM, Russell King - ARM Linux wrote: > On Tue, Apr 10, 2012 at 02:27:36PM +0530, Santosh Shilimkar wrote: >> On Tuesday 10 April 2012 02:14 PM, Russell King - ARM Linux wrote: >> > On Mon, Apr 09, 2012 at 03:18:22PM -0500, Jon Hunter wrote: >> >> True, but we would alwa

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-10 Thread Jon Hunter
On 04/10/2012 04:51 AM, Shilimkar, Santosh wrote: On Tue, Apr 10, 2012 at 2:59 PM, Russell King - ARM Linux wrote: On Tue, Apr 10, 2012 at 02:27:36PM +0530, Santosh Shilimkar wrote: On Tuesday 10 April 2012 02:14 PM, Russell King - ARM Linux wrote: On Mon, Apr 09, 2012 at 03:18:22PM -0500,

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-10 Thread Ming Lei
On Tue, Apr 10, 2012 at 5:51 PM, Shilimkar, Santosh wrote: > On Tue, Apr 10, 2012 at 2:59 PM, Russell King - ARM Linux > wrote: >> On Tue, Apr 10, 2012 at 02:27:36PM +0530, Santosh Shilimkar wrote: >>> On Tuesday 10 April 2012 02:14 PM, Russell King - ARM Linux wrote: >>> > On Mon, Apr 09, 2012 a

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-04-11 Thread Shilimkar, Santosh
On Wed, Apr 11, 2012 at 6:30 AM, Ming Lei wrote: > On Tue, Apr 10, 2012 at 5:51 PM, Shilimkar, Santosh > wrote: >> On Tue, Apr 10, 2012 at 2:59 PM, Russell King - ARM Linux >> wrote: >>> On Tue, Apr 10, 2012 at 02:27:36PM +0530, Santosh Shilimkar wrote: On Tuesday 10 April 2012 02:14 PM, Ru

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-01-23 Thread Kevin Hilman
Vaibhav Hiremath writes: > OMAP device has 32k-sync timer which is currently used as a > clocksource in the kernel (omap2plus_defconfig). > The current implementation uses compile time selection between > gp-timer and 32k-sync timer, which breaks multi-omap build for > the devices like AM33xx, wh

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-01-24 Thread Hiremath, Vaibhav
On Tue, Jan 24, 2012 at 05:08:50, Hilman, Kevin wrote: > Vaibhav Hiremath writes: > > > OMAP device has 32k-sync timer which is currently used as a > > clocksource in the kernel (omap2plus_defconfig). > > The current implementation uses compile time selection between > > gp-timer and 32k-sync tim

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-01-24 Thread Kevin Hilman
"Hiremath, Vaibhav" writes: > On Tue, Jan 24, 2012 at 05:08:50, Hilman, Kevin wrote: >> Vaibhav Hiremath writes: >> >> > OMAP device has 32k-sync timer which is currently used as a >> > clocksource in the kernel (omap2plus_defconfig). >> > The current implementation uses compile time selection

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-02-01 Thread Hiremath, Vaibhav
On Tue, Jan 24, 2012 at 23:17:56, Hilman, Kevin wrote: > "Hiremath, Vaibhav" writes: > > > On Tue, Jan 24, 2012 at 05:08:50, Hilman, Kevin wrote: > >> Vaibhav Hiremath writes: > >> > >> > OMAP device has 32k-sync timer which is currently used as a > >> > clocksource in the kernel (omap2plus_def

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-05 Thread Tony Lindgren
Hi, * Vaibhav Hiremath [120119 06:01]: > OMAP device has 32k-sync timer which is currently used as a > clocksource in the kernel (omap2plus_defconfig). > The current implementation uses compile time selection between > gp-timer and 32k-sync timer, which breaks multi-omap build for > the devices l

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-07 Thread Hiremath, Vaibhav
On Tue, Mar 06, 2012 at 04:25:30, Tony Lindgren wrote: > Hi, > > * Vaibhav Hiremath [120119 06:01]: > > OMAP device has 32k-sync timer which is currently used as a > > clocksource in the kernel (omap2plus_defconfig). > > The current implementation uses compile time selection between > > gp-timer

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-09 Thread Hiremath, Vaibhav
On Tue, Mar 06, 2012 at 04:25:30, Tony Lindgren wrote: > Hi, > > * Vaibhav Hiremath [120119 06:01]: > > OMAP device has 32k-sync timer which is currently used as a > > clocksource in the kernel (omap2plus_defconfig). > > The current implementation uses compile time selection between > > gp-timer

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-12 Thread Felipe Balbi
On Fri, Mar 09, 2012 at 05:58:00PM +, Hiremath, Vaibhav wrote: > On Tue, Mar 06, 2012 at 04:25:30, Tony Lindgren wrote: > > Hi, > > > > * Vaibhav Hiremath [120119 06:01]: > > > OMAP device has 32k-sync timer which is currently used as a > > > clocksource in the kernel (omap2plus_defconfig). >

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-12 Thread Hiremath, Vaibhav
On Mon, Mar 12, 2012 at 15:09:24, Balbi, Felipe wrote: > On Fri, Mar 09, 2012 at 05:58:00PM +, Hiremath, Vaibhav wrote: > > On Tue, Mar 06, 2012 at 04:25:30, Tony Lindgren wrote: > > > Hi, > > > > > > * Vaibhav Hiremath [120119 06:01]: > > > > OMAP device has 32k-sync timer which is currently

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-12 Thread Felipe Balbi
Hi, On Mon, Mar 12, 2012 at 09:48:20AM +, Hiremath, Vaibhav wrote: > On Mon, Mar 12, 2012 at 15:09:24, Balbi, Felipe wrote: > > On Fri, Mar 09, 2012 at 05:58:00PM +, Hiremath, Vaibhav wrote: > > > On Tue, Mar 06, 2012 at 04:25:30, Tony Lindgren wrote: > > > > Hi, > > > > > > > > * Vaibhav

RE: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-12 Thread Hiremath, Vaibhav
On Mon, Mar 12, 2012 at 15:47:58, Balbi, Felipe wrote: > Hi, > > On Mon, Mar 12, 2012 at 09:48:20AM +, Hiremath, Vaibhav wrote: > > On Mon, Mar 12, 2012 at 15:09:24, Balbi, Felipe wrote: > > > On Fri, Mar 09, 2012 at 05:58:00PM +, Hiremath, Vaibhav wrote: > > > > On Tue, Mar 06, 2012 at 04

Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

2012-03-13 Thread Ming Lei
Hi, On Tue, Jan 24, 2012 at 7:38 AM, Kevin Hilman wrote: > Vaibhav Hiremath writes: > >> OMAP device has 32k-sync timer which is currently used as a >> clocksource in the kernel (omap2plus_defconfig). >> The current implementation uses compile time selection between >> gp-timer and 32k-sync time