Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2ee4021c authored by Vikram Mulukutla's avatar Vikram Mulukutla
Browse files

qcom: clock-generic: Check if a parent is already at a requested rate



If it is guaranteed that taking the prepare lock of a
clock ensures that the rate of downstream sources cannot
change, a mux between that clock and those downstream sources
can safely check the rate of those sources using clk_get_rate
and use clk_round_rate to request new rates.

Sometimes, the first source on a mux may be able to support a
requested rate, but a subsequent source may already be at that
rate. Use clk_get_rate instead of clk_round_rate to find the
latter source instead of reprogramming the former.

Change-Id: I950a04e005c413559b392d847ef3dff4f7d61ef5
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent 3511ae2a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment