clk: Introduce the clk_hw_get_rate_range function
authorMaxime Ripard <maxime@cerno.tech>
Tue, 16 Aug 2022 11:25:28 +0000 (13:25 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 15 Sep 2022 16:32:25 +0000 (09:32 -0700)
commit253993253466ba7187730b196174146d5247e97b
treec95b6a391a5d65bb4a709263cb951ad9b1abac4c
parentb46fd8dbe8ad3fe6dcd44dcdf01a736c50d90a68
clk: Introduce the clk_hw_get_rate_range function

Some clock providers are hand-crafting their clk_rate_request, and need
to figure out the current boundaries of their clk_hw to fill it
properly.

Let's create such a function for clock providers.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220816112530.1837489-24-maxime@cerno.tech
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Tested-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c
include/linux/clk-provider.h