* [PATCH] clk: lpc32xx: do not prepare clock "0"
@ 2016-02-09 18:29 slemieux.tyco
2016-02-09 19:03 ` Stephen Boyd
0 siblings, 1 reply; 5+ messages in thread
From: slemieux.tyco @ 2016-02-09 18:29 UTC (permalink / raw)
To: sboyd, mturquette; +Cc: stigge, vz, linux-clk
From: Sylvain Lemieux <slemieux@tycoint.com>
The following errors are display in the console during the power-on:
[ 0.000000] lpc32xx_usb_clk_init: failed to register (null) clock: -12
[ 0.000000] lpc32xx_clk_init: failed to register (null) clock: -12
There is no need to prepare clock "0"; the first clock used is 1;
Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
---
drivers/clk/nxp/clk-lpc32xx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/nxp/clk-lpc32xx.c b/drivers/clk/nxp/clk-lpc32xx.c
index 10dd0fd..981ff0d 100644
--- a/drivers/clk/nxp/clk-lpc32xx.c
+++ b/drivers/clk/nxp/clk-lpc32xx.c
@@ -1515,7 +1515,7 @@ static void __init lpc32xx_clk_init(struct device_node *np)
return;
}
- for (i = 0; i < LPC32XX_CLK_MAX; i++) {
+ for (i = 1; i < LPC32XX_CLK_MAX; i++) {
clk[i] = lpc32xx_clk_register(i);
if (IS_ERR(clk[i])) {
pr_err("failed to register %s clock: %ld\n",
@@ -1555,7 +1555,7 @@ static void __init lpc32xx_usb_clk_init(struct device_node *np)
return;
}
- for (i = 0; i < LPC32XX_USB_CLK_MAX; i++) {
+ for (i = 1; i < LPC32XX_USB_CLK_MAX; i++) {
usb_clk[i] = lpc32xx_clk_register(i + LPC32XX_CLK_USB_OFFSET);
if (IS_ERR(usb_clk[i])) {
pr_err("failed to register %s clock: %ld\n",
--
1.8.3.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: lpc32xx: do not prepare clock "0"
2016-02-09 18:29 [PATCH] clk: lpc32xx: do not prepare clock "0" slemieux.tyco
@ 2016-02-09 19:03 ` Stephen Boyd
2016-02-09 20:11 ` Sylvain Lemieux
0 siblings, 1 reply; 5+ messages in thread
From: Stephen Boyd @ 2016-02-09 19:03 UTC (permalink / raw)
To: slemieux.tyco; +Cc: mturquette, stigge, vz, linux-clk
On 02/09, slemieux.tyco@gmail.com wrote:
> From: Sylvain Lemieux <slemieux@tycoint.com>
>
> The following errors are display in the console during the power-on:
> [ 0.000000] lpc32xx_usb_clk_init: failed to register (null) clock: -12
> [ 0.000000] lpc32xx_clk_init: failed to register (null) clock: -12
>
> There is no need to prepare clock "0"; the first clock used is 1;
>
> Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
> ---
Do you mean register instead of prepare? Change looks ok
otherwise.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: lpc32xx: do not prepare clock "0"
2016-02-09 19:03 ` Stephen Boyd
@ 2016-02-09 20:11 ` Sylvain Lemieux
2016-02-09 23:45 ` Vladimir Zapolskiy
0 siblings, 1 reply; 5+ messages in thread
From: Sylvain Lemieux @ 2016-02-09 20:11 UTC (permalink / raw)
To: Stephen Boyd; +Cc: mturquette, stigge, vz, linux-clk
On Tue, 2016-02-09 at 11:03 -0800, Stephen Boyd wrote:
> On 02/09, slemieux.tyco@gmail.com wrote:
> > From: Sylvain Lemieux <slemieux@tycoint.com>
> >
> > The following errors are display in the console during the power-on:
> > [ 0.000000] lpc32xx_usb_clk_init: failed to register (null) clock: -12
> > [ 0.000000] lpc32xx_clk_init: failed to register (null) clock: -12
> >
> > There is no need to prepare clock "0"; the first clock used is 1;
> >
> > Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
> > ---
>
> Do you mean register instead of prepare? Change looks ok
> otherwise.
>
Should read register in the description;
I will submit a new version of the patch tomorrow.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: lpc32xx: do not prepare clock "0"
2016-02-09 20:11 ` Sylvain Lemieux
@ 2016-02-09 23:45 ` Vladimir Zapolskiy
2016-02-10 0:19 ` Stephen Boyd
0 siblings, 1 reply; 5+ messages in thread
From: Vladimir Zapolskiy @ 2016-02-09 23:45 UTC (permalink / raw)
To: Sylvain Lemieux, Stephen Boyd; +Cc: mturquette, stigge, linux-clk
Hi Sylvain,
On 09.02.2016 22:11, Sylvain Lemieux wrote:
> On Tue, 2016-02-09 at 11:03 -0800, Stephen Boyd wrote:
>> On 02/09, slemieux.tyco@gmail.com wrote:
>>> From: Sylvain Lemieux <slemieux@tycoint.com>
>>>
>>> The following errors are display in the console during the power-on:
>>> [ 0.000000] lpc32xx_usb_clk_init: failed to register (null) clock: -12
>>> [ 0.000000] lpc32xx_clk_init: failed to register (null) clock: -12
>>>
>>> There is no need to prepare clock "0"; the first clock used is 1;
>>>
>>> Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
>>> ---
>>
>> Do you mean register instead of prepare? Change looks ok
>> otherwise.
>>
> Should read register in the description;
> I will submit a new version of the patch tomorrow.
>
thanks for catching this leftover after renumbering clocks starting from 1.
Feel free to add to v2
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
--
With best wishes,
Vladimir
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: lpc32xx: do not prepare clock "0"
2016-02-09 23:45 ` Vladimir Zapolskiy
@ 2016-02-10 0:19 ` Stephen Boyd
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Boyd @ 2016-02-10 0:19 UTC (permalink / raw)
To: Vladimir Zapolskiy; +Cc: Sylvain Lemieux, mturquette, stigge, linux-clk
On 02/10, Vladimir Zapolskiy wrote:
> Hi Sylvain,
>
> On 09.02.2016 22:11, Sylvain Lemieux wrote:
> > On Tue, 2016-02-09 at 11:03 -0800, Stephen Boyd wrote:
> >> On 02/09, slemieux.tyco@gmail.com wrote:
> >>> From: Sylvain Lemieux <slemieux@tycoint.com>
> >>>
> >>> The following errors are display in the console during the power-on:
> >>> [ 0.000000] lpc32xx_usb_clk_init: failed to register (null) clock: -12
> >>> [ 0.000000] lpc32xx_clk_init: failed to register (null) clock: -12
> >>>
> >>> There is no need to prepare clock "0"; the first clock used is 1;
> >>>
> >>> Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
> >>> ---
> >>
> >> Do you mean register instead of prepare? Change looks ok
> >> otherwise.
> >>
> > Should read register in the description;
> > I will submit a new version of the patch tomorrow.
> >
>
> thanks for catching this leftover after renumbering clocks starting from 1.
>
> Feel free to add to v2
>
> Acked-by: Vladimir Zapolskiy <vz@mleia.com>
>
I subbed register for prepare and added this ack and pushed to
clk-next.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-02-10 0:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-09 18:29 [PATCH] clk: lpc32xx: do not prepare clock "0" slemieux.tyco
2016-02-09 19:03 ` Stephen Boyd
2016-02-09 20:11 ` Sylvain Lemieux
2016-02-09 23:45 ` Vladimir Zapolskiy
2016-02-10 0:19 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox