All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: remove .init from sh7709_cpu_clk_ops
@ 2009-09-14  0:48 Rafael Ignacio Zurita
  2009-09-14  2:00 ` Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Rafael Ignacio Zurita @ 2009-09-14  0:48 UTC (permalink / raw)
  To: linux-sh

It avoids to change the parent of sh7709_cpu_clk. With this change
master_clk is the parent of cpu_clk (from clk_cpg_legacy), and it
prevents the second mutex_lock(&clock_list_sem) while the first
one is still locked.

Signed-off-by: Rafael Ignacio Zurita <rizurita@yahoo.com>
---
 arch/sh/kernel/cpu/sh3/clock-sh7709.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/sh/kernel/cpu/sh3/clock-sh7709.c b/arch/sh/kernel/cpu/sh3/clock-sh7709.c
index fa30b60..f3064f9 100644
--- a/arch/sh/kernel/cpu/sh3/clock-sh7709.c
+++ b/arch/sh/kernel/cpu/sh3/clock-sh7709.c
@@ -78,7 +78,6 @@ static unsigned long cpu_clk_recalc(struct clk *clk)
 }
 
 static struct clk_ops sh7709_cpu_clk_ops = {
-	.init		= set_bus_parent,
 	.recalc		= cpu_clk_recalc,
 };
 

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

* Re: [PATCH] sh: remove .init from sh7709_cpu_clk_ops
  2009-09-14  0:48 [PATCH] sh: remove .init from sh7709_cpu_clk_ops Rafael Ignacio Zurita
@ 2009-09-14  2:00 ` Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2009-09-14  2:00 UTC (permalink / raw)
  To: linux-sh

On Sun, Sep 13, 2009 at 09:48:51PM -0300, Rafael Ignacio Zurita wrote:
> It avoids to change the parent of sh7709_cpu_clk. With this change
> master_clk is the parent of cpu_clk (from clk_cpg_legacy), and it
> prevents the second mutex_lock(&clock_list_sem) while the first
> one is still locked.
> 
> Signed-off-by: Rafael Ignacio Zurita <rizurita@yahoo.com>
> ---
>  arch/sh/kernel/cpu/sh3/clock-sh7709.c |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/sh/kernel/cpu/sh3/clock-sh7709.c b/arch/sh/kernel/cpu/sh3/clock-sh7709.c
> index fa30b60..f3064f9 100644
> --- a/arch/sh/kernel/cpu/sh3/clock-sh7709.c
> +++ b/arch/sh/kernel/cpu/sh3/clock-sh7709.c
> @@ -78,7 +78,6 @@ static unsigned long cpu_clk_recalc(struct clk *clk)
>  }
>  
>  static struct clk_ops sh7709_cpu_clk_ops = {
> -	.init		= set_bus_parent,
>  	.recalc		= cpu_clk_recalc,
>  };
>  
There is basically no way for this set_bus_parent() code to work at all
in the current scheme, so you are better off killing it off entirely. The
other case (which is currently protected by an unused ifdef) isn't going
to work either.

I'll check this in with the rest of it killed off, though ideally the
sh7709 clock framework wants to be rewritten given that it obviously does
not adhere to the legacy CPG layout very well in the first place.

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

end of thread, other threads:[~2009-09-14  2:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-14  0:48 [PATCH] sh: remove .init from sh7709_cpu_clk_ops Rafael Ignacio Zurita
2009-09-14  2:00 ` Paul Mundt

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.