]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: Return highest rate when round_rate() exceeds plan
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 16 May 2014 23:07:10 +0000 (16:07 -0700)
committerMike Turquette <mturquette@linaro.org>
Thu, 29 May 2014 16:30:22 +0000 (09:30 -0700)
commitfe3f213dd036656ac55eb86ec59f1874e834fffc
tree9428ad45c4f005fa1fcd50a918eb540cc9c2fd74
parentf45d5de7fbbd3779a99a7b246ce5d7b26335bf29
clk: qcom: Return highest rate when round_rate() exceeds plan

Some drivers may want to call clk_set_rate() with a very large
number to force the clock to go as fast as it possibly can
without having to know the range between the highest rate and
second highest rate. Add support for this by defaulting to the
highest rate in the frequency table if we can't find a frequency
greater than what is requested.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/qcom/clk-rcg2.c