diff options
author | Stefan Wahren <wahrenst@gmx.net> | 2024-07-28 13:41:49 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2024-08-14 14:22:39 +0200 |
commit | 562cdeadac06176b3a99bd457d9463a3b58df60f (patch) | |
tree | 0e1fa654821820e301a77fb9cd646d8f57120d8b /drivers/pmdomain | |
parent | pmdomain: raspberrypi-power: Add logging to rpi_firmware_set_power (diff) | |
download | linux-562cdeadac06176b3a99bd457d9463a3b58df60f.tar.xz linux-562cdeadac06176b3a99bd457d9463a3b58df60f.zip |
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 <wahrenst@gmx.net>
Link: https://lore.kernel.org/r/20240728114200.75559-6-wahrenst@gmx.net
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/pmdomain')
-rw-r--r-- | drivers/pmdomain/bcm/raspberrypi-power.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pmdomain/bcm/raspberrypi-power.c b/drivers/pmdomain/bcm/raspberrypi-power.c index fadedfc9c645..b87ea7adb7be 100644 --- a/drivers/pmdomain/bcm/raspberrypi-power.c +++ b/drivers/pmdomain/bcm/raspberrypi-power.c @@ -91,6 +91,7 @@ static void rpi_common_init_power_domain(struct rpi_power_domains *rpi_domains, dom->fw = rpi_domains->fw; dom->base.name = name; + dom->base.flags = GENPD_FLAG_ACTIVE_WAKEUP; dom->base.power_on = rpi_domain_on; dom->base.power_off = rpi_domain_off; |