]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Add clk_drop_range
authorMaxime Ripard <maxime@cerno.tech>
Fri, 25 Feb 2022 14:35:29 +0000 (15:35 +0100)
committerStephen Boyd <sboyd@kernel.org>
Sat, 12 Mar 2022 03:15:03 +0000 (19:15 -0800)
commitcf86a0184373e0d495c2b4d45e90bafcbdedc580
treeab81413331c8fc78080bb4c17b2a7d6c2c8bb3a0
parent757ba29484fa7f92136521b385a67b4faac38263
clk: Add clk_drop_range

In order to reset the range on a clock, we need to call
clk_set_rate_range with a minimum of 0 and a maximum of ULONG_MAX. Since
it's fairly inconvenient, let's introduce a clk_drop_range() function
that will do just this.

Suggested-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220225143534.405820-8-maxime@cerno.tech
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk_test.c
include/linux/clk.h