PM: domains: Allow a genpd consumer to require a synced power off
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 2 Jan 2023 10:48:27 +0000 (16:18 +0530)
committerBjorn Andersson <andersson@kernel.org>
Tue, 10 Jan 2023 17:07:10 +0000 (11:07 -0600)
commita9236a0aa7d7f52a974cc7eaa971fae92aa477c5
tree6357a9433b6d9b976dd798f6a2fe95ebba2a9035
parent1b929c02afd37871d5afb9d498426f83432e71c2
PM: domains: Allow a genpd consumer to require a synced power off

Some genpd providers doesn't ensure that it has turned off at hardware.
This is fine until the consumer really requires during some special
scenarios that the power domain collapse at hardware before it is
turned ON again.

An example is the reset sequence of Adreno GPU which requires that the
'gpucc cx gdsc' power domain should move to OFF state in hardware at
least once before turning in ON again to clear the internal state.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Akhil P Oommen <quic_akhilpo@quicinc.com>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230102161757.v5.1.I3e6b1f078ad0f1ca9358c573daa7b70ec132cdbe@changeid
drivers/base/power/domain.c
include/linux/pm_domain.h