OSDN Git Service

clk: rockchip: validity should be checked prior to cpu clock rate change
authorElaine Zhang <zhangqing@rock-chips.com>
Tue, 8 Nov 2016 09:10:14 +0000 (17:10 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 14 Nov 2016 11:20:53 +0000 (12:20 +0100)
commita554bb5fb01804a38fde3782831c9567d997939e
tree44b076daccdd72bd73208c57e5b1dd80adce89d5
parentbf92384b6d729b22916ba832b4a225ca196e98ba
clk: rockchip: validity should be checked prior to cpu clock rate change

If validity is not checked prior to clock rate change, clk_set_rate(
cpu_clk, unsupported_rate) will return success, but the real clock rate
change operation is prohibited in post clock change event. Alough post
clock change event will report error due to unsupported clock rate is
set, but this error message is ignored by clock framework.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Tested-by: Rocky Hao <rocky.hao@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk-cpu.c