All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sudeep KarkadaNagesha <Sudeep.KarkadaNagesha@arm.com>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: "cpufreq@vger.kernel.org" <cpufreq@vger.kernel.org>,
	"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
	"Rafael J. Wysocki" <rjw@sisk.pl>
Subject: Re: [PATCH] cpufreq: arm-big-little: use clk_get instead of clk_get_sys
Date: Thu, 03 Oct 2013 09:57:20 +0100	[thread overview]
Message-ID: <524D3170.7080406@arm.com> (raw)
In-Reply-To: <CAKohpom0iYB=HF+YaG9VzHu7LxVQsJww3oEVABRmeHTmwSnxTA@mail.gmail.com>

On 03/10/13 05:52, Viresh Kumar wrote:
> On 1 October 2013 15:00, Sudeep KarkadaNagesha
> <Sudeep.KarkadaNagesha@arm.com> wrote:
>> From: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
>>
>> Currently clk_get_sys is used with cpu-cluster.<n> as the device id
>> which is incorrect. It should be connection/consumer ID instead.
>>
>> It is possible to specify input clock in the cpu device node along
>> with the optional clock-name. clk_get_sys can't handle that.
>>
>> This patch replaces clk_get_sys with clk_get to extend support for
>> clocks specified in the device tree cpu node.
>>
>> Cc: Viresh Kumar <viresh.kumar@linaro.org>
>> Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
>> Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
>> ---
>>  drivers/cpufreq/arm_big_little.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c
>> index 3549f07..501a091 100644
>> --- a/drivers/cpufreq/arm_big_little.c
>> +++ b/drivers/cpufreq/arm_big_little.c
>> @@ -127,7 +127,7 @@ static int get_cluster_clk_and_freq_table(struct device *cpu_dev)
>>         }
>>
>>         name[12] = cluster + '0';
>> -       clk[cluster] = clk_get_sys(name, NULL);
>> +       clk[cluster] = clk_get(cpu_dev, name);
> 
> This is not really CPUs clock and so passing cpu_dev would be wrong here.
> So, either this change should be clk_get(NULL, name);

Agreed, but there's no cluster node in DT. So platforms using DT would have
these clocks in cpu@n node as it's used for CPU frequency scaling. One example I
can see is highbank(it uses cpufreq-cpu0 meaning its single cluster clock). So
AFAICT if any big-little systems wants to pass cluster clocks through DT, it has
to be cpu@n nodes. Let me know if you have any alternate thoughts ?

Regards,
Sudeep


  reply	other threads:[~2013-10-03  8:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-01  9:30 [PATCH] cpufreq: arm-big-little: use clk_get instead of clk_get_sys Sudeep KarkadaNagesha
2013-10-03  4:52 ` Viresh Kumar
2013-10-03  8:57   ` Sudeep KarkadaNagesha [this message]
2013-10-03  9:00     ` Viresh Kumar
2013-10-03  9:23       ` Sudeep KarkadaNagesha
2013-10-03  9:38         ` Viresh Kumar
2013-10-03  9:50           ` Sudeep KarkadaNagesha
2013-10-03  9:58 ` Viresh Kumar

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=524D3170.7080406@arm.com \
    --to=sudeep.karkadanagesha@arm.com \
    --cc=cpufreq@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rjw@sisk.pl \
    --cc=viresh.kumar@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.