linux/drivers/clk
Saravana Kannan 7e0fa1b5fa clk: Fix CLK_SET_RATE_GATE flag validation in clk_set_rate().
The clk_set_rate() code shouldn't check the clock's enable count when
validating CLK_SET_RATE_GATE flag since the enable count could change after
the validation. Similar to clk_set_parent(), it should instead check the
prepare count. The prepare count should go to zero only when the end user
expects the clock to not be enabled in the future. Since the code already
grabs the prepare count before validation, it's not possible for prepare
count to change after validation and by association not possible for a well
behaving end user to enable the clock while the set rate is in progress.

Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
Reviewed-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
2012-05-15 22:42:10 -07:00
..
clk-divider.c clk: Use a separate struct for holding init data. 2012-05-01 18:13:20 -07:00
clk-fixed-factor.c clk: add a fixed factor clock 2012-05-08 14:13:25 -07:00
clk-fixed-rate.c clk: Use a separate struct for holding init data. 2012-05-01 18:13:20 -07:00
clk-gate.c clk: Use a separate struct for holding init data. 2012-05-01 18:13:20 -07:00
clk-mux.c clk: mux: assign init data 2012-05-08 14:13:07 -07:00
clk.c clk: Fix CLK_SET_RATE_GATE flag validation in clk_set_rate(). 2012-05-15 22:42:10 -07:00
clkdev.c
Kconfig clk: remove COMMON_CLK_DISABLE_UNUSED 2012-05-08 14:12:42 -07:00
Makefile clk: add a fixed factor clock 2012-05-08 14:13:25 -07:00