Merge branch 'clk-phase' into clk-fixes

* clk-phase:
  clk: update cached phase to respect the fact when setting phase
This commit is contained in:
Stephen Boyd 2018-03-12 15:09:03 -07:00
commit 91584eb51b
1 changed files with 4 additions and 1 deletions

View File

@ -2309,8 +2309,11 @@ static int clk_core_set_phase_nolock(struct clk_core *core, int degrees)
trace_clk_set_phase(core, degrees);
if (core->ops->set_phase)
if (core->ops->set_phase) {
ret = core->ops->set_phase(core->hw, degrees);
if (!ret)
core->phase = degrees;
}
trace_clk_set_phase_complete(core, degrees);