Skip to content

Commit 562cdea

Browse files
lategoodbyestorulf
authored andcommitted
pmdomain: raspberrypi-power: set flag GENPD_FLAG_ACTIVE_WAKEUP
Set flag GENPD_FLAG_ACTIVE_WAKEUP to rpi_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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent eb3896e commit 562cdea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pmdomain/bcm/raspberrypi-power.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static void rpi_common_init_power_domain(struct rpi_power_domains *rpi_domains,
9191
dom->fw = rpi_domains->fw;
9292

9393
dom->base.name = name;
94+
dom->base.flags = GENPD_FLAG_ACTIVE_WAKEUP;
9495
dom->base.power_on = rpi_domain_on;
9596
dom->base.power_off = rpi_domain_off;
9697

0 commit comments

Comments
 (0)