diff options
author | Maxime Ripard <maxime@cerno.tech> | 2023-05-05 13:25:09 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2023-06-08 18:39:25 -0700 |
commit | aebddfe2dfaf1100cfdeb56783384868786bca05 (patch) | |
tree | 4602fa05060e9da7e2e343c609e38db8195f5698 /drivers/clk/clk-wm831x.c | |
parent | 9e3943afb2f671b0abc0aa1b381001e5e45fe976 (diff) |
clk: test: Add a determine_rate hook
The single parent clock in our kunit tests implements a mux with a
set_parent hook, but doesn't provide a determine_rate implementation.
This is not entirely unexpected, since its whole purpose it to have a
single parent. When determine_rate is missing, and since
CLK_SET_RATE_PARENT is set for all its instances, the default behaviour
of the framework will be to forward it to the current parent.
This is totally fine as far as the tests are concerned, but we'll start
to mandate a determine_rate implementation when set_parent is set, so
let's fill it with __clk_mux_determine_rate() which will have the same
behavior.
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20221018-clk-range-checks-fixes-v4-7-971d5077e7d2@cerno.tech
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-wm831x.c')
0 files changed, 0 insertions, 0 deletions