* [PATCH] clk: versatile: add min/max rate boundaries for vexpress osc clock
@ 2017-11-10 16:06 Sudeep Holla
2018-02-19 15:55 ` Sudeep Holla
2018-03-16 22:30 ` Stephen Boyd
0 siblings, 2 replies; 4+ messages in thread
From: Sudeep Holla @ 2017-11-10 16:06 UTC (permalink / raw)
To: linux-kernel
Cc: Liviu Dudau, Sudeep Holla, Michael Turquette, Stephen Boyd, linux-clk
Clock framework has a provider API(clk_hw_set_rate_range) to set the
min/max rate of a clock. Use the same to set the boundaries for the
vexpress osc clock.
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: linux-clk@vger.kernel.org
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
---
drivers/clk/versatile/clk-vexpress-osc.c | 1 +
1 file changed, 1 insertion(+)
Hi Stephen,
Just a quick question, does the clk core ensure the round_rate request
to the clock provider is within this bounds ? A quick grep suggests it's
used after the call to round_rate in clk_calc_new_rates. I can't recall
the details from when you introduced clk_hw_set_rate_range.
Regards,
Sudeep
diff --git a/drivers/clk/versatile/clk-vexpress-osc.c b/drivers/clk/versatile/clk-vexpress-osc.c
index e7a868b83fe5..d3b5af2a02ab 100644
--- a/drivers/clk/versatile/clk-vexpress-osc.c
+++ b/drivers/clk/versatile/clk-vexpress-osc.c
@@ -104,6 +104,7 @@ static int vexpress_osc_probe(struct platform_device *pdev)
return PTR_ERR(clk);
of_clk_add_provider(pdev->dev.of_node, of_clk_src_simple_get, clk);
+ clk_hw_set_rate_range(&osc->hw, osc->rate_min, osc->rate_max);
dev_dbg(&pdev->dev, "Registered clock '%s'\n", init.name);
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: versatile: add min/max rate boundaries for vexpress osc clock
2017-11-10 16:06 [PATCH] clk: versatile: add min/max rate boundaries for vexpress osc clock Sudeep Holla
@ 2018-02-19 15:55 ` Sudeep Holla
2018-03-16 22:30 ` Stephen Boyd
2018-03-16 22:30 ` Stephen Boyd
1 sibling, 1 reply; 4+ messages in thread
From: Sudeep Holla @ 2018-02-19 15:55 UTC (permalink / raw)
To: open list
Cc: Liviu Dudau, Sudeep Holla, Michael Turquette, Stephen Boyd, linux-clk
On Fri, Nov 10, 2017 at 4:06 PM, Sudeep Holla <sudeep.holla@arm.com> wrote:
> Clock framework has a provider API(clk_hw_set_rate_range) to set the
> min/max rate of a clock. Use the same to set the boundaries for the
> vexpress osc clock.
>
> Cc: Michael Turquette <mturquette@baylibre.com>
> Cc: Stephen Boyd <sboyd@codeaurora.org>
> Cc: linux-clk@vger.kernel.org
> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
> ---
> drivers/clk/versatile/clk-vexpress-osc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> Hi Stephen,
>
> Just a quick question, does the clk core ensure the round_rate request
> to the clock provider is within this bounds ? A quick grep suggests it's
> used after the call to round_rate in clk_calc_new_rates. I can't recall
> the details from when you introduced clk_hw_set_rate_range.
>
Ping !
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: versatile: add min/max rate boundaries for vexpress osc clock
2018-02-19 15:55 ` Sudeep Holla
@ 2018-03-16 22:30 ` Stephen Boyd
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2018-03-16 22:30 UTC (permalink / raw)
To: Sudeep Holla, open list
Cc: Liviu Dudau, Sudeep Holla, Michael Turquette, Stephen Boyd, linux-clk
Quoting Sudeep Holla (2018-02-19 07:55:37)
> On Fri, Nov 10, 2017 at 4:06 PM, Sudeep Holla <sudeep.holla@arm.com> wrote:
> > Clock framework has a provider API(clk_hw_set_rate_range) to set the
> > min/max rate of a clock. Use the same to set the boundaries for the
> > vexpress osc clock.
> >
> > Cc: Michael Turquette <mturquette@baylibre.com>
> > Cc: Stephen Boyd <sboyd@codeaurora.org>
> > Cc: linux-clk@vger.kernel.org
> > Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
> > ---
> > drivers/clk/versatile/clk-vexpress-osc.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > Hi Stephen,
> >
> > Just a quick question, does the clk core ensure the round_rate request
> > to the clock provider is within this bounds ? A quick grep suggests it's
> > used after the call to round_rate in clk_calc_new_rates. I can't recall
> > the details from when you introduced clk_hw_set_rate_range.
> >
>
> Ping !
Pong !
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: versatile: add min/max rate boundaries for vexpress osc clock
2017-11-10 16:06 [PATCH] clk: versatile: add min/max rate boundaries for vexpress osc clock Sudeep Holla
2018-02-19 15:55 ` Sudeep Holla
@ 2018-03-16 22:30 ` Stephen Boyd
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2018-03-16 22:30 UTC (permalink / raw)
To: Sudeep Holla, linux-kernel
Cc: Liviu Dudau, Sudeep Holla, Michael Turquette, Stephen Boyd, linux-clk
Quoting Sudeep Holla (2017-11-10 08:06:57)
> Clock framework has a provider API(clk_hw_set_rate_range) to set the
> min/max rate of a clock. Use the same to set the boundaries for the
> vexpress osc clock.
>
> Cc: Michael Turquette <mturquette@baylibre.com>
> Cc: Stephen Boyd <sboyd@codeaurora.org>
> Cc: linux-clk@vger.kernel.org
> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-03-16 22:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-10 16:06 [PATCH] clk: versatile: add min/max rate boundaries for vexpress osc clock Sudeep Holla
2018-02-19 15:55 ` Sudeep Holla
2018-03-16 22:30 ` Stephen Boyd
2018-03-16 22:30 ` Stephen Boyd
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).