]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Domains: Allow genpd users to specify default active wakeup behavior
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 7 Nov 2017 12:48:11 +0000 (13:48 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 8 Nov 2017 00:00:47 +0000 (01:00 +0100)
commitf6f2d4cc97e39f032041576b352a823ebde6fff6
tree8c73ac7cb916cb3b766b00dc09ee2fae34215c36
parent5774e526658301ae19531f1761dfe80002b87980
PM / Domains: Allow genpd users to specify default active wakeup behavior

It is quite common for PM Domains to require slave devices to be kept
active during system suspend if they are to be used as wakeup sources.
To enable this, currently each PM Domain or driver has to provide its
own gpd_dev_ops.active_wakeup() callback.

Introduce a new flag GENPD_FLAG_ACTIVE_WAKEUP to consolidate this.
If specified, all slave devices configured as wakeup sources will be
kept active during system suspend.

PM Domains that need more fine-grained controls, based on the slave
device, can still provide their own callbacks, as before.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-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
include/linux/pm_domain.h