Patch "Documentation: PM: Clarify pm_runtime_resume_and_get() return value" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Documentation: PM: Clarify pm_runtime_resume_and_get() return value

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     documentation-pm-clarify-pm_runtime_resume_and_get-r.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 3796fe96f7c390533571da99332754f0e4fef91f
Author: Paul Barker <paul.barker.ct@xxxxxxxxxxxxxx>
Date:   Tue Dec 3 14:37:29 2024 +0000

    Documentation: PM: Clarify pm_runtime_resume_and_get() return value
    
    [ Upstream commit ccb84dc8f4a02e7d30ffd388522996546b4d00e1 ]
    
    Update the documentation to match the behaviour of the code.
    
    pm_runtime_resume_and_get() always returns 0 on success, even if
    __pm_runtime_resume() returns 1.
    
    Fixes: 2c412337cfe6 ("PM: runtime: Add documentation for pm_runtime_resume_and_get()")
    Signed-off-by: Paul Barker <paul.barker.ct@xxxxxxxxxxxxxx>
    Link: https://patch.msgid.link/20241203143729.478-1-paul.barker.ct@xxxxxxxxxxxxxx
    [ rjw: Subject and changelog edits, adjusted new comment formatting ]
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux