]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpuidle: psci: Activate GENPD_FLAG_ACTIVE_WAKEUP with OSI
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 19 Nov 2024 13:18:34 +0000 (14:18 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 10 Dec 2024 10:57:32 +0000 (11:57 +0100)
commitbfd5859709ee72f8a22cb3594eabd275ed030778
treecf4cb9a1b6080aaa6220241d0af52f0c17391f7d
parentfac04efc5c793dccbd07e2d59af9f90b7fc0dca4
cpuidle: psci: Activate GENPD_FLAG_ACTIVE_WAKEUP with OSI

Set GENPD_FLAG_ACTIVE_WAKEUP flag for domain psci cpuidle when OSI
is activated, then when a device is set as the wake-up source using
device_set_wakeup_path, the PSCI power domain could be retained to allow
so that the associated device can wake up the system.

With this flag, for S2IDLE system-wide suspend, the wake-up path is
managed in each device driver and is tested in the power framework:
a PSCI domain is only turned off when GENPD_FLAG_ACTIVE_WAKEUP is enabled
and the associated device is not in the wake-up path, so PSCI CPUIdle
selects the lowest level in the PSCI topology according to the wake-up
path.

This patch is a preliminary step to support PSCI OSI on the STM32MP25
platform with the D1 domain (power-domain-cluster) for the A35 cortex
cluster and for the associated peripherals including EXTI1 which manages
the wake-up interrupts for domain D1.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Message-ID: <20241119141827.1.I6129b16ec6b558efc1707861db87e55bf7022f62@changeid>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/cpuidle/cpuidle-psci-domain.c