]> git.baikalelectronics.ru Git - kernel.git/commit
clk: core: Force setting the phase delay when no change
authorJean-Francois Moine <moinejf@free.fr>
Wed, 24 Aug 2016 06:32:51 +0000 (08:32 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 30 Aug 2016 21:52:26 +0000 (14:52 -0700)
commit710fe8d8bf07b3a98581e23a6d5955e132551170
tree20a7de871301110dbbd452e3b916c875fbe5a214
parent726a780ff6b85b06ada21ab6681c30d44c8f4562
clk: core: Force setting the phase delay when no change

This patch reverts commit 55b32a83862d ("clk: skip unnecessary
set_phase if nothing to do"), fixing two problems:

* in some SoCs, the hardware phase delay depends on the rate ratio of
  the clock and its parent. So, changing this ratio may imply to set
  new hardware values, even if the logical delay is the same.

* when the delay was the same as previously, an error was returned.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Fixes: 55b32a83862d ("clk: skip unnecessary set_phase if nothing to do")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk.c