summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-12-14 01:55:43 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2024-12-14 01:55:43 +0100
commit974acf99744ca5c0663d0864a1ff3a13491c4f4b (patch)
tree91d3d63744992da0b75058993831d92cbceffa5f /Documentation
parentMerge tag 'acpi-6.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ra... (diff)
parentDocumentation: PM: Clarify pm_runtime_resume_and_get() return value (diff)
downloadlinux-974acf99744ca5c0663d0864a1ff3a13491c4f4b.tar.xz
linux-974acf99744ca5c0663d0864a1ff3a13491c4f4b.zip
Merge tag 'pm-6.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management documentation fix from Rafael Wysocki: "Fix a runtime PM documentation mistake that may mislead someone into making a coding mistake (Paul Barker)" * tag 'pm-6.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: Documentation: PM: Clarify pm_runtime_resume_and_get() return value
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/power/runtime_pm.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/power/runtime_pm.rst b/Documentation/power/runtime_pm.rst
index 53d1996460ab..12f429359a82 100644
--- a/Documentation/power/runtime_pm.rst
+++ b/Documentation/power/runtime_pm.rst
@@ -347,7 +347,9 @@ drivers/base/power/runtime.c and include/linux/pm_runtime.h:
`int pm_runtime_resume_and_get(struct device *dev);`
- run pm_runtime_resume(dev) and if successful, increment the device's
- usage counter; return the result of pm_runtime_resume
+ usage counter; returns 0 on success (whether or not the device's
+ runtime PM status was already 'active') or the error code from
+ pm_runtime_resume() on failure.
`int pm_request_idle(struct device *dev);`
- submit a request to execute the subsystem-level idle callback for the