msm: clock-rpm: Fix branch clocks so that they can be enabled
RPM branch clocks do not have settable rates. The DEFINE_CLK_RPM_BRANCH()
macro assigns hard-coded rates at compile-time which we rely on being
non-zero for rpm_clk_enable() to work.
The current handoff code queries the state of RPM clocks and assigns the
resulting rate (which can be zero) to the clock. In the case of RPM branch
clocks this is bad, since it overwrites the rate set at compile-time. This
results in branch clocks failing to enable if the queried rate was zero.
Fix this by not querying the rate RPM for branch clocks so that the rates
set at compile-time are preserved.
Change-Id: I60af67df7f0c1111920505642f94407859225858
Signed-off-by:
Matt Wagantall <mattw@codeaurora.org>
Loading
Please register or sign in to comment