From: Stefan Wahren Date: Sat, 1 Feb 2025 11:19:26 +0000 (+0100) Subject: pmdomain: bcm2835-power: set flag GENPD_FLAG_ACTIVE_WAKEUP X-Git-Tag: v6.15-rc1~177^2~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43b73a5a036773aefd737a4dcadbc4c94dfd029f;p=thirdparty%2Fkernel%2Flinux.git pmdomain: bcm2835-power: set flag GENPD_FLAG_ACTIVE_WAKEUP Set flag GENPD_FLAG_ACTIVE_WAKEUP to bcm2835_power 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: Stefan Wahren Link: https://lore.kernel.org/r/20250201111926.31278-1-wahrenst@gmx.net Signed-off-by: Ulf Hansson --- diff --git a/drivers/pmdomain/bcm/bcm2835-power.c b/drivers/pmdomain/bcm/bcm2835-power.c index d2f0233cb6206..d3cd816979ac9 100644 --- a/drivers/pmdomain/bcm/bcm2835-power.c +++ b/drivers/pmdomain/bcm/bcm2835-power.c @@ -520,6 +520,7 @@ bcm2835_init_power_domain(struct bcm2835_power *power, } dom->base.name = name; + dom->base.flags = GENPD_FLAG_ACTIVE_WAKEUP; dom->base.power_on = bcm2835_power_pd_power_on; dom->base.power_off = bcm2835_power_pd_power_off;