]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: meson: honor CLK_MUX_ROUND_CLOSEST in clk_regmap
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 9 Apr 2018 13:59:21 +0000 (15:59 +0200)
committerStephen Boyd <sboyd@kernel.org>
Mon, 16 Apr 2018 16:25:09 +0000 (09:25 -0700)
commit6cc1eb507855612a983f9a66a9a13cdd48e16852
tree933d82672108eaaf4e3cbdae6ad46ff1916be6f4
parent4ad69b80e886a845f56ce0a3d10211208693d92b
clk: meson: honor CLK_MUX_ROUND_CLOSEST in clk_regmap

Using __clk_mux_determine_rate effectively ignores CLK_MUX_ROUND_CLOSEST
if set the related clk_regmap mux instance.

Use clk_mux_determine_rate_flags() to make sure the flag is honored.

Fixes: ea11dda9e091 ("clk: meson: add regmap clocks")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/meson/clk-regmap.c