* [PATCH] clk: shmobile: fix setting paretn clock rate
@ 2014-03-31 17:47 Ben Dooks
2014-03-31 23:13 ` Mike Turquette
0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks @ 2014-03-31 17:47 UTC (permalink / raw)
To: linux-arm-kernel
If the driver needs to change a clock rate, then it must be propogated
through the MSTP clock to the parent clock (such as shdi0 -> sd0). Without
this we cannot up-rate default clocks which are really slow (such as the
mmcif1 which defaults to 12MHz where it could be running at 97MHz)
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
drivers/clk/shmobile/clk-mstp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/shmobile/clk-mstp.c b/drivers/clk/shmobile/clk-mstp.c
index 7bfdcfc..9fc754b 100644
--- a/drivers/clk/shmobile/clk-mstp.c
+++ b/drivers/clk/shmobile/clk-mstp.c
@@ -139,7 +139,7 @@ cpg_mstp_clock_register(const char *name, const char *parent_name,
init.name = name;
init.ops = &cpg_mstp_clock_ops;
- init.flags = CLK_IS_BASIC;
+ init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
init.parent_names = &parent_name;
init.num_parents = 1;
--
1.9.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] clk: shmobile: fix setting paretn clock rate
2014-03-31 17:47 [PATCH] clk: shmobile: fix setting paretn clock rate Ben Dooks
@ 2014-03-31 23:13 ` Mike Turquette
0 siblings, 0 replies; 2+ messages in thread
From: Mike Turquette @ 2014-03-31 23:13 UTC (permalink / raw)
To: linux-arm-kernel
Quoting Ben Dooks (2014-03-31 10:47:27)
> If the driver needs to change a clock rate, then it must be propogated
> through the MSTP clock to the parent clock (such as shdi0 -> sd0). Without
> this we cannot up-rate default clocks which are really slow (such as the
> mmcif1 which defaults to 12MHz where it could be running at 97MHz)
>
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Taken into clk-next.
Regards,
Mike
> ---
> drivers/clk/shmobile/clk-mstp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/shmobile/clk-mstp.c b/drivers/clk/shmobile/clk-mstp.c
> index 7bfdcfc..9fc754b 100644
> --- a/drivers/clk/shmobile/clk-mstp.c
> +++ b/drivers/clk/shmobile/clk-mstp.c
> @@ -139,7 +139,7 @@ cpg_mstp_clock_register(const char *name, const char *parent_name,
>
> init.name = name;
> init.ops = &cpg_mstp_clock_ops;
> - init.flags = CLK_IS_BASIC;
> + init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
> init.parent_names = &parent_name;
> init.num_parents = 1;
>
> --
> 1.9.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-31 23:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-31 17:47 [PATCH] clk: shmobile: fix setting paretn clock rate Ben Dooks
2014-03-31 23:13 ` 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).