Skip to content

Commit f5ca3aa

Browse files
marcanjannau
authored andcommitted
soc: apple: apple-pmgr-pwrstate: Mark on-at-boot PDs as wakeup
The genpd core does not have a generic mechanism for skipping genpd shutdown on system sleep, but it does have the wakeup path mechanism that is essentially the same thing. Mark all PDs that are on at boot as potentially wakeup-relevant, which means they can *optionally* stay on. Drivers have to opt into this with device_set_wakeup_path() to actually force them to remain on. Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent 202dde8 commit f5ca3aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pmdomain/apple/pmgr-pwrstate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ static int apple_pmgr_ps_probe(struct platform_device *pdev)
243243
active = apple_pmgr_ps_power_on(&ps->genpd) == 0;
244244
}
245245
} else if (active) {
246-
ps->genpd.flags |= GENPD_FLAG_DEFER_OFF;
246+
ps->genpd.flags |= GENPD_FLAG_DEFER_OFF | GENPD_FLAG_ACTIVE_WAKEUP;
247247
}
248248

249249
/* Turn on auto-PM if the domain is already on */

0 commit comments

Comments
 (0)