Message ID | 20250201111926.31278-1-wahrenst@gmx.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | pmdomain: bcm2835-power: set flag GENPD_FLAG_ACTIVE_WAKEUP | expand |
On Sat, 1 Feb 2025 at 12:19, Stefan Wahren <wahrenst@gmx.net> wrote: > > 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 <wahrenst@gmx.net> Applied for next, thanks! Kind regards Uffe > --- > drivers/pmdomain/bcm/bcm2835-power.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/pmdomain/bcm/bcm2835-power.c b/drivers/pmdomain/bcm/bcm2835-power.c > index d2f0233cb620..d3cd816979ac 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; > > -- > 2.34.1 >
diff --git a/drivers/pmdomain/bcm/bcm2835-power.c b/drivers/pmdomain/bcm/bcm2835-power.c index d2f0233cb620..d3cd816979ac 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;
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 <wahrenst@gmx.net> --- drivers/pmdomain/bcm/bcm2835-power.c | 1 + 1 file changed, 1 insertion(+) -- 2.34.1