]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: renesas: mstp: Keep wakeup sources active during system suspend
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 13 Oct 2017 12:22:28 +0000 (14:22 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 14 Dec 2017 15:39:43 +0000 (16:39 +0100)
commit744dddcae84441b153101bc23505a1996da5e503
treeb5bc6488b00753c75fbbd0518838d240fa21f289
parent64082568dd1e05d349a0d9dfda2bdf6ace3f9f6c
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 <geert+renesas@glider.be>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/clk/renesas/clk-mstp.c