Commit 974acf99 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
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
parents c810e8df ccb84dc8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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