Skip to content

Commit e5cddc3

Browse files
MrVanUlf Hansson
authored andcommitted
pmdomain: arm: scmi_pm_domain: set flag GENPD_FLAG_ACTIVE_WAKEUP
Set flag GENPD_FLAG_ACTIVE_WAKEUP to scmi genpd, then when a device is set as wakeup source using device_set_wakeup_enable, the power domain could be kept on to make sure the device could wakeup the system. Signed-off-by: Peng Fan <peng.fan@nxp.com> Acked-by: Sudeep Holla <sudeep.holla@arm.com> Link: https://lore.kernel.org/r/20240514131833.911703-1-peng.fan@oss.nxp.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 196e9f5 commit e5cddc3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/pmdomain/arm/scmi_pm_domain.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ static int scmi_pm_domain_probe(struct scmi_device *sdev)
102102
scmi_pd->genpd.name = scmi_pd->name;
103103
scmi_pd->genpd.power_off = scmi_pd_power_off;
104104
scmi_pd->genpd.power_on = scmi_pd_power_on;
105+
scmi_pd->genpd.flags = GENPD_FLAG_ACTIVE_WAKEUP;
105106

106107
pm_genpd_init(&scmi_pd->genpd, NULL,
107108
state == SCMI_POWER_STATE_GENERIC_OFF);

0 commit comments

Comments
 (0)