* [PATCH] clk: shmobile: Fix SMTP clock index
@ 2013-12-27 14:42 Valentine Barshak
2013-12-27 14:53 ` Laurent Pinchart
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Valentine Barshak @ 2013-12-27 14:42 UTC (permalink / raw)
To: linux-sh
Use clkidx when registering SMTP clocks instead of loop counter
since the value is then used to access the specific clock index bit
in the smtp register.
The issue was introduced by the following commit:
f94859c215b6d977 "clk: shmobile: Add MSTP clock support"
Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
---
drivers/clk/shmobile/clk-mstp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/shmobile/clk-mstp.c b/drivers/clk/shmobile/clk-mstp.c
index e576b60..be7d017 100644
--- a/drivers/clk/shmobile/clk-mstp.c
+++ b/drivers/clk/shmobile/clk-mstp.c
@@ -205,8 +205,8 @@ static void __init cpg_mstp_clocks_init(struct device_node *np)
continue;
}
- clks[clkidx] = cpg_mstp_clock_register(name, parent_name, i,
- group);
+ clks[clkidx] = cpg_mstp_clock_register(name, parent_name,
+ clkidx, group);
if (!IS_ERR(clks[clkidx])) {
group->data.clk_num = max(group->data.clk_num, clkidx);
/*
--
1.8.3.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] clk: shmobile: Fix SMTP clock index
2013-12-27 14:42 [PATCH] clk: shmobile: Fix SMTP clock index Valentine Barshak
@ 2013-12-27 14:53 ` Laurent Pinchart
2013-12-27 17:55 ` Valentine
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Laurent Pinchart @ 2013-12-27 14:53 UTC (permalink / raw)
To: linux-sh
Hi Valentine,
Thank you for the patch.
On Friday 27 December 2013 18:42:09 Valentine Barshak wrote:
> Use clkidx when registering SMTP clocks instead of loop counter
> since the value is then used to access the specific clock index bit
> in the smtp register.
>
> The issue was introduced by the following commit:
> f94859c215b6d977 "clk: shmobile: Add MSTP clock support"
I wonder how I've failed to notice this :-/
> Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Mike, could you please pick this up for v3.14 ?
> ---
> drivers/clk/shmobile/clk-mstp.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/shmobile/clk-mstp.c
> b/drivers/clk/shmobile/clk-mstp.c index e576b60..be7d017 100644
> --- a/drivers/clk/shmobile/clk-mstp.c
> +++ b/drivers/clk/shmobile/clk-mstp.c
> @@ -205,8 +205,8 @@ static void __init cpg_mstp_clocks_init(struct
> device_node *np) continue;
> }
>
> - clks[clkidx] = cpg_mstp_clock_register(name, parent_name, i,
> - group);
> + clks[clkidx] = cpg_mstp_clock_register(name, parent_name,
> + clkidx, group);
> if (!IS_ERR(clks[clkidx])) {
> group->data.clk_num = max(group->data.clk_num, clkidx);
> /*
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] clk: shmobile: Fix SMTP clock index
2013-12-27 14:42 [PATCH] clk: shmobile: Fix SMTP clock index Valentine Barshak
2013-12-27 14:53 ` Laurent Pinchart
@ 2013-12-27 17:55 ` Valentine
2014-01-06 1:28 ` Kuninori Morimoto
2014-01-06 13:56 ` Valentine
3 siblings, 0 replies; 5+ messages in thread
From: Valentine @ 2013-12-27 17:55 UTC (permalink / raw)
To: linux-sh
On 12/27/2013 06:53 PM, Laurent Pinchart wrote:
> Hi Valentine,
>
> Thank you for the patch.
>
> On Friday 27 December 2013 18:42:09 Valentine Barshak wrote:
>> Use clkidx when registering SMTP clocks instead of loop counter
>> since the value is then used to access the specific clock index bit
>> in the smtp register.
>>
>> The issue was introduced by the following commit:
>> f94859c215b6d977 "clk: shmobile: Add MSTP clock support"
>
> I wonder how I've failed to notice this :-/
Unfortunately there's more than that. I'll bundle this patch with
another one that attempts to fix a couple of more issues with clks
array initialization and resend the whole series in a bit.
>
>> Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
>
> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>
> Mike, could you please pick this up for v3.14 ?
>
>> ---
>> drivers/clk/shmobile/clk-mstp.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/clk/shmobile/clk-mstp.c
>> b/drivers/clk/shmobile/clk-mstp.c index e576b60..be7d017 100644
>> --- a/drivers/clk/shmobile/clk-mstp.c
>> +++ b/drivers/clk/shmobile/clk-mstp.c
>> @@ -205,8 +205,8 @@ static void __init cpg_mstp_clocks_init(struct
>> device_node *np) continue;
>> }
>>
>> - clks[clkidx] = cpg_mstp_clock_register(name, parent_name, i,
>> - group);
>> + clks[clkidx] = cpg_mstp_clock_register(name, parent_name,
>> + clkidx, group);
>> if (!IS_ERR(clks[clkidx])) {
>> group->data.clk_num = max(group->data.clk_num, clkidx);
>> /*
Thanks,
Val.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] clk: shmobile: Fix SMTP clock index
2013-12-27 14:42 [PATCH] clk: shmobile: Fix SMTP clock index Valentine Barshak
2013-12-27 14:53 ` Laurent Pinchart
2013-12-27 17:55 ` Valentine
@ 2014-01-06 1:28 ` Kuninori Morimoto
2014-01-06 13:56 ` Valentine
3 siblings, 0 replies; 5+ messages in thread
From: Kuninori Morimoto @ 2014-01-06 1:28 UTC (permalink / raw)
To: linux-sh
Hi Valentine
> Use clkidx when registering SMTP clocks instead of loop counter
> since the value is then used to access the specific clock index bit
> in the smtp register.
>
> The issue was introduced by the following commit:
> f94859c215b6d977 "clk: shmobile: Add MSTP clock support"
>
> Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
> ---
In Subject and comment, I think...
- SMTP
+ MSTP
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: shmobile: Fix SMTP clock index
2013-12-27 14:42 [PATCH] clk: shmobile: Fix SMTP clock index Valentine Barshak
` (2 preceding siblings ...)
2014-01-06 1:28 ` Kuninori Morimoto
@ 2014-01-06 13:56 ` Valentine
3 siblings, 0 replies; 5+ messages in thread
From: Valentine @ 2014-01-06 13:56 UTC (permalink / raw)
To: linux-sh
On 01/06/2014 05:28 AM, Kuninori Morimoto wrote:
> Hi Valentine
>
>> Use clkidx when registering SMTP clocks instead of loop counter
>> since the value is then used to access the specific clock index bit
>> in the smtp register.
>>
>> The issue was introduced by the following commit:
>> f94859c215b6d977 "clk: shmobile: Add MSTP clock support"
>>
>> Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
>> ---
>
> In Subject and comment, I think...
>
> - SMTP
> + MSTP
>
This patch is superseded by the "[PATCH V2 1/2] clk: shmobile: Fix MSTP clock index"
which has the typo fixed.
Thanks,
Val.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-01-06 13:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-27 14:42 [PATCH] clk: shmobile: Fix SMTP clock index Valentine Barshak
2013-12-27 14:53 ` Laurent Pinchart
2013-12-27 17:55 ` Valentine
2014-01-06 1:28 ` Kuninori Morimoto
2014-01-06 13:56 ` Valentine
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).