]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2d52fd84d5b351362f03d1c4e02e7e49dc8b6438
treec95b6a391a5d65bb4a709263cb951ad9b1abac4c
parentc6df1e85b9b2734dc131c957bd5222b26f3cc9a8
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