Re: [PATCH v2 11/12] clk: samsung: acpm: drop determine_rate op and use CLK_ROUNDING_NOOP flag
From: Tudor Ambarus
Date: Wed Mar 11 2026 - 07:52:39 EST
On 3/9/26 4:38 PM, Brian Masney wrote:
> This clk driver has a noop determine_rate clk op. Drop this empty
> function, and enable the CLK_ROUNDING_NOOP flag.
>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
> Signed-off-by: Brian Masney <bmasney@xxxxxxxxxx>
Acked-by: Tudor Ambarus <tudor.ambarus@xxxxxxxxxx>
> ---
> To: Tudor Ambarus <tudor.ambarus@xxxxxxxxxx>
> To: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
> To: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx>
> To: Chanwoo Choi <cw00.choi@xxxxxxxxxxx>
> To: Michael Turquette <mturquette@xxxxxxxxxxxx>
> To: Stephen Boyd <sboyd@xxxxxxxxxx>
> Cc: Alim Akhtar <alim.akhtar@xxxxxxxxxxx>
> Cc: linux-kernel@xxxxxxxxxxxxxxx
> Cc: linux-samsung-soc@xxxxxxxxxxxxxxx
> Cc: linux-clk@xxxxxxxxxxxxxxx
> ---
> drivers/clk/samsung/clk-acpm.c | 14 +-------------
> 1 file changed, 1 insertion(+), 13 deletions(-)
>
> diff --git a/drivers/clk/samsung/clk-acpm.c b/drivers/clk/samsung/clk-acpm.c
> index b90809ce3f882c489114c9d7299417d7fe373749..b79d973eaa0c275c508a51926ecde5349f00feba 100644
> --- a/drivers/clk/samsung/clk-acpm.c
> +++ b/drivers/clk/samsung/clk-acpm.c
> @@ -72,18 +72,6 @@ static unsigned long acpm_clk_recalc_rate(struct clk_hw *hw,
> clk->mbox_chan_id, clk->id);
> }
>
> -static int acpm_clk_determine_rate(struct clk_hw *hw,
> - struct clk_rate_request *req)
> -{
> - /*
> - * We can't figure out what rate it will be, so just return the
> - * rate back to the caller. acpm_clk_recalc_rate() will be called
> - * after the rate is set and we'll know what rate the clock is
> - * running at then.
> - */
> - return 0;
> -}
> -
> static int acpm_clk_set_rate(struct clk_hw *hw, unsigned long rate,
> unsigned long parent_rate)
> {
> @@ -95,7 +83,6 @@ static int acpm_clk_set_rate(struct clk_hw *hw, unsigned long rate,
>
> static const struct clk_ops acpm_clk_ops = {
> .recalc_rate = acpm_clk_recalc_rate,
> - .determine_rate = acpm_clk_determine_rate,
> .set_rate = acpm_clk_set_rate,
> };
>
> @@ -106,6 +93,7 @@ static int acpm_clk_register(struct device *dev, struct acpm_clk *aclk,
>
> init.name = name;
> init.ops = &acpm_clk_ops;
> + init.flags = CLK_ROUNDING_NOOP;
> aclk->hw.init = &init;
>
> return devm_clk_hw_register(dev, &aclk->hw);
>