diff options
author | Finley Xiao <finley.xiao@rock-chips.com> | 2016-04-12 08:43:39 (GMT) |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-04-15 22:14:45 (GMT) |
commit | 9e52cec04fd3b9b686f9256151b47fe61f7c28ef (patch) | |
tree | 27db6d694bfc6f827ee24d37ab13b58e573e0100 /include/dt-bindings | |
parent | d56f8994b6fb928f59481fabc25bcd1c2f9bd06d (diff) | |
download | linux-9e52cec04fd3b9b686f9256151b47fe61f7c28ef.tar.xz |
clk: Add clk_composite_set_rate_and_parent
When changing the clock-rate, currently a new parent is set first and a
divider adapted thereafter. This may result in the clock-rate overflowing
its target rate for a short time if the new parent has a higher rate than
the old parent.
While this often doesn't produce negative effects, it can affect components
in a voltage-scaling environment, like the GPU on the rk3399 socs, where
the voltage than simply is to low for the temporarily to high clock rate.
For general clock hirarchies this may need more extensive adaptions to
the common clock-framework, but at least for composite clocks having
both parent and rate settings it is easy to create a short-term solution to
make sure the clock-rate does not overflow the target.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'include/dt-bindings')
0 files changed, 0 insertions, 0 deletions