pmdomain: ti-sci: set the GENPD_FLAG_ACTIVE_WAKEUP flag for all PM domains
authorThomas Richard <thomas.richard@bootlin.com>
Tue, 22 Oct 2024 08:23:36 +0000 (10:23 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Oct 2024 16:14:00 +0000 (17:14 +0100)
With this flag, if a device is marked on the wakeup path, the corresponding
PM domain is kept powered on.

This commit fixes the no_console_suspend support for some TI platforms
(tested on J7200). In case of no_console_suspend the serial core marks the
device on the wakeup path, but without this patch the power domain is
powered off anyway.

Suggested-by: Théo Lebrun <theo.lebrun@bootlin.com>
Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20241022-8250-omap-no-console-suspend-v2-1-cc3d102b8a1e@bootlin.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/ti/ti_sci_pm_domains.c

index 1510d5d..38448b4 100644 (file)
@@ -186,6 +186,7 @@ static int ti_sci_pm_domain_probe(struct platform_device *pdev)
 
                                pd->pd.power_off = ti_sci_pd_power_off;
                                pd->pd.power_on = ti_sci_pd_power_on;
+                               pd->pd.flags |= GENPD_FLAG_ACTIVE_WAKEUP;
                                pd->idx = args.args[0];
                                pd->parent = pd_provider;