Message ID | 1388155329-11124-1-git-send-email-valentine.barshak@cogentembedded.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
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); > /*
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. -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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 -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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. -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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); /*
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(-)