From patchwork Thu Apr 8 15:22:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Stern X-Patchwork-Id: 418507 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37AABC433B4 for ; Thu, 8 Apr 2021 15:22:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0556361103 for ; Thu, 8 Apr 2021 15:22:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231772AbhDHPWW (ORCPT ); Thu, 8 Apr 2021 11:22:22 -0400 Received: from netrider.rowland.org ([192.131.102.5]:56429 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S231765AbhDHPWW (ORCPT ); Thu, 8 Apr 2021 11:22:22 -0400 Received: (qmail 1299752 invoked by uid 1000); 8 Apr 2021 11:22:09 -0400 Date: Thu, 8 Apr 2021 11:22:09 -0400 From: Alan Stern To: "Rafael J. Wysocki" Cc: Zhang Qilong , Linux-PM mailing list Subject: [PATCH] PM: Add documentation for pm_runtime_resume_and_get() Message-ID: <20210408152209.GA1299604@rowland.harvard.edu> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Commit dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter") added a new runtime-PM API function without adding any documentation for it. This patch adds the missing documentation. Signed-off-by: Alan Stern CC: Zhang Qilong Fixes: dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter") --- [as1954] Documentation/power/runtime_pm.rst | 4 ++++ 1 file changed, 4 insertions(+) Index: usb-devel/Documentation/power/runtime_pm.rst =================================================================== --- usb-devel.orig/Documentation/power/runtime_pm.rst +++ usb-devel/Documentation/power/runtime_pm.rst @@ -339,6 +339,10 @@ drivers/base/power/runtime.c and include 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