pmdomain: qcom: rpmpd: Set GENPD_FLAG_ACTIVE_WAKEUP
authorStephan Gerhold <stephan.gerhold@kernkonzept.com>
Tue, 14 Nov 2023 10:07:45 +0000 (11:07 +0100)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 23 Nov 2023 07:38:01 +0000 (13:08 +0530)
commit8f96e29aae31354191227ad476dc7f6147ef1d75
tree5fb342a7a65dcad32e99df68b497a7f5e2f76262
parentd6048a19a7104ce90dcc140d03dbe5796af3acd4
pmdomain: qcom: rpmpd: Set GENPD_FLAG_ACTIVE_WAKEUP

Set GENPD_FLAG_ACTIVE_WAKEUP for all RPM power domains so that power
domains necessary for wakeup/"awake path" devices are kept on across
suspend.

This is needed for example for the *_AO ("active-only") variants of the
RPMPDs used by the CPU. Those should maintain their votes also across
system suspend to ensure the CPU can keep running for the whole suspend
process (ending in a firmware call). When the RPM firmware detects that
the CPUs are in a deep idle state it will drop those votes automatically.

Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/pmdomain/qcom/rpmpd.c