clk: Parameterize clk_leaf_mux_set_rate_parent
authorStephen Boyd <sboyd@kernel.org>
Tue, 12 Sep 2023 17:55:31 +0000 (10:55 -0700)
committerStephen Boyd <sboyd@kernel.org>
Tue, 10 Oct 2023 03:08:25 +0000 (20:08 -0700)
commit831187c6946f29ba8309d386d5ca466eec8b9f79
tree3c7261b427a8e84575da3fb8dc4e7f9e1b939481
parent096b256c9a786b42199fcb63ef5d9f65c312a3f6
clk: Parameterize clk_leaf_mux_set_rate_parent

Transform the existing clk_leaf_mux_set_rate_parent test into a
parameterized test that calls the various determine rate APIs that exist
for clk providers. This ensures that whatever determine rate API is used
by a clk provider will return the correct parent in the best_parent_hw
pointer of the clk_rate_request because clk_rate_requests are forwarded
properly.

Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20230912175534.2427862-3-sboyd@kernel.org
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk_test.c