linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: reverse default clk provider initialization order in of_clk_init()
@ 2014-03-27 10:43 Sylwester Nawrocki
  2014-03-27 10:49 ` Sylwester Nawrocki
  2014-03-29  8:41 ` Mike Turquette
  0 siblings, 2 replies; 5+ messages in thread
From: Sylwester Nawrocki @ 2014-03-27 10:43 UTC (permalink / raw)
  To: linux-arm-kernel

This restores the default clocks registration order as parsed from
devicetree, i.e. as before commit 1771b10d605d26ccee771a7fb4b08718
"clk: respect the clock dependencies in of_clk_init", for when there
is no explicit parent clock dependencies between clock providers
specified in the device tree.

It prevents regressions (boot failure, division by 0 errors) on
imx and exynos platforms.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
---
 drivers/clk/clk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 07cba07..c859adf 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2596,7 +2596,7 @@ void __init of_clk_init(const struct of_device_id *matches)
 
 		parent->clk_init_cb = match->data;
 		parent->np = np;
-		list_add(&parent->node, &clk_provider_list);
+		list_add_tail(&parent->node, &clk_provider_list);
 	}
 
 	while (!list_empty(&clk_provider_list)) {
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH] clk: reverse default clk provider initialization order in of_clk_init()
  2014-03-27 10:43 [PATCH] clk: reverse default clk provider initialization order in of_clk_init() Sylwester Nawrocki
@ 2014-03-27 10:49 ` Sylwester Nawrocki
  2014-03-29  8:41 ` Mike Turquette
  1 sibling, 0 replies; 5+ messages in thread
From: Sylwester Nawrocki @ 2014-03-27 10:49 UTC (permalink / raw)
  To: linux-arm-kernel

On 27/03/14 11:43, Sylwester Nawrocki wrote:
> This restores the default clocks registration order as parsed from
> devicetree, i.e. as before commit 1771b10d605d26ccee771a7fb4b08718
> "clk: respect the clock dependencies in of_clk_init", for when there
> is no explicit parent clock dependencies between clock providers
> specified in the device tree.
> 
> It prevents regressions (boot failure, division by 0 errors) on
> imx and exynos platforms.
> 
> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>

Oops, I've forgotten to add:

Tested-by: Fabio Estevam <fabio.estevam@freescale.com>

> ---
>  drivers/clk/clk.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
> index 07cba07..c859adf 100644
> --- a/drivers/clk/clk.c
> +++ b/drivers/clk/clk.c
> @@ -2596,7 +2596,7 @@ void __init of_clk_init(const struct of_device_id *matches)
>  
>  		parent->clk_init_cb = match->data;
>  		parent->np = np;
> -		list_add(&parent->node, &clk_provider_list);
> +		list_add_tail(&parent->node, &clk_provider_list);
>  	}
>  
>  	while (!list_empty(&clk_provider_list)) {

-- 
Regards,
Sylwester

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] clk: reverse default clk provider initialization order in of_clk_init()
  2014-03-27 10:43 [PATCH] clk: reverse default clk provider initialization order in of_clk_init() Sylwester Nawrocki
  2014-03-27 10:49 ` Sylwester Nawrocki
@ 2014-03-29  8:41 ` Mike Turquette
  2014-03-31 15:00   ` Kevin Hilman
  1 sibling, 1 reply; 5+ messages in thread
From: Mike Turquette @ 2014-03-29  8:41 UTC (permalink / raw)
  To: linux-arm-kernel

Quoting Sylwester Nawrocki (2014-03-27 03:43:32)
> This restores the default clocks registration order as parsed from
> devicetree, i.e. as before commit 1771b10d605d26ccee771a7fb4b08718
> "clk: respect the clock dependencies in of_clk_init", for when there
> is no explicit parent clock dependencies between clock providers
> specified in the device tree.
> 
> It prevents regressions (boot failure, division by 0 errors) on
> imx and exynos platforms.
> 
> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>

I pulled this into clk-next but it didn't seem to get picked up by
linux-next in time for today's build. Let's test the next linux-next to
insure that the regressions are gone. If not then I'll likely need to
drop "clk: respect the clock dependencies in of_clk_init" from clk-next
for 3.15.

Regards,
Mike

> ---
>  drivers/clk/clk.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
> index 07cba07..c859adf 100644
> --- a/drivers/clk/clk.c
> +++ b/drivers/clk/clk.c
> @@ -2596,7 +2596,7 @@ void __init of_clk_init(const struct of_device_id *matches)
>  
>                 parent->clk_init_cb = match->data;
>                 parent->np = np;
> -               list_add(&parent->node, &clk_provider_list);
> +               list_add_tail(&parent->node, &clk_provider_list);
>         }
>  
>         while (!list_empty(&clk_provider_list)) {
> -- 
> 1.7.9.5
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] clk: reverse default clk provider initialization order in of_clk_init()
  2014-03-29  8:41 ` Mike Turquette
@ 2014-03-31 15:00   ` Kevin Hilman
  2014-03-31 17:05     ` Mike Turquette
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Hilman @ 2014-03-31 15:00 UTC (permalink / raw)
  To: linux-arm-kernel

Mike Turquette <mturquette@linaro.org> writes:

> Quoting Sylwester Nawrocki (2014-03-27 03:43:32)
>> This restores the default clocks registration order as parsed from
>> devicetree, i.e. as before commit 1771b10d605d26ccee771a7fb4b08718
>> "clk: respect the clock dependencies in of_clk_init", for when there
>> is no explicit parent clock dependencies between clock providers
>> specified in the device tree.
>> 
>> It prevents regressions (boot failure, division by 0 errors) on
>> imx and exynos platforms.
>> 
>> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
>
> I pulled this into clk-next but it didn't seem to get picked up by
> linux-next in time for today's build. Let's test the next linux-next to
> insure that the regressions are gone. If not then I'll likely need to
> drop "clk: respect the clock dependencies in of_clk_init" from clk-next
> for 3.15.

It looks like all the boot failures caused by this problem are gone as
of next-20140331[1], so it looks good to me.

Kevin

[1] http://lists.linaro.org/pipermail/kernel-build-reports/2014-March/002988.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] clk: reverse default clk provider initialization order in of_clk_init()
  2014-03-31 15:00   ` Kevin Hilman
@ 2014-03-31 17:05     ` Mike Turquette
  0 siblings, 0 replies; 5+ messages in thread
From: Mike Turquette @ 2014-03-31 17:05 UTC (permalink / raw)
  To: linux-arm-kernel

Quoting Kevin Hilman (2014-03-31 08:00:18)
> Mike Turquette <mturquette@linaro.org> writes:
> 
> > Quoting Sylwester Nawrocki (2014-03-27 03:43:32)
> >> This restores the default clocks registration order as parsed from
> >> devicetree, i.e. as before commit 1771b10d605d26ccee771a7fb4b08718
> >> "clk: respect the clock dependencies in of_clk_init", for when there
> >> is no explicit parent clock dependencies between clock providers
> >> specified in the device tree.
> >> 
> >> It prevents regressions (boot failure, division by 0 errors) on
> >> imx and exynos platforms.
> >> 
> >> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
> >
> > I pulled this into clk-next but it didn't seem to get picked up by
> > linux-next in time for today's build. Let's test the next linux-next to
> > insure that the regressions are gone. If not then I'll likely need to
> > drop "clk: respect the clock dependencies in of_clk_init" from clk-next
> > for 3.15.
> 
> It looks like all the boot failures caused by this problem are gone as
> of next-20140331[1], so it looks good to me.

Great, thanks for testing and letting us know!

Regards,
Mike

> 
> Kevin
> 
> [1] http://lists.linaro.org/pipermail/kernel-build-reports/2014-March/002988.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-31 17:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-27 10:43 [PATCH] clk: reverse default clk provider initialization order in of_clk_init() Sylwester Nawrocki
2014-03-27 10:49 ` Sylwester Nawrocki
2014-03-29  8:41 ` Mike Turquette
2014-03-31 15:00   ` Kevin Hilman
2014-03-31 17:05     ` Mike Turquette

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).