clk: qcom: lpasscc-sc7280: Skip qdsp6ss clock registration
authorSrinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Fri, 7 Apr 2023 09:22:54 +0000 (14:52 +0530)
committerBjorn Andersson <andersson@kernel.org>
Fri, 14 Apr 2023 03:17:12 +0000 (20:17 -0700)
commit4fc1c2d9a2b7a394f3b873aae5e03bffd8b5cd31
tree7537c1454e639b5d482d247580621212099f0142
parent5c3a7dcce10028c5839864ed475ae7930b03c1e8
clk: qcom: lpasscc-sc7280: Skip qdsp6ss clock registration

The qdsp6ss memory region is being shared by ADSP remoteproc device and
lpasscc clock device, hence causing memory conflict.
To avoid this, when qdsp6ss clocks are being enabled in remoteproc driver,
skip qdsp6ss clock registration if "qcom,adsp-pil-mode" is enabled and
also assign max_register value.

Fixes: 4ab43d171181 ("clk: qcom: Add lpass clock controller driver for SC7280")
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230407092255.119690-3-quic_mohs@quicinc.com
drivers/clk/qcom/lpasscc-sc7280.c