Skip to content

Commit c8c1962

Browse files
author
Ulf Hansson
committed
pmdomain: core: Prepare to add the common ->sync_state() support
Before we can implement the common ->sync_state() support in genpd, we need to allow a few specific genpd providers to opt out from the new behaviour. Let's introduce GENPD_FLAG_NO_SYNC_STATE as a new genpd config option, to allow providers to opt out. Suggested-by: Saravana Kannan <saravanak@google.com> Tested-by: Hiago De Franco <hiago.franco@toradex.com> # Colibri iMX8X Tested-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> # TI AM62A,Xilinx ZynqMP ZCU106 Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Link: https://lore.kernel.org/r/20250701114733.636510-9-ulf.hansson@linaro.org
1 parent 6c3b746 commit c8c1962

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

include/linux/pm_domain.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ struct dev_pm_domain_list {
104104
* GENPD_FLAG_DEV_NAME_FW: Instructs genpd to generate an unique device name
105105
* using ida. It is used by genpd providers which
106106
* get their genpd-names directly from FW.
107+
*
108+
* GENPD_FLAG_NO_SYNC_STATE: The ->sync_state() support is implemented in a
109+
* genpd provider specific way, likely through a
110+
* parent device node. This flag makes genpd to
111+
* skip its internal support for this.
107112
*/
108113
#define GENPD_FLAG_PM_CLK (1U << 0)
109114
#define GENPD_FLAG_IRQ_SAFE (1U << 1)
@@ -114,6 +119,7 @@ struct dev_pm_domain_list {
114119
#define GENPD_FLAG_MIN_RESIDENCY (1U << 6)
115120
#define GENPD_FLAG_OPP_TABLE_FW (1U << 7)
116121
#define GENPD_FLAG_DEV_NAME_FW (1U << 8)
122+
#define GENPD_FLAG_NO_SYNC_STATE (1U << 9)
117123

118124
enum gpd_status {
119125
GENPD_STATE_ON = 0, /* PM domain is on */

0 commit comments

Comments
 (0)