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

Skip to content
Commit ab203352 authored by Matt Wagantall's avatar Matt Wagantall Committed by Stephen Boyd
Browse files

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: default avatarMatt Wagantall <mattw@codeaurora.org>
parent e0a7112b
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