* Re: [PATCH] clk: clean-up simple provider misuse of the consumer API
[not found] <20260723-clk-provider-simple-clean-v1-1-0c9668240467@baylibre.com>
@ 2026-07-23 14:33 ` Brian Masney
2026-07-23 17:04 ` Jerome Brunet
0 siblings, 1 reply; 2+ messages in thread
From: Brian Masney @ 2026-07-23 14:33 UTC (permalink / raw)
To: Jerome Brunet
Cc: Andrew Lunn, Gregory Clement, Sebastian Hesselbarth,
Michael Turquette, Stephen Boyd, Bjorn Andersson,
Geert Uytterhoeven, Heiko Stuebner, Prashant Gaikwad,
Thierry Reding, Jonathan Hunter, Tero Kristo, linux-arm-kernel,
linux-clk, linux-kernel, linux-arm-msm, linux-renesas-soc,
linux-rockchip, linux-tegra, linux-omap
On Thu, Jul 23, 2026 at 03:20:59PM +0200, Jerome Brunet wrote:
> Clock provider should not be using the consumer interface.
> In other words, a provider should not be dealing with struct clk.
>
> This change targets occurrences for which the provider uses the
> consumer interface and corresponding clk_hw interface exist:
> * __clk_get_name() -> clk_hw_get_name()
> * __clk_is_enabled() -> clk_hw_is_enabled()
> * clk_get_rate() -> clk_hw_get_rate()
>
> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
> ---
> The change being very simple, I did not think it was necessary
> to split it into multiple changes. If you prefer it to be split,
> just let me know how.
> ---
> drivers/clk/mvebu/clk-cpu.c | 2 +-
> drivers/clk/qcom/clk-hfpll.c | 4 ++--
> drivers/clk/qcom/clk-krait.c | 2 +-
> drivers/clk/qcom/clk-rcg.c | 4 ++--
> drivers/clk/qcom/clk-rcg2.c | 2 +-
> drivers/clk/renesas/r9a06g032-clocks.c | 2 +-
> drivers/clk/rockchip/clk-pll.c | 24 ++++++++++++------------
> drivers/clk/st/clkgen-pll.c | 20 ++++++++++----------
> drivers/clk/tegra/clk-tegra210.c | 2 +-
> drivers/clk/ti/clockdomain.c | 2 +-
> 10 files changed, 32 insertions(+), 32 deletions(-)
This looks good to me however can you split this up by clk subsystem at
the very least so that the various submaintainers can pick up these up?
With that:
Reviewed-by: Brian Masney <bmasney@redhat.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] clk: clean-up simple provider misuse of the consumer API
2026-07-23 14:33 ` [PATCH] clk: clean-up simple provider misuse of the consumer API Brian Masney
@ 2026-07-23 17:04 ` Jerome Brunet
0 siblings, 0 replies; 2+ messages in thread
From: Jerome Brunet @ 2026-07-23 17:04 UTC (permalink / raw)
To: Brian Masney
Cc: Andrew Lunn, Gregory Clement, Sebastian Hesselbarth,
Michael Turquette, Stephen Boyd, Bjorn Andersson,
Geert Uytterhoeven, Heiko Stuebner, Prashant Gaikwad,
Thierry Reding, Jonathan Hunter, Tero Kristo, linux-arm-kernel,
linux-clk, linux-kernel, linux-arm-msm, linux-renesas-soc,
linux-rockchip, linux-tegra, linux-omap
On jeu. 23 juil. 2026 at 10:33, Brian Masney <bmasney@redhat.com> wrote:
> On Thu, Jul 23, 2026 at 03:20:59PM +0200, Jerome Brunet wrote:
>> Clock provider should not be using the consumer interface.
>> In other words, a provider should not be dealing with struct clk.
>>
>> This change targets occurrences for which the provider uses the
>> consumer interface and corresponding clk_hw interface exist:
>> * __clk_get_name() -> clk_hw_get_name()
>> * __clk_is_enabled() -> clk_hw_is_enabled()
>> * clk_get_rate() -> clk_hw_get_rate()
>>
>> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
>> ---
>> The change being very simple, I did not think it was necessary
>> to split it into multiple changes. If you prefer it to be split,
>> just let me know how.
>> ---
>> drivers/clk/mvebu/clk-cpu.c | 2 +-
>> drivers/clk/qcom/clk-hfpll.c | 4 ++--
>> drivers/clk/qcom/clk-krait.c | 2 +-
>> drivers/clk/qcom/clk-rcg.c | 4 ++--
>> drivers/clk/qcom/clk-rcg2.c | 2 +-
>> drivers/clk/renesas/r9a06g032-clocks.c | 2 +-
>> drivers/clk/rockchip/clk-pll.c | 24 ++++++++++++------------
>> drivers/clk/st/clkgen-pll.c | 20 ++++++++++----------
>> drivers/clk/tegra/clk-tegra210.c | 2 +-
>> drivers/clk/ti/clockdomain.c | 2 +-
>> 10 files changed, 32 insertions(+), 32 deletions(-)
>
> This looks good to me however can you split this up by clk subsystem at
> the very least so that the various submaintainers can pick up these up?
Will do
>
> With that:
>
> Reviewed-by: Brian Masney <bmasney@redhat.com>
--
Jerome
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-23 17:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260723-clk-provider-simple-clean-v1-1-0c9668240467@baylibre.com>
2026-07-23 14:33 ` [PATCH] clk: clean-up simple provider misuse of the consumer API Brian Masney
2026-07-23 17:04 ` Jerome Brunet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox