]> git.baikalelectronics.ru Git - kernel.git/commit
soc: renesas: rcar-sysc: Keep wakeup sources active during system suspend
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 9 Nov 2017 13:27:02 +0000 (14:27 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 20 Dec 2017 10:16:05 +0000 (11:16 +0100)
commit2bc66b8bee2251fda1a940a710cf7a004805cfb3
tree05efae311c7105700b26a46d4bfde551ddc9eddf
parent4e70ec944d48ffafa48aaf5dc78b5a9d4024c677
soc: renesas: rcar-sysc: Keep wakeup sources active during system suspend

If an R-Car SYSC slave device is part of the CPG/MSTP or CPG/MSSR 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>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/soc/renesas/rcar-sysc.c