sh: fix clock for sh7785
PATCH 1/1 sh: fix clock for sh7785
---
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(-)
arch/sh/kernel/cpu/sh4a/clock-sh7785.c +3 -1
@@ -26,7 +26,9 @@ static int pfc_divisors[] = { 1, 1, 1, 1static 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 = {
Quoted 5 lines · Yoshihiro Shimoda
Signed-off-by Yoshihiro Shimoda <[email protected]>---
Could you apply this patch to linux-2.6.30?
If impossible, this patch is not necessary becauseclock-sh7785.cwill 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
Quoted 8 lines · Magnus Damm
Quoted 5 lines · Yoshihiro Shimoda
Signed-off-by Yoshihiro Shimoda <[email protected]>---
Could you apply this patch to linux-2.6.30?
If impossible, this patch is not necessary becauseclock-sh7785.cwill modify in linux-2.6.31.
Quoted 5 lines
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