Skip to content

Commit 8f96e29

Browse files
stephan-ghvireshk
authored andcommitted
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>
1 parent d6048a1 commit 8f96e29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pmdomain/qcom/rpmpd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,7 @@ static int rpmpd_probe(struct platform_device *pdev)
10441044
rpmpds[i]->pd.power_off = rpmpd_power_off;
10451045
rpmpds[i]->pd.power_on = rpmpd_power_on;
10461046
rpmpds[i]->pd.set_performance_state = rpmpd_set_performance;
1047+
rpmpds[i]->pd.flags = GENPD_FLAG_ACTIVE_WAKEUP;
10471048
pm_genpd_init(&rpmpds[i]->pd, NULL, true);
10481049

10491050
data->domains[i] = &rpmpds[i]->pd;

0 commit comments

Comments
 (0)