From patchwork Fri Apr 1 08:49:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12798008 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5259AC433EF for ; Fri, 1 Apr 2022 08:50:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230512AbiDAIvs (ORCPT ); Fri, 1 Apr 2022 04:51:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245113AbiDAIvr (ORCPT ); Fri, 1 Apr 2022 04:51:47 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DE9724CEE2 for ; Fri, 1 Apr 2022 01:49:57 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id bh17so4371216ejb.8 for ; Fri, 01 Apr 2022 01:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gyxaGkdBaFbFDBr0XmiSIvVcCyMDB5oUwgvGK5gLUz4=; b=HwTRGKsANBcBbiq4uCmILV5o70O9u5TO3NcYg7vCaepmazGHHkxf83ZWDqsmaGKpl9 bPUGqtwo4WFsAnlA/ovSf3/JSDDqg44hsuUKnRuqeEisN7KYBjpli1Zgiban1/q/EwAy FB17iCg+us+vXAWdlVFHcsjIEnMkSMzr2yAEZIFcQKeiD/vXhuApeI28hGPdLQuyMztR PILFll/Lo7yVAhuKmjpOUaiYcfIbJeNN1S3nJ4gknmPBoCOe9yaFIa+rthzJZMo2zfdb 9xQYNOIL5f7Wrv9D7AeUwqJWs0NGyzGhsFz9JVgEgG9uMHptV+pFK91TPlaZfUAhu+Ut 2h/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gyxaGkdBaFbFDBr0XmiSIvVcCyMDB5oUwgvGK5gLUz4=; b=cHSvflri5bJpTrk85MyTHFRUrQGnewpxyz8L3oz3RU/kfyMXeHODiLW2UeBJH4UfjA JSvO7nKW1/1LFceY8vtN8Isnl+d3z6ogFNo01fE5Ej1LshH/8FshOHN4AjMJxzQbS9dF TNFV+WXzMk/WNH1jvqFbGNQHbT2qZrmdtRrTiDfC21vArV8XJFS4WTAsuLM7RIH7O1wU lNn+s/oVRBI4Y8dfuvp4Ei51XB6Yo4QEKLgGS3v505cx3AHPz2mI0/fihbPck/qZ4VRu AYX7MzeS1MgzWsxeM1K4lQWbE1nCbBn08uejNFVkYEcSwO9QPNL2JpiegXun17q9p8ff 0atA== X-Gm-Message-State: AOAM530eWEQDcNKro/RzHVD7uXzZQaAjIZDMEvZnPKpjAro1NgaU7tzM BmVWVUDPN02foa//WkTndl5maA== X-Google-Smtp-Source: ABdhPJzAnKpzvuNc8xtUDGSi4nQwIexbeJOFciJ4pqF5qnxo6KsMiAq8ta3Q2qmXSdXORspNRuyqXg== X-Received: by 2002:a17:907:7da5:b0:6e4:e40f:60a0 with SMTP id oz37-20020a1709077da500b006e4e40f60a0mr225232ejc.486.1648802995649; Fri, 01 Apr 2022 01:49:55 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id r16-20020a056402019000b00418ed60c332sm905361edv.65.2022.04.01.01.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Apr 2022 01:49:55 -0700 (PDT) From: Krzysztof Kozlowski To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Greg Kroah-Hartman , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] PM: Domains: Extend dev_pm_domain_detach() doc Date: Fri, 1 Apr 2022 10:49:50 +0200 Message-Id: <20220401084950.118998-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Mention all domain attach menthods which dev_pm_domain_detach() reverses. Signed-off-by: Krzysztof Kozlowski --- drivers/base/power/common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/base/power/common.c b/drivers/base/power/common.c index bbddb267c2e6..72115917e0bd 100644 --- a/drivers/base/power/common.c +++ b/drivers/base/power/common.c @@ -172,10 +172,10 @@ EXPORT_SYMBOL_GPL(dev_pm_domain_attach_by_name); * @dev: Device to detach. * @power_off: Used to indicate whether we should power off the device. * - * This functions will reverse the actions from dev_pm_domain_attach() and - * dev_pm_domain_attach_by_id(), thus it detaches @dev from its PM domain. - * Typically it should be invoked during the remove phase, either from - * subsystem level code or from drivers. + * This functions will reverse the actions from dev_pm_domain_attach(), + * dev_pm_domain_attach_by_id() and dev_pm_domain_attach_by_name(), thus it + * detaches @dev from its PM domain. Typically it should be invoked during the + * remove phase, either from subsystem level code or from drivers. * * Callers must ensure proper synchronization of this function with power * management callbacks.