summaryrefslogtreecommitdiffstats
path: root/Documentation/power
diff options
context:
space:
mode:
authorRafael J. Wysocki2017-11-18 15:31:49 +0100
committerRafael J. Wysocki2017-11-27 01:20:59 +0100
commit0d4b54c6fee87ff60b0bc1007ca487449698468d (patch)
treed9874b3425fc3e411eec30659aa062f5a22ea855 /Documentation/power
parentLinux 4.15-rc1 (diff)
downloadkernel-qcow2-linux-0d4b54c6fee87ff60b0bc1007ca487449698468d.tar.gz
kernel-qcow2-linux-0d4b54c6fee87ff60b0bc1007ca487449698468d.tar.xz
kernel-qcow2-linux-0d4b54c6fee87ff60b0bc1007ca487449698468d.zip
PM / core: Add LEAVE_SUSPENDED driver flag
Define and document a new driver flag, DPM_FLAG_LEAVE_SUSPENDED, to instruct the PM core and middle-layer (bus type, PM domain, etc.) code that it is desirable to leave the device in runtime suspend after system-wide transitions to the working state (for example, the device may be slow to resume and it may be better to avoid resuming it right away). Generally, the middle-layer code involved in the handling of the device is expected to indicate to the PM core whether or not the device may be left in suspend with the help of the device's power.may_skip_resume status bit. That has to happen in the "noirq" phase of the preceding system suspend (or analogous) transition. The middle layer is then responsible for handling the device as appropriate in its "noirq" resume callback which is executed regardless of whether or not the device may be left suspended, but the other resume callbacks (except for ->complete) will be skipped automatically by the core if the device really can be left in suspend. The additional power.must_resume status bit introduced for the implementation of this mechanisn is used internally by the PM core to track the requirement to resume the device (which may depend on its children etc). Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'Documentation/power')
0 files changed, 0 insertions, 0 deletions