linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: robherring2@gmail.com (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 0/7] ARM timer clock api support
Date: Fri, 11 Mar 2011 07:48:48 -0600	[thread overview]
Message-ID: <4D7A2840.1020808@gmail.com> (raw)
In-Reply-To: <20110311081646.GA13596@n2100.arm.linux.org.uk>

Russell,

On 03/11/2011 02:16 AM, Russell King - ARM Linux wrote:
> On Tue, Mar 08, 2011 at 05:34:30PM -0600, Rob Herring wrote:
>> From: Rob Herring<rob.herring@calxeda.com>
>>
>> This patch series converts ARM sp804 timer and smp_twd timer to use the clock
>> api.
>
> This is what I came up with - I've still not sorted these patches out,
> the second is a superset of the first.

Any comments on the smp_twd patch? Colin plans to base his cpufreq 
patches on it.

> +	clk = clk_get_sys(name, NULL);
> +	if (IS_ERR(clk)) {
> +		pr_err("sp804: %s clock not found, defaulting to 1MHz: %d\n",
> +			name, ERR_PTR(clk));
> +	} else {
> +		int err = clk_enable(clk);
> +		if (err != 0) {
> +			pr_err("sp804: %s clock failed to enable: %d\n",
> +				name, err);
> +			clk_put(clk);
> +		} else {
> +			rate = clk_get_rate(clk);
> +		}

You previously said this should fully move to using the clock api. 
Presumably, that meant no default freq of 1MHz.

Also, my patch allows for clksrc and clkevent timers to have different 
clocks. Currently, no h/w needs that, but it could happen. Even if they 
are the same clk, you are introducing a requirement on the calling order 
of sp804_clocksource_init and sp804_clockevents_init.

Rob

  reply	other threads:[~2011-03-11 13:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-08 23:34 [PATCH v3 0/7] ARM timer clock api support Rob Herring
2011-03-08 23:34 ` [PATCH v3 1/7] ARM: integrator cp: add sp804 clock Rob Herring
2011-03-08 23:34 ` [PATCH v3 2/7] ARM: realview: " Rob Herring
2011-03-08 23:34 ` [PATCH v3 3/7] ARM: versatile: " Rob Herring
2011-03-08 23:34 ` [PATCH v3 4/7] ARM: vexpress: " Rob Herring
2011-03-08 23:34 ` [PATCH v3 5/7] ARM: timer-sp: support timer clock freq other than 1MHz Rob Herring
2011-03-08 23:34 ` [PATCH v3 6/7] ARM: smp_twd: add clock api support Rob Herring
2011-03-15  2:35   ` Colin Cross
2011-03-15 12:40     ` Rob Herring
2011-03-08 23:34 ` [PATCH v3 7/7] ARM: vexpress: add smp_twd clock Rob Herring
2011-03-11  8:16 ` [PATCH v3 0/7] ARM timer clock api support Russell King - ARM Linux
2011-03-11 13:48   ` Rob Herring [this message]
2011-03-15  8:51     ` Russell King - ARM Linux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D7A2840.1020808@gmail.com \
    --to=robherring2@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).