PM / Domains: Stop/start devices during system PM suspend/resume in genpd
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 30 May 2016 09:33:14 +0000 (11:33 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 16 Jun 2016 13:14:37 +0000 (15:14 +0200)
commit122a22377a3d8cc11cf18b20db13b02d5aad1a38
treef74a8e04b0fc737ca7c556994bbd270afc2f4902
parent4d23a5e84806b202d9231929c9507ef7cf7a0185
PM / Domains: Stop/start devices during system PM suspend/resume in genpd

Not all subsystems/drivers that manages devices attached to a genpd
makes use of the pm_runtime_force_suspend|resume() helper functions
to deal with system PM suspend/resume.

In cases like these and when genpd's ->stop|start() callbacks are
used for the device, invoke the pm_runtime_force_suspend|resume()
helper functions from genpd's "noirq" system PM callbacks. In this
way we make sure to "stop" the device on suspend and to "start" it
on resume.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c