]> git.baikalelectronics.ru Git - kernel.git/commit
clk: ingenic: Respect CLK_SET_RATE_PARENT in .round_rate
authorPaul Cercueil <paul@crapouillou.net>
Thu, 3 Sep 2020 01:50:48 +0000 (03:50 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 14 Oct 2020 03:04:50 +0000 (20:04 -0700)
commit522eac2b33adb4d2e34af765db3de1cd68a93b6b
treef356ab90705fae3755c1af94b78fa9e7fe9e854a
parenta7fc71e13b15725ae25e3f43af04053d269e7948
clk: ingenic: Respect CLK_SET_RATE_PARENT in .round_rate

Clocks that don't have a divider are in our case all marked with the
CLK_SET_RATE_PARENT flag. In this case, the .round_rate implementation
should modify the value pointed to by parent_rate, in order to propagate
the rate change to the parent, as explained in the documentation of
clk_set_rate().

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200903015048.3091523-5-paul@crapouillou.net
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ingenic/cgu.c