blob: 5164ba2f59085b4183dcb2e8778b028bc82ebac7 [file] [log] [blame]
From 7507d04fd1939a56d81969620ce2af31ab0d54cc Mon Sep 17 00:00:00 2001
From: Geert Uytterhoeven <>
Date: Fri, 13 Oct 2017 14:22:28 +0200
Subject: [PATCH 0767/1795] clk: renesas: mstp: Keep wakeup sources active
during system suspend
If a device is part of the CPG/MSTP Clock Domain and to be used as a
wakeup source, it must be kept active during system suspend.
Currently this is handled in device-specific drivers by explicitly
increasing the use count of the module clock when the device is
configured as a wakeup source. However, the proper way to prevent the
device from being stopped is to inform this requirement to the genpd
core, by setting the GENPD_FLAG_ACTIVE_WAKEUP flag.
Note that this will only affect devices configured as wakeup sources.
Signed-off-by: Geert Uytterhoeven <>
Reviewed-by: Ulf Hansson <>
(cherry picked from commit 744dddcae84441b153101bc23505a1996da5e503)
Signed-off-by: Simon Horman <>
Signed-off-by: Geert Uytterhoeven <>
drivers/clk/renesas/clk-mstp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/renesas/clk-mstp.c b/drivers/clk/renesas/clk-mstp.c
index c944cc421e30..858c24d4da8f 100644
--- a/drivers/clk/renesas/clk-mstp.c
+++ b/drivers/clk/renesas/clk-mstp.c
@@ -341,7 +341,7 @@ void __init cpg_mstp_add_clk_domain(struct device_node *np)
pd->name = np->name;
- pd->flags = GENPD_FLAG_PM_CLK;
pd->attach_dev = cpg_mstp_attach_dev;
pd->detach_dev = cpg_mstp_detach_dev;
pm_genpd_init(pd, &pm_domain_always_on_gov, false);