]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: scmi: migrate round_rate() to determine_rate()
authorBrian Masney <bmasney@redhat.com>
Wed, 27 Aug 2025 17:12:07 +0000 (13:12 -0400)
committerBrian Masney <bmasney@redhat.com>
Mon, 8 Sep 2025 16:50:56 +0000 (12:50 -0400)
commit80cb2b6edd8368f7e1e8bf2f66aabf57aa7de4b7
tree4e00c991730e79a4fbda28f93f5662f95bf5062e
parentd8a97749bab7f4e1561ba52e41b576175897b13f
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>
drivers/clk/clk-scmi.c