]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pmdomain: qcom: rpmhpd: Skip retention level for Power Domains
authorTaniya Das <quic_tdas@quicinc.com>
Tue, 25 Jun 2024 04:33:11 +0000 (10:03 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Jul 2024 10:47:46 +0000 (12:47 +0200)
commitddab91f4b2de5c5b46e312a90107d9353087d8ea
tree0525d55b2caa7ee164b76e2a9a1af2533d962361
parentc3f38fa61af77b49866b006939479069cd451173
pmdomain: qcom: rpmhpd: Skip retention level for Power Domains

In the cases where the power domain connected to logics is allowed to
transition from a level(L)-->power collapse(0)-->retention(1) or
vice versa retention(1)-->power collapse(0)-->level(L)  will cause the
logic to lose the configurations. The ARC does not support retention
to collapse transition on MxC rails.

The targets from SM8450 onwards the PLL logics of clock controllers are
connected to MxC rails and the recommended configurations are carried
out during the clock controller probes. The MxC transition as mentioned
above should be skipped to ensure the PLL settings are intact across
clock controller power on & off.

On older targets that do not split MX into MxA and MxC does not collapse
the logic and it is parked always at RETENTION, thus this issue is never
observed on those targets.

Cc: stable@vger.kernel.org # v5.17
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
Link: https://lore.kernel.org/r/20240625-avoid_mxc_retention-v2-1-af9c2f549a5f@quicinc.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/qcom/rpmhpd.c