]> Git Repo - J-linux.git/commitdiff
PM: runtime: Add documentation for pm_runtime_resume_and_get()
authorAlan Stern <[email protected]>
Thu, 8 Apr 2021 15:22:09 +0000 (11:22 -0400)
committerRafael J. Wysocki <[email protected]>
Fri, 9 Apr 2021 15:24:28 +0000 (17:24 +0200)
Commit dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get to
deal with usage counter") added a new runtime-PM API function without
updating the documentation in runtime_pm.rst.

Add the missing documentation.

Signed-off-by: Alan Stern <[email protected]>
Fixes: dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter")
Signed-off-by: Rafael J. Wysocki <[email protected]>
Documentation/power/runtime_pm.rst

index d9c777b18f7a126c15ba954a20db1440a52d5768..18ae21bf7f925987b70523fab7f06c3809e12513 100644 (file)
@@ -339,6 +339,10 @@ drivers/base/power/runtime.c and include/linux/pm_runtime.h:
       checked additionally, and -EACCES means that 'power.disable_depth' is
       different from 0
 
+  `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
+
   `int pm_request_idle(struct device *dev);`
     - submit a request to execute the subsystem-level idle callback for the
       device (the request is represented by a work item in pm_wq); returns 0 on
This page took 0.053214 seconds and 4 git commands to generate.