Re: [PATCH PM-QA] cputopology: add scheduler domain flag test

2015-02-27 Thread Mike Turquette
Quoting Vincent Guittot (2015-02-27 00:39:53) > On 27 February 2015 at 01:32, Mike Turquette wrote: > > Quoting Larry Bassel (2015-02-24 13:50:51) > >> On 24 Feb 15 21:53, Vincent Guittot wrote: > >> > On 8 February 2015 at 01:08, Larry Bassel > >> >

Re: [PATCH PM-QA] cputopology: add scheduler domain flag test

2015-02-26 Thread Mike Turquette
Quoting Larry Bassel (2015-02-24 13:50:51) > On 24 Feb 15 21:53, Vincent Guittot wrote: > > On 8 February 2015 at 01:08, Larry Bassel wrote: > > > +check_sched_domain_flags() { > > > + > > > +cpu_num=$1 > > > +domain_num=$2 > > > + > > > + > > > sched_domain_flags=/proc/sys/kernel/sche

Re: embedding html into the wiki

2013-09-03 Thread Mike Turquette
On Tue, Sep 3, 2013 at 5:56 PM, Mike Turquette wrote: > On Tue, Sep 3, 2013 at 5:03 PM, John Stultz wrote: >> On 09/03/2013 04:33 PM, Mike Turquette wrote: >>> On Tue, Sep 3, 2013 at 2:29 PM, Fathi Boudra >>> wrote: >>>> Hi Mike, >>>> &g

Re: embedding html into the wiki

2013-09-03 Thread Mike Turquette
On Tue, Sep 3, 2013 at 5:03 PM, John Stultz wrote: > On 09/03/2013 04:33 PM, Mike Turquette wrote: >> On Tue, Sep 3, 2013 at 2:29 PM, Fathi Boudra wrote: >>> Hi Mike, >>> >>> On 4 September 2013 00:09, Mike Turquette wrote: >>>> Hi all, >>&

Re: embedding html into the wiki

2013-09-03 Thread Mike Turquette
On Tue, Sep 3, 2013 at 2:29 PM, Fathi Boudra wrote: > Hi Mike, > > On 4 September 2013 00:09, Mike Turquette wrote: >> Hi all, >> >> I wanted to create a google doc spreadsheet for tracking some team >> activity and then embed in iframe for that spreadsheet in

embedding html into the wiki

2013-09-03 Thread Mike Turquette
Hi all, I wanted to create a google doc spreadsheet for tracking some team activity and then embed in iframe for that spreadsheet into the team wiki page. I tried adding something like the following: === Project Status === {{{#!html }}} Nothing shows up. I decided to try an easier test: === P

Re: Panda, Android & Bluetooth

2013-08-20 Thread Mike Turquette
Quoting Vishal Bhoj (2013-08-19 20:35:48) >  Even on ICS it was partially working. File transfer resulted in crashes on > 4.0.4. You can try this release which is based on 4.0.3 : > http://releases.linaro.org/12.03/android/leb-panda/ Great, thanks for pointer. > I am trying to get this build wor

Re: Panda, Android & Bluetooth

2013-08-19 Thread Mike Turquette
On Sat, Aug 17, 2013 at 11:55 PM, Andy Green wrote: > On 18 August 2013 14:41, Fathi Boudra wrote: >> Hey Mike, >> >> On 17 August 2013 20:07, Mike Turquette wrote: >>> On Thu, Aug 15, 2013 at 6:02 PM, Andy Green wrote: >>>> On 16 August 2013

Re: Panda, Android & Bluetooth

2013-08-17 Thread Mike Turquette
On Thu, Aug 15, 2013 at 6:02 PM, Andy Green wrote: > On 16 August 2013 08:22, Mike Turquette wrote: >> Hi all, >> >> I'm interested in looking at some Bluetooth stuff on my OMAP 4460 >> Panda ES. Looking at the bug reports I don't see any Jelly Bean >>

Panda, Android & Bluetooth

2013-08-15 Thread Mike Turquette
Hi all, I'm interested in looking at some Bluetooth stuff on my OMAP 4460 Panda ES. Looking at the bug reports I don't see any Jelly Bean releases that have BT working properly on Panda. Is this correct? Can you please point me to a release where BT and display/hdmi are working for Panda? It's OK

automated testing at ARM Summit

2013-08-05 Thread Mike Turquette
Hi all, There is currently a thread on LAKML that once again touches on the issue of automated build/boot testing: http://permalink.gmane.org/gmane.linux.ports.arm.kernel/257669 There seemed to be some good discussions between the LAVA team and Kevin at LCE13 and I wanted to make others are aware

automated build coverage

2013-05-09 Thread Mike Turquette
Hi all, I just wanted to forward this thread from LAKML to linaro-dev: http://article.gmane.org/gmane.linux.ports.tegra/10683 Seems there is lots desire for an improvement to automated build coverage and automated reporting along with it. Regards, Mike __

Re: [PATCH powerdebug] clock: show only active clocks

2013-05-06 Thread Mike Turquette
Quoting Sanjay Singh Rawat (2013-05-04 13:27:58) > - use the clk_summary file of CCF for showing clocks > - add option to show active or all clocks > > Signed-off-by: Sanjay Singh Rawat clk_dump gives a JSON-formatted description of the clock tree, so it is a bit more machine readable than clk_s

Re: [PATCH 1/1] clk: Add notifier support in clk_prepare/clk_unprepare

2013-03-28 Thread Mike Turquette
Quoting Colin Cross (2013-03-21 17:06:25) > On Thu, Mar 21, 2013 at 3:36 PM, Mike Turquette wrote: > > To my knowledge, devfreq performs one task: implements an algorithm > > (typically one that loops/polls) and applies this heuristic towards a > > dvfs transition. > >

Re: [PATCH 1/5] clk: allow reentrant calls into the clk framework

2013-03-27 Thread Mike Turquette
Quoting Bill Huang (2013-03-26 20:33:31) > On Thu, 2013-02-28 at 12:49 +0800, Mike Turquette wrote: > > Reentrancy into the clock framework from the clk.h api is highly > > desirable. This feature is necessary for clocks that are prepared and > > unprepared via i2c_transfer

Re: [PATCH 1/1] clk: Add notifier support in clk_prepare/clk_unprepare

2013-03-21 Thread Mike Turquette
Quoting Ulf Hansson (2013-03-20 14:06:14) > On 20 March 2013 15:47, Mike Turquette wrote: > > Quoting Bill Huang (2013-03-19 21:39:44) > >> On Wed, 2013-03-20 at 11:31 +0800, Mike Turquette wrote: > >> > Quoting Bill Huang (2013-03-19 19:55:49) > >> >

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-21 Thread Mike Turquette
Quoting Ulf Hansson (2013-03-18 03:36:29) > On 15 March 2013 20:38, Stephen Warren wrote: > > On 03/15/2013 06:33 AM, Ulf Hansson wrote: > >> On 15 March 2013 13:06, Bill Huang wrote: > >>> On Fri, 2013-03-15 at 18:08 +0800, Ulf Hansson wrote: > > ... > Some prerequisites; I think am in favo

Re: [PATCH 1/1] clk: Add notifier support in clk_prepare/clk_unprepare

2013-03-20 Thread Mike Turquette
Quoting Bill Huang (2013-03-19 21:39:44) > On Wed, 2013-03-20 at 11:31 +0800, Mike Turquette wrote: > > Quoting Bill Huang (2013-03-19 19:55:49) > > > On Wed, 2013-03-20 at 01:01 +0800, Mike Turquette wrote: > > > > Quoting Bill Huang (2013-03-19 06:28:32) &

Re: [PATCH 1/1] clk: Add notifier support in clk_prepare/clk_unprepare

2013-03-19 Thread Mike Turquette
Quoting Bill Huang (2013-03-19 19:55:49) > On Wed, 2013-03-20 at 01:01 +0800, Mike Turquette wrote: > > Quoting Bill Huang (2013-03-19 06:28:32) > > > Add notifier calls in clk_prepare and clk_unprepare so drivers which are > > > interested in knowing that clk_pre

Re: [PATCH 1/1] clk: Add notifier support in clk_prepare/clk_unprepare

2013-03-19 Thread Mike Turquette
Quoting Bill Huang (2013-03-19 06:28:32) > Add notifier calls in clk_prepare and clk_unprepare so drivers which are > interested in knowing that clk_prepare/unprepare call can act accordingly. > > The existing "clk_set_rate" notifier is not enough for normal DVFS > inplementation since clock might

Re: [PATCH 1/5] clk: allow reentrant calls into the clk framework

2013-03-18 Thread Mike Turquette
Quoting Russell King - ARM Linux (2013-03-18 14:00:11) > On Mon, Mar 18, 2013 at 01:15:51PM -0700, Mike Turquette wrote: > > Quoting Ulf Hansson (2013-02-28 01:54:34) > > > On 28 February 2013 05:49, Mike Turquette wrote: > > > > @@ -703,10 +744,29 @@

Re: [PATCH 1/5] clk: allow reentrant calls into the clk framework

2013-03-18 Thread Mike Turquette
Quoting Ulf Hansson (2013-02-28 01:54:34) > On 28 February 2013 05:49, Mike Turquette wrote: > > @@ -703,10 +744,29 @@ int clk_enable(struct clk *clk) > > unsigned long flags; > > int ret; > > > > + /* this call re-enters if it is from t

Re: LCA13: Video: Scheduler Internals by: Vincent Guittot

2013-03-17 Thread Mike Turquette
Quoting Amit Kucheria (2013-03-10 21:13:34) > On Sun, Mar 10, 2013 at 8:38 AM, Viresh Kumar wrote: > > Hi Guys, > > > > Below are hangout upstreams of Scheduler Internals by Vincent Guittot > > done in LCA13. > > > > We have got another version of this recording that is done by some > > other came

Re: [PATCH 2/5] clk: notifier handler for dynamic voltage scaling

2013-03-03 Thread Mike Turquette
Quoting Richard Zhao (2013-03-03 05:27:52) > Hi Mike, > > On Sun, Mar 03, 2013 at 02:54:24AM -0800, Mike Turquette wrote: > > Quoting Richard Zhao (2013-03-02 00:22:19) > > > On Fri, Mar 01, 2013 at 06:55:54PM -0800, Bill Huang wrote: > > > > On Sat, 2013-

Re: [PATCH 2/5] clk: notifier handler for dynamic voltage scaling

2013-03-03 Thread Mike Turquette
Quoting Richard Zhao (2013-03-02 00:22:19) > On Fri, Mar 01, 2013 at 06:55:54PM -0800, Bill Huang wrote: > > On Sat, 2013-03-02 at 04:48 +0800, Mike Turquette wrote: > > > Quoting Mike Turquette (2013-03-01 10:22:34) > > > > Quoting Bill Huang (2013-03-01 01:41:31) &

Re: [PATCH 2/5] clk: notifier handler for dynamic voltage scaling

2013-03-01 Thread Mike Turquette
Quoting Mike Turquette (2013-03-01 10:22:34) > Quoting Bill Huang (2013-03-01 01:41:31) > > On Thu, 2013-02-28 at 12:49 +0800, Mike Turquette wrote: > > > Dynamic voltage and frequency scaling (dvfs) is a common power saving > > > technique in many of today'

Re: [PATCH 2/5] clk: notifier handler for dynamic voltage scaling

2013-03-01 Thread Mike Turquette
Quoting Bill Huang (2013-03-01 01:41:31) > On Thu, 2013-02-28 at 12:49 +0800, Mike Turquette wrote: > > Dynamic voltage and frequency scaling (dvfs) is a common power saving > > technique in many of today's modern processors. This patch introduces a > > common clk ra

[PATCH 1/5] clk: allow reentrant calls into the clk framework

2013-02-27 Thread Mike Turquette
the original idea to use get_current() and to David Brown for the suggestion to replace my previous rwlock scheme with atomic operations during code review at ELC 2013. Signed-off-by: Mike Turquette Cc: Rajagopal Venkat Cc: David Brown --- drivers/clk/clk.c |

[PATCH 3/5] cpufreq: omap: scale regulator from clk notifier

2013-02-27 Thread Mike Turquette
_rate. For now there is still some other stuff needed there (jiffies per loop, rounding the rate, etc etc). Signed-off-by: Mike Turquette --- drivers/cpufreq/omap-cpufreq.c | 82 ++-- 1 file changed, 20 insertions(+), 62 deletions(-) diff --git a/drivers/cpufreq

[PATCH 2/5] clk: notifier handler for dynamic voltage scaling

2013-02-27 Thread Mike Turquette
Put another way, the voltage chosen for a rail during a call to clk_set_rate is a function of the device, not the clock. Signed-off-by: Mike Turquette --- drivers/clk/Makefile |1 + drivers/clk/dvfs.c | 125 ++ include/linux/clk.h |

[PATCH v3 0/5] common clk framework reentrancy & dvfs, take 3

2013-02-27 Thread Mike Turquette
nel/1327866 v2: http://marc.info/?l=linux-kernel&m=134507429302463&w=2 Mike Turquette (5): clk: allow reentrant calls into the clk framework clk: notifier handler for dynamic voltage scaling cpufreq: omap: scale regulator from clk notifier HACK: set_parent callback for OMAP4 non-c

[PATCH 4/5] HACK: set_parent callback for OMAP4 non-core DPLLs

2013-02-27 Thread Mike Turquette
pass clock, and vice versa. omap3_noncore_dpll_set_rate is modified to call clk_set_parent when appropriate as a way to test reentrancy. Not-signed-off-by: Mike Turquette --- arch/arm/mach-omap2/cclock44xx_data.c |1 + arch/arm/mach-omap2/clock.h |1 + arch/arm/mach-omap2/dpll3x

[PATCH 5/5] HACK: omap: opp: add fake 400MHz OPP to bypass MPU

2013-02-27 Thread Mike Turquette
From: Mike Turquette The following is another silly patch which was done to test calling clk_set_parent from within a call to clk_set_rate. It may make your board burst into flames or otherwise void various warrantees. This patch introduces a 400MHz OPP for the MPU, which happens to correspond

Re: [powerdebug,1/1] clock: support common clock framework

2013-01-25 Thread Mike Turquette
Quoting Amit Kucheria (2013-01-25 03:18:05) > On Fri, Jan 25, 2013 at 9:08 AM, Sanjay Singh Rawat > wrote: > > On Thursday 24 January 2013 11:24 PM, Mike Turquette wrote: > >> > >> Quoting Sanjay Singh Rawat (2013-01-24 08:01:33) > > > You're miss

Re: [powerdebug,1/1] clock: support common clock framework

2013-01-24 Thread Mike Turquette
Quoting Sanjay Singh Rawat (2013-01-24 08:01:33) > Signed-off-by: Sanjay Singh Rawat Sanjay, Have you seen the patch to dump the CCF tree from a single sysfs file, in JSON format? http://git.linaro.org/gitweb?p=people/mturquette/linux.git;a=commitdiff;h=bddca8944a7ab6699984c4b1b677261eb1c8d819;

Re: [PATCH] clk: remove unreachable code

2013-01-18 Thread Mike Turquette
Quoting Rajagopal Venkat (2013-01-16 04:45:13) > On 16 January 2013 04:15, Mike Turquette wrote: > > Quoting Rajagopal Venkat (2013-01-08 22:29:48) > >> while reparenting a clock, NULL check is done for clock in > >> consideration and its new parent. So re-check is

Re: [PATCH] clk: remove unreachable code

2013-01-15 Thread Mike Turquette
clock into the orphan list. In keeping with the clk.h api we need to treat struct clk new_parent as an opaque cookie and not care whether or not it is NULL. Untested patch below fixes the real bug: >From a4d56e3ee51452366365749873710e16631e9de7 Mon Sep 17 00:00:00 2001 From: Mike Turque

Re: Question: What is the current level of Free Software support by vendors?

2012-10-01 Thread Mike Turquette
Quoting Graeme Russ (2012-10-01 19:58:14) > Hello, > > Firstly, sorry if this is the wrong forum - please feel free to > re-direct me to a more appropriate place. > > I've been searching around for the 'net for a while but really have > not come across a conclusive answer to just how well the fre

omapconf tool publicly released

2012-09-21 Thread Mike Turquette
Hi all, Some of you may have heard of a tool we use inside TI for debugging on OMAP. It's a nice userspace tool which can inspect many aspects of hardware state called "omapconf". The tool has just been open sourced and can be found at: https://github.com/omapconf/omapconf Regards, Mike _

Re: First cut of a TCP/IP triggered NI battery simulator power measurement

2012-09-14 Thread Mike Turquette
Quoting Zach Pfeffer (2012-09-13 23:51:47) > Video here: > > https://plus.google.com/u/0/104422661029399872488/posts/gKZxeTmEkMe > > This is cool because it lets us easily integrate the system into LAVA. > It *is* cool. Are setup instructions captured somewhere on a wiki? This would be useful

Re: [RFC] power: opp: rcu reclaim

2012-09-13 Thread Mike Turquette
+Nishanth Menon Quoting Vincent Guittot (2012-09-12 21:13:33) > synchronize_rcu blocks the caller of opp_enable/disbale > for a complete grace period. This blocking duration prevents > any intensive use of the functions. Replace synchronize_rcu > by call_rcu which will call our function for freein

[PATCH 5/5] clk: add a fixed factor clock

2012-05-06 Thread Mike Turquette
parent_names in static init macro] [mturque...@linaro.org: copy/paste bug from mux in static init macro] [mturque...@linaro.org: fix error handling in clk_register_fixed_factor] Signed-off-by: Mike Turquette --- drivers/clk/Makefile |2 +- drivers/clk/clk-fixed-factor.c | 95

[PATCH 0/5] more clk-next fixes

2012-05-06 Thread Mike Turquette
). If no one complains about these then I'll commit them to clk-next and (finally) send my pull request to Arnd. Note that the Orion patches aren't here, but I figure that Andrew L. probably wants to check those against the final clk-next before I pull them. Regards, Mike Mike Tu

[PATCH 3/5] clk: remove COMMON_CLK_DISABLE_UNUSED

2012-05-06 Thread Mike Turquette
Exposing this option generates confusion and incorrect behavior for single-image builds across platforms. Enable this behavior permanently. Signed-off-by: Mike Turquette --- drivers/clk/Kconfig | 11 --- drivers/clk/clk.c |2 -- 2 files changed, 0 insertions(+), 13 deletions

[PATCH 2/5] clk: prevent spurious parent rate propagation

2012-05-06 Thread Mike Turquette
es) by specifically handling the case where the CLK_SET_RATE_PARENT flag is not set. Signed-off-by: Mike Turquette Reported-by: Sascha Hauer --- drivers/clk/clk.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 8149764..7

[PATCH 4/5] clk: mux: assign init data

2012-05-06 Thread Mike Turquette
The original conversion to struct clk_hw_init failed to add the pointer assignment in clk_register_mux. Signed-off-by: Mike Turquette Reported-by: Sascha Hauer --- drivers/clk/clk-mux.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/clk/clk-mux.c b/drivers/clk

[PATCH 1/5] MAINTAINERS: add entry for common clk framework

2012-05-06 Thread Mike Turquette
Signed-off-by: Mike Turquette --- MAINTAINERS | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 1a2f8f5..164e9a1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1882,6 +1882,16 @@ F: Documentation/filesystems/coda.txt F

[PATCH 12/13] clk: core: copy parent_names & return error codes

2012-04-11 Thread Mike Turquette
array, thus allowing platforms to declare their parent_names arrays as __initdata. Signed-off-by: Mike Turquette Cc: Arnd Bergman Cc: Olof Johansson Cc: Russell King Cc: Sascha Hauer Cc: Shawn Guo Cc: Richard Zhao Cc: Saravana Kannan Cc: Mark Brown Cc: Andrew Lunn Cc: Rajendra Nayak Cc

[PATCH 13/13] clk: basic: improve parent_names & return errors

2012-04-11 Thread Mike Turquette
the basic clk registration functions to return error codes which better aligns them with the existing clk.h api. Signed-off-by: Mike Turquette Cc: Arnd Bergman Cc: Olof Johansson Cc: Russell King Cc: Sascha Hauer Cc: Shawn Guo Cc: Richard Zhao Cc: Saravana Kannan Cc: Mark Brown Cc: Andrew Lunn

[PATCH 08/13] clk: declare clk_ops of basic clks in clk-provider.h

2012-04-11 Thread Mike Turquette
e clk-private.h to access those clk_ops. Signed-off-by: Shawn Guo Signed-off-by: Mike Turquette Cc: Arnd Bergman Cc: Olof Johansson Cc: Russell King Cc: Sascha Hauer Cc: Richard Zhao Cc: Saravana Kannan Cc: Mark Brown Cc: Andrew Lunn Cc: Rajendra Nayak Cc: Viresh Kumar --- include/linu

[PATCH 07/13] clk: add "const" for clk_ops of basic clks

2012-04-11 Thread Mike Turquette
From: Shawn Guo The clk_ops of basic clks should have "const" to match the definition in "struct clk" and clk_register prototype. Signed-off-by: Shawn Guo Signed-off-by: Mike Turquette Cc: Arnd Bergman Cc: Olof Johansson Cc: Russell King Cc: Sascha Hauer Cc: Richar

[PATCH 04/13] clk: core: enforce clk_ops consistency

2012-04-11 Thread Mike Turquette
Documentation/clk.txt has some handsome ASCII art outlining which clk_ops are mandatory for a given clock, given the capability of the hardware. Enforce those mandates with sanity checks in __clk_init. Signed-off-by: Mike Turquette Cc: Arnd Bergman Cc: Olof Johansson Cc: Russell King Cc

[PATCH 00/13] common clk framework misc fixes

2012-04-11 Thread Mike Turquette
tree? Thanks, Mike Mark Brown (2): clk: Remove comment for end of CONFIG_COMMON_CLK section clk: Constify parent name arrays Mike Turquette (6): clk: core: correct clk_set_rate kerneldoc clk: core: remove dead code paths clk: core: clk_calc_new_rates handles NULL parents clk: core: enf

[PATCH 06/13] clk: remove unnecessary EXPORT_SYMBOL_GPL

2012-04-11 Thread Mike Turquette
From: Shawn Guo It makes no sense to have EXPORT_SYMBOL_GPL on static functions. Signed-off-by: Shawn Guo Signed-off-by: Mike Turquette Cc: Arnd Bergman Cc: Olof Johansson Cc: Russell King Cc: Sascha Hauer Cc: Richard Zhao Cc: Saravana Kannan Cc: Mark Brown Cc: Andrew Lunn Cc

[PATCH 11/13] clk: Constify parent name arrays

2012-04-11 Thread Mike Turquette
From: Mark Brown Drivers should be able to declare their arrays of parent names as const so the APIs need to accept const arguments. Signed-off-by: Mark Brown [mturque...@linaro.org: constified gate] Signed-off-by: Mike Turquette Cc: Arnd Bergman Cc: Olof Johansson Cc: Russell King Cc

[PATCH 01/13] clk: core: correct clk_set_rate kerneldoc

2012-04-11 Thread Mike Turquette
Remove old and misleading documentation from the previous clk_set_rate implementaion. Reported-by: Shawn Guo Signed-off-by: Mike Turquette Cc: Arnd Bergman Cc: Olof Johansson Cc: Russell King Cc: Sascha Hauer Cc: Shawn Guo Cc: Richard Zhao Cc: Saravana Kannan Cc: Mark Brown Cc: Andrew

[PATCH 09/13] clk: Make clk_get_rate() return 0 on error

2012-04-11 Thread Mike Turquette
: Rajendra nayak Signed-off-by: Mike Turquette Cc: Arnd Bergman Cc: Olof Johansson Cc: Russell King Cc: Sascha Hauer Cc: Shawn Guo Cc: Richard Zhao Cc: Saravana Kannan Cc: Mark Brown Cc: Andrew Lunn Cc: Viresh Kumar --- drivers/clk/clk.c |6 +++--- 1 files changed, 3 insertions(+), 3

[PATCH 10/13] clk: Remove comment for end of CONFIG_COMMON_CLK section

2012-04-11 Thread Mike Turquette
From: Mark Brown The comment is inaccurate (it actually ends the CONFIG_COMMON_CLK section, there's no else) and given that we've just got a single level of ifdef isn't really needed anyway. Signed-off-by: Mark Brown Signed-off-by: Mike Turquette Cc: Arnd Bergman Cc: Olo

[PATCH 05/13] clk: use kzalloc in clk_register_mux

2012-04-11 Thread Mike Turquette
From: Shawn Guo Change clk_register_mux to use kzalloc, just like what all other basic clk registration functions do. Signed-off-by: Shawn Guo Signed-off-by: Mike Turquette Cc: Arnd Bergman Cc: Olof Johansson Cc: Russell King Cc: Sascha Hauer Cc: Richard Zhao Cc: Saravana Kannan Cc

[PATCH 03/13] clk: core: clk_calc_new_rates handles NULL parents

2012-04-11 Thread Mike Turquette
It is possible to call clk_set_rate on a clock with a NULL parent. One such example is an adjustable-rate root clock. Ensure that clk_calc_new_rates does not dereference parent without checking first and also handle the corner cases gracefully. Reported-by: Rajendra Nayak Signed-off-by: Mike

[PATCH 02/13] clk: core: remove dead code paths

2012-04-11 Thread Mike Turquette
Some static inline dummy functions were left over from before the clock core was consolidated from several C files down to one. Remove them. Reported-by: Shawn Guo Signed-off-by: Mike Turquette Cc: Arnd Bergman Cc: Olof Johansson Cc: Russell King Cc: Sascha Hauer Cc: Richard Zhao Cc

[PATCH v7 2/3] clk: introduce the common clock framework

2012-03-15 Thread Mike Turquette
. See Documentation/clk.txt for more details. This patch is based on the work of Jeremy Kerr, which in turn was based on the work of Ben Herrenschmidt. Signed-off-by: Mike Turquette Signed-off-by: Mike Turquette Reviewed-by: Thomas Gleixner Tested-by: Andrew Lunn Reviewed-by: Rob Herring

[PATCH v7 1/3] Documentation: common clk API

2012-03-15 Thread Mike Turquette
Provide documentation for the common clk structures and APIs. This code can be found in drivers/clk/ and include/linux/clk*.h. Signed-off-by: Mike Turquette Signed-off-by: Mike Turquette Reviewed-by: Andrew Lunn Cc: Russell King Cc: Jeremy Kerr Cc: Thomas Gleixner Cc: Arnd Bergman Cc

[PATCH v7 0/3] common clk framework

2012-03-15 Thread Mike Turquette
ette/linux.git v3.3-rc7-clkv7 v6 can be found at, http://article.gmane.org/gmane.linux.kernel/1265022 v5 can be found at, http://article.gmane.org/gmane.linux.kernel/1261472 v4 can be found at, http://article.gmane.org/gmane.linux.linaro.devel/8896/ v3 can be found at, http://article.

[PATCH v7 3/3] clk: basic clock hardware types

2012-03-15 Thread Mike Turquette
contribution by Jamie Iles. Dividers and multiplexor clocks originally contributed by Richard Zhao & Sascha Hauer. Signed-off-by: Mike Turquette Signed-off-by: Mike Turquette Reviewed-by: Andrew Lunn Tested-by: Andrew Lunn Reviewed-by: Rob Herring Cc: Russell King Cc: Jeremy Kerr Cc: Thomas Glei

[PATCH v6 3/3] clk: basic clock hardware types

2012-03-09 Thread Mike Turquette
contribution by Jamie Iles. Dividers and multiplexor clocks originally contributed by Richard Zhao & Sascha Hauer. Signed-off-by: Mike Turquette Signed-off-by: Mike Turquette Cc: Russell King Cc: Jeremy Kerr Cc: Thomas Gleixner Cc: Arnd Bergman Cc: Paul Walmsley Cc: Shawn Guo Cc: Sascha Hauer

[PATCH v6 2/3] clk: introduce the common clock framework

2012-03-09 Thread Mike Turquette
. See Documentation/clk.txt for more details. This patch is based on the work of Jeremy Kerr, which in turn was based on the work of Ben Herrenschmidt. Signed-off-by: Mike Turquette Signed-off-by: Mike Turquette Cc: Russell King Cc: Jeremy Kerr Cc: Thomas Gleixner Cc: Arnd Bergman Cc: Paul

[PATCH v6 1/3] Documentation: common clk API

2012-03-09 Thread Mike Turquette
Provide documentation for the common clk structures and APIs. This code can be found in drivers/clk/ and include/linux/clk*.h. Signed-off-by: Mike Turquette Signed-off-by: Mike Turquette Cc: Russell King Cc: Jeremy Kerr Cc: Thomas Gleixner Cc: Arnd Bergman Cc: Paul Walmsley Cc: Shawn Guo

[PATCH v6 0/3] common clk framework

2012-03-09 Thread Mike Turquette
l/1261472 v4 can be found at, http://article.gmane.org/gmane.linux.linaro.devel/8896/ v3 can be found at, http://article.gmane.org/gmane.linux.kernel/1218622 Mike Turquette (3): Documentation: common clk API clk: introduce the common clock framework clk: basic clock hardware types D

[PATCH v5 4/4] clk: basic clock hardware types

2012-03-03 Thread Mike Turquette
contribution by Jamie Iles. Dividers and multiplexor clocks originally contributed by Richard Zhao & Sascha Hauer. Signed-off-by: Mike Turquette Signed-off-by: Mike Turquette Cc: Jeremy Kerr Cc: Thomas Gleixner Cc: Arnd Bergman Cc: Paul Walmsley Cc: Shawn Guo Cc: Sascha Hauer Cc: Jamie Iles

[PATCH v5 3/4] clk: introduce the common clock framework

2012-03-03 Thread Mike Turquette
. See Documentation/clk.txt for more details. This patch is based on the work of Jeremy Kerr, which in turn was based on the work of Ben Herrenschmidt. Signed-off-by: Mike Turquette Signed-off-by: Mike Turquette Cc: Jeremy Kerr Cc: Thomas Gleixner Cc: Arnd Bergman Cc: Paul Walmsley Cc: Shawn Guo

[PATCH v5 2/4] clk: Kconfig: add entry for HAVE_CLK_PREPARE

2012-03-03 Thread Mike Turquette
The common clk framework provides clk_prepare and clk_unprepare implementations. Create an entry for HAVE_CLK_PREPARE so that COMMON_CLK can select it. Signed-off-by: Mike Turquette Signed-off-by: Mike Turquette Acked-by: Shawn Guo Cc: Jeremy Kerr Cc: Thomas Gleixner Cc: Arnd Bergman Cc

[PATCH v5 0/4] common clk framework

2012-03-03 Thread Mike Turquette
From: Mike Turquette The common clock framework defines a common struct clk as well as an implementation of the clk api that unifies clock operations on various platforms and devices. The net result is consolidation of many different struct clk definitions and platform-specific clock framework

[PATCH v5 1/4] Documentation: common clk API

2012-03-03 Thread Mike Turquette
Provide documentation for the common clk structures and APIs. This code can be found in drivers/clk/ and include/linux/clk*.h. Signed-off-by: Mike Turquette Signed-off-by: Mike Turquette Cc: Jeremy Kerr Cc: Thomas Gleixner Cc: Arnd Bergman Cc: Paul Walmsley Cc: Shawn Guo Cc: Richard Zhao

Re: using cpuidle on panda board

2012-01-13 Thread Mike Turquette
On Fri, Jan 13, 2012 at 2:41 PM, Amit Kucheria wrote: > On Fri, Jan 13, 2012 at 7:14 PM, Dechesne, Nicolas wrote: >> >> >> On Fri, Jan 13, 2012 at 5:59 PM, Andy Green wrote: >>> >>> Amit, do you know of a good place to raid for better cpuidle, closer to >>> upstream than OZ? >> >> >> wasn't that

[PATCH 6/6] HACK: arm: reprogram twd based on clk notifier

2011-12-13 Thread Mike Turquette
From: Mike Turquette As a proof-of-concept, convert the existing smp_twd code to use clk notifiers in place of CPUfreq notifiers. This works out nicely for Cortex-A9 MPcore designs that scale all CPUs at the same frequency. For chips which can scale frequency independently this change makes

[PATCH 5/6] smp_twd: Reconfigure clockevents after cpufreq change

2011-12-13 Thread Mike Turquette
From: Linus Walleij <(address hidden)> The localtimer's clock changes with the cpu clock. After a cpufreq transition, update the clockevent's frequency and reprogram the next clock event. Adds a clock called "smp_twd" that is used to determine the twd frequency, which can also be used at init tim

[PATCH 3/6] HACK: omap: clk: add mpu_periphclk clk node

2011-12-13 Thread Mike Turquette
From: Mike Turquette The ARM periphclk drives various peripherals for the MPU including the TWD and local timers. This patch creates the missing clk tree data to represent this relationship: dpll_mpu_ck | dpll_mpu_m2_ck (divide by 1) | mpu_clk (divide by 1

[PATCH 1/6] HACK: omap: opp: add fake 400MHz OPP to bypass MPU

2011-12-13 Thread Mike Turquette
(with 38.4MHz SYS_CLK). Using CPUfreq to set the MPU to this rate puts the MPU into Low Power Bypass, which triggers the __clk_reparent code in drivers/clk/clk.c, which migrates the dpll_mpu_ck directory (and all of its subdirs) to the div_mpu_hs_clk dir under dpll_core_ck. Not-signed-off-by: Mike

[PATCH 0/6] HACK: OMAP: testing common clk features

2011-12-13 Thread Mike Turquette
=refs/heads/v3.2-rc5-clkv4-omap-pm-testing git://git.linaro.org/people/mturquette/linux.git v3.2-rc5-clkv4-omap-pm-testing Linus Walleij (1): smp_twd: Reconfigure clockevents after cpufreq change Mike Turquette (5): HACK: omap: opp: add fake 400MHz OPP to bypass MPU omap: clk: .round_rate

[PATCH 4/6] HACK: cpufreq: omap: change mpu_clk's rate

2011-12-13 Thread Mike Turquette
which simplies passing up a rate change request to the parent. Not for merging, just to get discussion going around the common clk patches and future OMAP adaptations. Not-signed-off-by: Mike Turquette --- drivers/cpufreq/omap-cpufreq.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[PATCH 2/6] omap: clk: .round_rate for propagating to parents

2011-12-13 Thread Mike Turquette
up to the clk's parent. Not-signed-off-by: Mike Turquette --- arch/arm/mach-omap2/clkt_clksel.c |8 arch/arm/mach-omap2/clock.h |2 ++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/clkt_clksel.c b/arch/arm/mach-omap2/clkt_clk

[PATCH 4/7] omap: hwmod: convert to use common struct clk

2011-12-13 Thread Mike Turquette
-off-by: Mike Turquette --- arch/arm/mach-omap2/omap_hwmod.c | 54 - 1 files changed, 41 insertions(+), 13 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 207a2ff..3e533c7 100644 --- a/arch/arm/mach-omap2

[PATCH 7/7] HACK: comment WARN_ON in _clkdm_clk_hwmod_disable

2011-12-13 Thread Mike Turquette
Not-signed-off-by: Mike Turquette --- arch/arm/mach-omap2/clockdomain.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/clockdomain.c b/arch/arm/mach-omap2/clockdomain.c index ad07689..825248b 100644 --- a/arch/arm/mach-omap2/clockdomain.c +++ b

[PATCH 0/7] RFC: convert OMAP to common struct clk

2011-12-13 Thread Mike Turquette
heads/v3.2-rc5-clkv4-omap-pm This series will be followed up shortly with another set of patches for "testing" the clk rate change notifiers, parent propagation of rate changes and debugfs re-parenting. Mike Turquette (7): OMAP: Kconfig: select GENERIC_CLK HACK: omap4: clk: convert to

[PATCH 6/7] omap: dss: use clk_prepare in dss reset

2011-12-13 Thread Mike Turquette
Signed-off-by: Mike Turquette --- arch/arm/mach-omap2/display.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c index dce9905..21f8fcc 100644 --- a/arch/arm/mach-omap2/display.c +++ b/arch/arm/mach-omap2

[PATCH 1/7] OMAP: Kconfig: select GENERIC_CLK

2011-12-13 Thread Mike Turquette
From: Mike Turquette Signed-off-by: Mike Turquette --- arch/arm/mach-omap2/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index e1293aa..921451c 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm

[PATCH 5/7] omap: panda: use clk_prepare in ehci init

2011-12-13 Thread Mike Turquette
Signed-off-by: Mike Turquette --- arch/arm/mach-omap2/board-omap4panda.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index a8c2c42..3864d31 100644 --- a/arch/arm/mach-omap2/board

[PATCH v4 3/6] clk: introduce the common clock framework

2011-12-13 Thread Mike Turquette
Herrenschmidt. Big thanks to both of them for kickstarting this effort. Signed-off-by: Mike Turquette Cc: Jeremy Kerr --- drivers/clk/Kconfig |4 + drivers/clk/Makefile |1 + drivers/clk/clk.c| 564 ++ include/linux/clk.h | 130

[PATCH v4 6/6] clk: export the clk tree topology to debugfs

2011-12-13 Thread Mike Turquette
to debugfs: http://git.pengutronix.de/?p=imx/linux-2.6.git;a=commit;h=30aa15230747b3b92da16d841b1cf369f07192e7 Signed-off-by: Mike Turquette Cc: Yong Shen Cc: Sascha Hauer --- drivers/clk/Kconfig |9 +++ drivers/clk/clk.c | 176 ++- include/l

[PATCH v4 2/6] Documentation: common clk API

2011-12-13 Thread Mike Turquette
Provide documentation for the common clk structures and APIs. This code can be found in drivers/clk/ and include/linux/clk.h. Signed-off-by: Mike Turquette Cc: Jeremy Kerr --- Documentation/clk.txt | 312 + 1 files changed, 312 insertions(+), 0

[PATCH v4 4/6] clk: introduce rate change notifiers

2011-12-13 Thread Mike Turquette
erences in this implementation, such as use of SRCU notifers instead of blocking, and the use of a new .speculate_rate function pointer (similar .recalc_rate) for predicting rate changes down the sub-tree of clks. Signed-off-by: Mike Turquette Cc: Paul Walmsley --- drivers/clk

[PATCH v4 0/6] common clk framework

2011-12-13 Thread Mike Turquette
From: Mike Turquette The common clk framework is an attempt to define a generic struct clk which most platforms can use to build a clk tree and perform a set of well-defined operations. The previous patchset, v3, can be found at, http://article.gmane.org/gmane.linux.kernel/1218622 New stuff in

[PATCH v4 5/6] clk: basic gateable and fixed-rate clks

2011-12-13 Thread Mike Turquette
contribution by Jamie Iles. Signed-off-by: Mike Turquette Cc: Jeremy Kerr Cc: Jamie Iles --- drivers/clk/Kconfig |7 ++ drivers/clk/Makefile|5 +- drivers/clk/clk-basic.c | 208 +++ include/linux/clk.h | 35 4 files changed, 253

[PATCH v4 1/6] clk: Kconfig: add entry for HAVE_CLK_PREPARE

2011-12-13 Thread Mike Turquette
The common clk framework provides clk_prepare and clk_unprepare implementations. Create an entry for HAVE_CLK_PREPARE so that GENERIC_CLK can select it. Signed-off-by: Mike Turquette Acked-by: Shawn Guo --- drivers/clk/Kconfig |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff

Re: Bus framework

2011-12-05 Thread Mike Turquette
On Wed, Oct 26, 2011 at 7:46 AM, Mike Turquette wrote: > On Wed, Oct 26, 2011 at 3:36 AM, Richard Zhao wrote: >> On 26 October 2011 14:39, Amit Kucheria wrote: >>> On 11 Oct 26, Richard Zhao wrote: >>>> Hi Amit, >>>> >>>> Is there anyone w

Re: [PATCH v3 0/5] common clk framework

2011-11-22 Thread Mike Turquette
On Tue, Nov 22, 2011 at 9:45 AM, Russell King - ARM Linux wrote: > On Tue, Nov 22, 2011 at 07:42:59AM -0800, Greg KH wrote: >> On Mon, Nov 21, 2011 at 05:40:42PM -0800, Mike Turquette wrote: >> >   .sysfs support.  Visualize your clk tree at /sys/clk!  Where would be >>

Re: [PATCH v3 5/5] clk: export tree topology and clk data via sysfs

2011-11-22 Thread Mike Turquette
On Tue, Nov 22, 2011 at 8:37 AM, Grant Likely wrote: > > On Nov 21, 2011 6:43 PM, "Mike Turquette" wrote: >> >> Introduces kobject support for the common struct clk, exports per-clk >> data via read-only callbacks and models the clk tree topology in sysfs. >

Re: [PATCH v3 5/5] clk: export tree topology and clk data via sysfs

2011-11-22 Thread Mike Turquette
On Tue, Nov 22, 2011 at 7:49 AM, Greg KH wrote: > On Mon, Nov 21, 2011 at 05:40:47PM -0800, Mike Turquette wrote: >> Introduces kobject support for the common struct clk, exports per-clk >> data via read-only callbacks and models the clk tree topology in sysfs. >> >

Re: [PATCH v3 5/5] clk: export tree topology and clk data via sysfs

2011-11-22 Thread Mike Turquette
On Tue, Nov 22, 2011 at 5:07 AM, Arnd Bergmann wrote: > On Tuesday 22 November 2011, Mike Turquette wrote: >> Introduces kobject support for the common struct clk, exports per-clk >> data via read-only callbacks and models the clk tree topology in sysfs. >> >> Also adds

  1   2   >