OSDN Git Service

PM / core: Propagate wakeup_path status flag in __device_suspend_late()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Jan 2018 09:03:40 +0000 (10:03 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Jan 2018 12:13:57 +0000 (13:13 +0100)
commit0a99d767a9b0aae6e0fd983c889c793e4c91684c
treef54c730e76a22357aeca367e199b215c4ce91083
parentc23bd3877bc21d830fa650570fc1a88bea82ecd2
PM / core: Propagate wakeup_path status flag in __device_suspend_late()

Currently the wakeup_path status flag becomes propagated from a child
device to its parent device at __device_suspend(). This allows a driver
dealing with a parent device to act on the flag from its ->suspend()
callback.

However, in situations when the wakeup_path status flag needs to be set
from a ->suspend_late() callback, its value doesn't get propagated to the
parent by the PM core. Let's address this limitation, by also propagating
the flag at __device_suspend_late().

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