* [PATCH] sh: fix clock for sh7785
@ 2009-06-10 5:35 Yoshihiro Shimoda
2009-06-10 10:55 ` Magnus Damm
2009-06-11 1:37 ` Yoshihiro Shimoda
0 siblings, 2 replies; 3+ messages in thread
From: Yoshihiro Shimoda @ 2009-06-10 5:35 UTC (permalink / raw)
To: linux-sh
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
---
Could you apply this patch to linux-2.6.30?
If impossible, this patch is not necessary because clock-sh7785.c will modify
in linux-2.6.31.
arch/sh/kernel/cpu/sh4a/clock-sh7785.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff -uprN a/arch/sh/kernel/cpu/sh4a/clock-sh7785.c b/arch/sh/kernel/cpu/sh4a/clock-sh7785.c
--- a/arch/sh/kernel/cpu/sh4a/clock-sh7785.c
+++ b/arch/sh/kernel/cpu/sh4a/clock-sh7785.c
@@ -26,7 +26,9 @@ static int pfc_divisors[] = { 1, 1, 1, 1
static void master_clk_init(struct clk *clk)
{
- clk->rate *= pfc_divisors[ctrl_inl(FRQMR1) & 0x000f];
+ unsigned long frqmr1 = ctrl_inl(FRQMR1);
+
+ clk->rate = CONFIG_SH_PCLK_FREQ * pfc_divisors[frqmr1 & 0x000f];
}
static struct clk_ops sh7785_master_clk_ops = {
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] sh: fix clock for sh7785
2009-06-10 5:35 [PATCH] sh: fix clock for sh7785 Yoshihiro Shimoda
@ 2009-06-10 10:55 ` Magnus Damm
2009-06-11 1:37 ` Yoshihiro Shimoda
1 sibling, 0 replies; 3+ messages in thread
From: Magnus Damm @ 2009-06-10 10:55 UTC (permalink / raw)
To: linux-sh
On Wed, Jun 10, 2009 at 2:35 PM, Yoshihiro
Shimoda<shimoda.yoshihiro@renesas.com> wrote:
> Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
> ---
> Could you apply this patch to linux-2.6.30?
> If impossible, this patch is not necessary because clock-sh7785.c will modify
> in linux-2.6.31.
This patch looks like a workaround for the issue solved by this patch:
http://patchwork.kernel.org/patch/22299/
Or am I misunderstanding?
/ magnus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] sh: fix clock for sh7785
2009-06-10 5:35 [PATCH] sh: fix clock for sh7785 Yoshihiro Shimoda
2009-06-10 10:55 ` Magnus Damm
@ 2009-06-11 1:37 ` Yoshihiro Shimoda
1 sibling, 0 replies; 3+ messages in thread
From: Yoshihiro Shimoda @ 2009-06-11 1:37 UTC (permalink / raw)
To: linux-sh
Magnus Damm wrote:
> On Wed, Jun 10, 2009 at 2:35 PM, Yoshihiro
> Shimoda<shimoda.yoshihiro@renesas.com> wrote:
>> Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
>> ---
>> Could you apply this patch to linux-2.6.30?
>> If impossible, this patch is not necessary because clock-sh7785.c will modify
>> in linux-2.6.31.
>
> This patch looks like a workaround for the issue solved by this patch:
>
> http://patchwork.kernel.org/patch/22299/
>
> Or am I misunderstanding?
Thank you for your comment.
Because the patch was due to be applied linux-2.6.31,
a problem remains linux-2.6.30. However since linux-2.6.30
had already been released, my patch became unnecessary :)
Thanks,
Yoshihiro Shimoda
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-11 1:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-10 5:35 [PATCH] sh: fix clock for sh7785 Yoshihiro Shimoda
2009-06-10 10:55 ` Magnus Damm
2009-06-11 1:37 ` Yoshihiro Shimoda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox