aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorGravatar Ulf Hansson <ulf.hansson@linaro.org> 2023-08-10 18:21:19 +0200
committerGravatar Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2023-08-22 22:03:43 +0200
commit10bb4e4ab7dd3898f413b5b4a3b81f6e9b1f6bf5 (patch)
tree3aa8422cd3e1e1e4881515c2fce062e267808788 /kernel
parentMerge back system-wide sleep material for v6.6. (diff)
downloadlinux-10bb4e4ab7dd3898f413b5b4a3b81f6e9b1f6bf5.tar.gz
linux-10bb4e4ab7dd3898f413b5b4a3b81f6e9b1f6bf5.tar.bz2
linux-10bb4e4ab7dd3898f413b5b4a3b81f6e9b1f6bf5.zip
PM: sleep: Add helpers to allow a device to remain powered-on
On some platforms a device and its corresponding PM domain, may need to remain powered-on during system wide suspend, to support various use cases. For example, when the console_suspend_enabled flag is unset for a serial controller, the corresponding device may need to remain powered on. Other use cases exists too. In fact, we already have the mechanism in the PM core to deal with these kind of use cases. However, the current naming of the corresponding functions/flags clearly suggests these should be use for system wakeup. See device_wakeup_path(), device_set_wakeup_path and dev->power.wakeup_path. As a way to extend the use of the existing mechanism, let's introduce two new helpers functions, device_awake_path() and device_set_awake_path(). At this point, let them act as wrappers of the existing functions. Ideally, when all users have been converted to use the new helpers, we may decide to drop the old ones and rename the flag. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions