]> www.infradead.org Git - users/jedix/linux-maple.git/log
users/jedix/linux-maple.git
5 weeks agoclk: microchip: core: remove duplicate roclk_determine_rate()
Brian Masney [Sun, 28 Sep 2025 00:34:34 +0000 (20:34 -0400)]
clk: microchip: core: remove duplicate roclk_determine_rate()

Fix compiler error caused by the round_rate() to determine_rate()
migration.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202509280327.jsapR0Ww-lkp@intel.com/
Signed-off-by: Brian Masney <bmasney@redhat.com>
Fixes: e9f039c08cdc ("clk: microchip: core: convert from round_rate() to determine_rate()")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
7 weeks agoclk: nxp: Fix pll0 rate check condition in LPC18xx CGU driver
Alok Tiwari [Sun, 6 Jul 2025 20:11:55 +0000 (13:11 -0700)]
clk: nxp: Fix pll0 rate check condition in LPC18xx CGU driver

The conditional check for the PLL0 multiplier 'm' used a logical AND
instead of OR, making the range check ineffective. This patch replaces
&& with || to correctly reject invalid values of 'm' that are either
less than or equal to 0 or greater than LPC18XX_PLL0_MSEL_MAX.

This ensures proper bounds checking during clk rate setting and rounding.

Fixes: b04e0b8fd544 ("clk: add lpc18xx cgu clk driver")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
[sboyd@kernel.org: 'm' is unsigned so remove < condition]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
8 weeks agoMerge tag 'clk-round-rate-6.18' of https://github.com/masneyb/linux into clk-determin...
Stephen Boyd [Sat, 13 Sep 2025 22:08:27 +0000 (15:08 -0700)]
Merge tag 'clk-round-rate-6.18' of https://github.com/masneyb/linux into clk-determine-rate

Pull clk_ops::round_rate conversion to clk_ops::determine_rate() from Brian Masney:

The round_rate() clk ops is deprecated in the clk framework in favor
of the determine_rate() clk ops, so let's go ahead and convert the
various clk drivers using the Coccinelle semantic patch posted below.
I did some minor cosmetic cleanups of the code in some cases.

Coccinelle semantic patch:

    virtual patch

    // Look up the current name of the round_rate function
    @ has_round_rate @
    identifier round_rate_name =~ ".*_round_rate";
    identifier hw_param, rate_param, parent_rate_param;
    @@

    long round_rate_name(struct clk_hw *hw_param, unsigned long rate_param,
                  unsigned long *parent_rate_param)
    {
        ...
    }

    // Rename the route_rate function name to determine_rate()
    @ script:python generate_name depends on has_round_rate @
    round_rate_name << has_round_rate.round_rate_name;
    new_name;
    @@

    coccinelle.new_name = round_rate_name.replace("_round_rate", "_determine_rate")

    // Change rate to req->rate; also change occurrences of 'return XXX'.
    @ chg_rate depends on generate_name @
    identifier has_round_rate.round_rate_name;
    identifier has_round_rate.hw_param;
    identifier has_round_rate.rate_param;
    identifier has_round_rate.parent_rate_param;
    identifier ERR =~ "E.*";
    expression E;
    @@

    long round_rate_name(struct clk_hw *hw_param, unsigned long rate_param,
                  unsigned long *parent_rate_param)
    {
    <...
    (
    -return -ERR;
    +return -ERR;
    |
    - return rate_param;
    + return 0;
    |
    - return E;
    + req->rate = E;
    +
    + return 0;
    |
    - rate_param
    + req->rate
    )
    ...>
    }

    // Coccinelle only transforms the first occurrence of the rate parameter
    // Run a second time. FIXME: Is there a better way to do this?
    @ chg_rate2 depends on generate_name @
    identifier has_round_rate.round_rate_name;
    identifier has_round_rate.hw_param;
    identifier has_round_rate.rate_param;
    identifier has_round_rate.parent_rate_param;
    @@

    long round_rate_name(struct clk_hw *hw_param, unsigned long rate_param,
                  unsigned long *parent_rate_param)
    {
    <...
    - rate_param
    + req->rate
    ...>
    }

    // Change parent_rate to req->best_parent_rate
    @ chg_parent_rate depends on generate_name @
    identifier has_round_rate.round_rate_name;
    identifier has_round_rate.hw_param;
    identifier has_round_rate.rate_param;
    identifier has_round_rate.parent_rate_param;
    @@

    long round_rate_name(struct clk_hw *hw_param, unsigned long rate_param,
                  unsigned long *parent_rate_param)
    {
    <...
    (
    - *parent_rate_param
    + req->best_parent_rate
    |
    - parent_rate_param
    + &req->best_parent_rate
    )
    ...>
    }

    // Convert the function definition from round_rate() to determine_rate()
    @ func_definition depends on chg_rate @
    identifier has_round_rate.round_rate_name;
    identifier has_round_rate.hw_param;
    identifier has_round_rate.rate_param;
    identifier has_round_rate.parent_rate_param;
    identifier generate_name.new_name;
    @@

    - long round_rate_name(struct clk_hw *hw_param, unsigned long rate_param,
    -               unsigned long *parent_rate_param)
    + int new_name(struct clk_hw *hw, struct clk_rate_request *req)
    {
        ...
    }

    // Update the ops from round_rate() to determine_rate()
    @ ops depends on func_definition @
    identifier has_round_rate.round_rate_name;
    identifier generate_name.new_name;
    @@

    {
        ...,
    -   .round_rate = round_rate_name,
    +   .determine_rate = new_name,
        ...,
    }

Note that I used coccinelle 1.2 instead of 1.3 since the newer version
adds unnecessary braces as described in this post.
https://lore.kernel.org/cocci/67642477-5f3e-4b2a-914d-579a54f48cbd@intel.com/

* tag 'clk-round-rate-6.18' of https://github.com/masneyb/linux: (118 commits)
  clk: scmi: migrate round_rate() to determine_rate()
  clk: ti: fapll: convert from round_rate() to determine_rate()
  clk: ti: dra7-atl: convert from round_rate() to determine_rate()
  clk: ti: divider: convert from round_rate() to determine_rate()
  clk: ti: composite: convert from round_rate() to determine_rate()
  clk: ti: dpll: convert from round_rate() to determine_rate()
  clk: ti: dpll: change error return from ~0 to -EINVAL
  clk: ti: dpll: remove round_rate() in favor of determine_rate()
  clk: tegra: tegra210-emc: convert from round_rate() to determine_rate()
  clk: tegra: super: convert from round_rate() to determine_rate()
  clk: tegra: pll: convert from round_rate() to determine_rate()
  clk: tegra: periph: divider: convert from round_rate() to determine_rate()
  clk: tegra: divider: convert from round_rate() to determine_rate()
  clk: tegra: audio-sync: convert from round_rate() to determine_rate()
  clk: fixed-factor: drop round_rate() clk ops
  clk: divider: remove round_rate() in favor of determine_rate()
  clk: visconti: pll: convert from round_rate() to determine_rate()
  clk: versatile: vexpress-osc: convert from round_rate() to determine_rate()
  clk: versatile: icst: convert from round_rate() to determine_rate()
  clk: versaclock7: convert from round_rate() to determine_rate()
  ...

2 months agoclk: scmi: migrate round_rate() to determine_rate()
Brian Masney [Wed, 27 Aug 2025 17:12:07 +0000 (13:12 -0400)]
clk: scmi: migrate round_rate() to determine_rate()

This driver implements both the determine_rate() and round_rate() clk
ops, and the round_rate() clk ops is deprecated. When both are defined,
clk_core_determine_round_nolock() from the clk core will only use the
determine_rate() clk ops.

The existing scmi_clk_determine_rate() is a noop implementation that
lets the firmware round the rate as appropriate. Drop the existing
determine_rate implementation and convert the existing round_rate()
implementation over to determine_rate().

scmi_clk_determine_rate() was added recently when the clock parent
support was added, so it's not expected that this change will regress
anything.

Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Tested-by: Peng Fan <peng.fan@nxp.com> #i.MX95-19x19-EVK
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: ti: fapll: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 12:48:12 +0000 (08:48 -0400)]
clk: ti: fapll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Tested-by: Anddreas Kemnade <andreas@kemnade.info> # OMAP3 GTA04, OMAP4 Panda
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: ti: dra7-atl: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 12:48:11 +0000 (08:48 -0400)]
clk: ti: dra7-atl: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Tested-by: Anddreas Kemnade <andreas@kemnade.info> # OMAP3 GTA04, OMAP4 Panda
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: ti: divider: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 12:48:10 +0000 (08:48 -0400)]
clk: ti: divider: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Tested-by: Anddreas Kemnade <andreas@kemnade.info> # OMAP3 GTA04, OMAP4 Panda
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: ti: composite: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 12:48:09 +0000 (08:48 -0400)]
clk: ti: composite: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Tested-by: Anddreas Kemnade <andreas@kemnade.info> # OMAP3 GTA04, OMAP4 Panda
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: ti: dpll: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 12:48:08 +0000 (08:48 -0400)]
clk: ti: dpll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate(). Part of these changes were done
using the Coccinelle semantic patch on the cover letter of this
series, and the rest of the changes were manually done.

omap4_dpll_regm4xen_round_rate() is now only called by
omap4_dpll_regm4xen_determine_rate(), so let's merge that functionality
into one function. This is needed for another cleanup to completely
remove the round_rate() clk ops from the clk core.

Tested-by: Anddreas Kemnade <andreas@kemnade.info> # OMAP3 GTA04, OMAP4 Panda
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: ti: dpll: change error return from ~0 to -EINVAL
Brian Masney [Mon, 11 Aug 2025 12:48:07 +0000 (08:48 -0400)]
clk: ti: dpll: change error return from ~0 to -EINVAL

When the requested rate cannot be achieved, omap2_dpll_round_rate()
will return ~0. Let's change this to -EINVAL to make the code a little
cleaner to read. This is no functional change.

Tested-by: Anddreas Kemnade <andreas@kemnade.info> # OMAP3 GTA04, OMAP4 Panda
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: ti: dpll: remove round_rate() in favor of determine_rate()
Brian Masney [Mon, 11 Aug 2025 12:48:06 +0000 (08:48 -0400)]
clk: ti: dpll: remove round_rate() in favor of determine_rate()

This driver implements both the determine_rate() and round_rate() clk
ops, and the round_rate() clk ops is deprecated. When both are defined,
clk_core_determine_round_nolock() from the clk core will only use the
determine_rate() clk ops, so let's remove the round_rate() clk ops since
it's unused.

Tested-by: Anddreas Kemnade <andreas@kemnade.info> # OMAP3 GTA04, OMAP4 Panda
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: tegra: tegra210-emc: convert from round_rate() to determine_rate()
Brian Masney [Wed, 3 Sep 2025 15:15:07 +0000 (11:15 -0400)]
clk: tegra: tegra210-emc: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: tegra: super: convert from round_rate() to determine_rate()
Brian Masney [Wed, 3 Sep 2025 15:15:06 +0000 (11:15 -0400)]
clk: tegra: super: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate().

Note that this change also requires the same migration to
drivers/clk/tegra/clk-divider.c.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: tegra: pll: convert from round_rate() to determine_rate()
Brian Masney [Wed, 3 Sep 2025 15:15:05 +0000 (11:15 -0400)]
clk: tegra: pll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: tegra: periph: divider: convert from round_rate() to determine_rate()
Brian Masney [Wed, 3 Sep 2025 15:15:04 +0000 (11:15 -0400)]
clk: tegra: periph: divider: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate().

Note that this change also requires the same migration to
drivers/clk/tegra/clk-divider.c.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: tegra: divider: convert from round_rate() to determine_rate()
Brian Masney [Wed, 3 Sep 2025 15:15:03 +0000 (11:15 -0400)]
clk: tegra: divider: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: tegra: audio-sync: convert from round_rate() to determine_rate()
Brian Masney [Wed, 3 Sep 2025 15:15:02 +0000 (11:15 -0400)]
clk: tegra: audio-sync: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: fixed-factor: drop round_rate() clk ops
Brian Masney [Mon, 11 Aug 2025 15:19:46 +0000 (11:19 -0400)]
clk: fixed-factor: drop round_rate() clk ops

This driver implements both the determine_rate() and round_rate() clk
ops, and the round_rate() clk ops is deprecated. When both are defined,
clk_core_determine_round_nolock() from the clk core will only use the
determine_rate() clk ops. Also all clk drivers that directly calls
fixed-factor's round_rate() have been migrated over to determine_rate().
So let's remove the round_rate() clk ops.

Reviewed-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: divider: remove round_rate() in favor of determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:43 +0000 (11:19 -0400)]
clk: divider: remove round_rate() in favor of determine_rate()

This driver implements both the determine_rate() and round_rate() clk
ops, and the round_rate() clk ops is deprecated. When both are defined,
clk_core_determine_round_nolock() from the clk core will only use the
determine_rate() clk ops. Also all clk drivers that directly calls
divider's round_rate() have been migrated over to determine_rate(). So
let's remove the round_rate() clk ops.

Reviewed-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: visconti: pll: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:42 +0000 (11:19 -0400)]
clk: visconti: pll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: versatile: vexpress-osc: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:41 +0000 (11:19 -0400)]
clk: versatile: vexpress-osc: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: versatile: icst: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:40 +0000 (11:19 -0400)]
clk: versatile: icst: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: versaclock7: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:39 +0000 (11:19 -0400)]
clk: versaclock7: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: versaclock5: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:38 +0000 (11:19 -0400)]
clk: versaclock5: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: ux500: prcmu: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:37 +0000 (11:19 -0400)]
clk: ux500: prcmu: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: spear: vco-pll: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:36 +0000 (11:19 -0400)]
clk: spear: vco-pll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: spear: gpt-synth: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:35 +0000 (11:19 -0400)]
clk: spear: gpt-synth: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: spear: frac-synth: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:34 +0000 (11:19 -0400)]
clk: spear: frac-synth: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: spear: aux-synth: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:33 +0000 (11:19 -0400)]
clk: spear: aux-synth: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: sp7021: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:32 +0000 (11:19 -0400)]
clk: sp7021: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: rockchip: pll: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:28 +0000 (11:19 -0400)]
clk: rockchip: pll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: rockchip: ddr: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:26 +0000 (11:19 -0400)]
clk: rockchip: ddr: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: qcom: regmap-divider: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:23 +0000 (11:19 -0400)]
clk: qcom: regmap-divider: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Note that prior to running the Coccinelle, div_round_ro_rate() was
renamed to div_ro_round_rate().

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: mvebu: dove-divider: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:21 +0000 (11:19 -0400)]
clk: mvebu: dove-divider: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: mvebu: cpu: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:20 +0000 (11:19 -0400)]
clk: mvebu: cpu: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: mvebu: corediv: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:19 +0000 (11:19 -0400)]
clk: mvebu: corediv: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: mvebu: armada-37xx-periph: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:18 +0000 (11:19 -0400)]
clk: mvebu: armada-37xx-periph: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: mvebu: ap-cpu-clk: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:17 +0000 (11:19 -0400)]
clk: mvebu: ap-cpu-clk: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: mstar: msc313-cpupll: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:16 +0000 (11:19 -0400)]
clk: mstar: msc313-cpupll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Daniel Palmer <daniel@thingy.jp>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: microchip: core: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:15 +0000 (11:19 -0400)]
clk: microchip: core: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: mediatek: pll: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:14 +0000 (11:19 -0400)]
clk: mediatek: pll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: hsdk-pll: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:13 +0000 (11:19 -0400)]
clk: hsdk-pll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: cdce706: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:12 +0000 (11:19 -0400)]
clk: cdce706: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: bm1880: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:11 +0000 (11:19 -0400)]
clk: bm1880: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: bcm: iproc-asiu: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:10 +0000 (11:19 -0400)]
clk: bcm: iproc-asiu: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: axs10x: pll_clock: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:09 +0000 (11:19 -0400)]
clk: axs10x: pll_clock: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: axs10x: i2s_pll_clock: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:08 +0000 (11:19 -0400)]
clk: axs10x: i2s_pll_clock: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: apple-nco: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:07 +0000 (11:19 -0400)]
clk: apple-nco: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Janne Grunau <j@jannau.net>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: actions: owl-pll: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:06 +0000 (11:19 -0400)]
clk: actions: owl-pll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: actions: owl-factor: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:05 +0000 (11:19 -0400)]
clk: actions: owl-factor: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: actions: owl-divider: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:04 +0000 (11:19 -0400)]
clk: actions: owl-divider: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: actions: owl-composite: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:03 +0000 (11:19 -0400)]
clk: actions: owl-composite: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: zynq: pll: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:02 +0000 (11:19 -0400)]
clk: zynq: pll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: zynqmp: pll: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:19:01 +0000 (11:19 -0400)]
clk: zynqmp: pll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: xilinx: xlnx_vcu: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:59 +0000 (11:18 -0400)]
clk: xilinx: xlnx_vcu: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: xilinx: xlnx-clock-wizard: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:58 +0000 (11:18 -0400)]
clk: xilinx: xlnx-clock-wizard: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: xgene: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:57 +0000 (11:18 -0400)]
clk: xgene: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: wm831x: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:55 +0000 (11:18 -0400)]
clk: wm831x: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: vt8500: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:54 +0000 (11:18 -0400)]
clk: vt8500: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: versaclock3: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:53 +0000 (11:18 -0400)]
clk: versaclock3: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: tps68470: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:52 +0000 (11:18 -0400)]
clk: tps68470: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: stm32: stm32mp1: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:51 +0000 (11:18 -0400)]
clk: stm32: stm32mp1: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: stm32: stm32-core: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:50 +0000 (11:18 -0400)]
clk: stm32: stm32-core: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: stm32f4: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:49 +0000 (11:18 -0400)]
clk: stm32f4: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: st: clkgen-pll: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:48 +0000 (11:18 -0400)]
clk: st: clkgen-pll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Note that prior to running the Coccinelle:

- round_rate_stm_pll4600c28() was renamed to stm_pll4600c28_round_rate()
- round_rate_stm_pll3200c32() was renamed to stm_pll3200c32_round_rate()

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: st: clkgen-fsyn: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:47 +0000 (11:18 -0400)]
clk: st: clkgen-fsyn: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: sprd: pll: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:46 +0000 (11:18 -0400)]
clk: sprd: pll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Chunyan Zhang <zhang.lyra@gmail.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: sprd: div: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:45 +0000 (11:18 -0400)]
clk: sprd: div: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Chunyan Zhang <zhang.lyra@gmail.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: sparx5: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:44 +0000 (11:18 -0400)]
clk: sparx5: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: sophgo: cv18xx-ip: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:39 +0000 (11:18 -0400)]
clk: sophgo: cv18xx-ip: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: sifive: sifive-prci: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:38 +0000 (11:18 -0400)]
clk: sifive: sifive-prci: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Note that the changes to the three header files were done by hand.

Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: si570: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:37 +0000 (11:18 -0400)]
clk: si570: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: si544: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:36 +0000 (11:18 -0400)]
clk: si544: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: si5341: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:35 +0000 (11:18 -0400)]
clk: si5341: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: si521xx: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:34 +0000 (11:18 -0400)]
clk: si521xx: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: si514: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:33 +0000 (11:18 -0400)]
clk: si514: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: scpi: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:32 +0000 (11:18 -0400)]
clk: scpi: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: pistachio: pll: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:31 +0000 (11:18 -0400)]
clk: pistachio: pll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: nxp: lpc18xx-cgu: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:29 +0000 (11:18 -0400)]
clk: nxp: lpc18xx-cgu: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: nuvoton: ma35d1-pll: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:28 +0000 (11:18 -0400)]
clk: nuvoton: ma35d1-pll: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: nuvoton: ma35d1-divider: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:27 +0000 (11:18 -0400)]
clk: nuvoton: ma35d1-divider: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: mxs: ref: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:26 +0000 (11:18 -0400)]
clk: mxs: ref: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: mxs: frac: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:25 +0000 (11:18 -0400)]
clk: mxs: frac: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: mxs: div: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:24 +0000 (11:18 -0400)]
clk: mxs: div: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

The change to call div->ops->determine_rate() instead of
div->ops->round_rate() was done by hand.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: multiplier: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:23 +0000 (11:18 -0400)]
clk: multiplier: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: mmp: frac: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:22 +0000 (11:18 -0400)]
clk: mmp: frac: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: mmp: audio: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:21 +0000 (11:18 -0400)]
clk: mmp: audio: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: milbeaut: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:20 +0000 (11:18 -0400)]
clk: milbeaut: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: max9485: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:19 +0000 (11:18 -0400)]
clk: max9485: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: loongson1: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:18 +0000 (11:18 -0400)]
clk: loongson1: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: lmk04832: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:17 +0000 (11:18 -0400)]
clk: lmk04832: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: ingenic: x1000-cgu: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:16 +0000 (11:18 -0400)]
clk: ingenic: x1000-cgu: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: ingenic: jz4780-cgu: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:15 +0000 (11:18 -0400)]
clk: ingenic: jz4780-cgu: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: ingenic: cgu: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:14 +0000 (11:18 -0400)]
clk: ingenic: cgu: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: hisilicon: hi6220-stub: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:13 +0000 (11:18 -0400)]
clk: hisilicon: hi6220-stub: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: hisilicon: hi3660-stub: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:12 +0000 (11:18 -0400)]
clk: hisilicon: hi3660-stub: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: hisilicon: hi3660-stub: move comma from declaration of DEFINE_CLK_STUB()
Brian Masney [Mon, 11 Aug 2025 15:18:11 +0000 (11:18 -0400)]
clk: hisilicon: hi3660-stub: move comma from declaration of DEFINE_CLK_STUB()

When trying to use Coccinelle to make changes inside drivers/clk/, it
really does not like the trailing comma at the end of the declaration
of DEFINE_CLK_STUB, and fails to process this file. It also looks weird
to not have commas to separate the various array members of
hi3660_stub_clks. Let's move the trailing comma out of the define so
that Coccinelle can be ran against this source file.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: hisilicon: clkdivider-hi6220: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:10 +0000 (11:18 -0400)]
clk: hisilicon: clkdivider-hi6220: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: highbank: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:09 +0000 (11:18 -0400)]
clk: highbank: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Signed-off-by: Brian Masney <bmasney@redhat.com>
2 months agoclk: gemini: convert from round_rate() to determine_rate()
Brian Masney [Mon, 11 Aug 2025 15:18:08 +0000 (11:18 -0400)]
clk: gemini: convert from round_rate() to determine_rate()

The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Brian Masney <bmasney@redhat.com>