FROMLIST: clk: adjust clocks to their requested rate after parent changes
authorHeiko Stuebner <heiko@sntech.de>
Mon, 2 May 2016 16:36:21 +0000 (18:36 +0200)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 10 May 2016 11:11:30 +0000 (19:11 +0800)
commitb7a2aa66b2c81ed78a4ba94cadeb0e7e9a3126c7
tree4a2487e2c78238fc53751a10a1b9bb0fd6fe7afe
parentdd7fe1d5e1b1d5d9c66246f51aad0fdd072d7401
FROMLIST: clk: adjust clocks to their requested rate after parent changes

Given a hirarchy of clk1 -> [div] -> clk2, when the rate of clk1 gets
changed, clk2 changes as well as the divider stays the same. There may
be cases where a user of clk2 needs it at a specific rate, so clk2
needs to be readjusted for the changed rate of clk1.

So if a rate was requested for the clock, and its rate changed during
the underlying rate-change, with this change the clock framework now
tries to readjust the rate back to/near the requested one.

The whole process is protected by a new clock-flag to not force this
behaviour change onto every clock defined in the ccf.

(am from https://patchwork.kernel.org/patch/8993761/)

Change-Id: Ie2636710cb4e66815ee45b28ec86eeaaa47c55c7
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
drivers/clk/clk.c
include/linux/clk-provider.h