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)
commit9d011f3b71f635ff8e664e7e32bb764918cb1e8e
tree9428ad45c4f005fa1fcd50a918eb540cc9c2fd74
parent437ae6a1b8f2eedebfbf0f6572e19ca5c58a3f71
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