OSDN Git Service

clk: qcom: smd: Add missing pnoc clock
authorJeffrey Hugo <jeffrey.l.hugo@gmail.com>
Thu, 7 Nov 2019 19:06:15 +0000 (11:06 -0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 7 Nov 2019 21:42:03 +0000 (13:42 -0800)
commitba1d366de261981c0dd04fac44d2ce3a5eba2eaa
treee56ce29c4e756d99900e27fa14c75d7309346aa8
parent95183d381a4445cb5e3edbc678a4b6267e50a738
clk: qcom: smd: Add missing pnoc clock

When MSM8998 support was added, and analysis was done to determine what
clocks would be consumed.  That analysis had a flaw, which caused the
pnoc to be skipped.  The pnoc clock needs to be on to access the uart
for the console.  The clock is on from boot, but has no consumer votes
in the RPM.  When we attempt to boot the modem, it causes the RPM to
turn off pnoc, which kills our access to the console and causes CPU hangs.

We need pnoc to be defined, so that clk_smd_rpm_handoff() will put in
an implicit vote for linux and prevent issues when booting modem.
Hopefully pnoc can be consumed by the interconnect framework in future
so that Linux can rely on explicit votes.

Fixes: 6131dc81211c ("clk: qcom: smd: Add support for MSM8998 rpm clocks")
Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Link: https://lkml.kernel.org/r/20191107190615.5656-1-jeffrey.l.hugo@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/clk-smd-rpm.c