[RFC,v2,2/2] soc: qcom: rmphpd: Call the genpd unused power off sync state callback
Message ID | 20230127104054.895129-2-abel.vesa@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp764165wrn; Fri, 27 Jan 2023 02:44:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXvsl+myLcmCeiOQPN2n37G158uqjo+v1XC9JIPHTKzv6JMuaNlP2AOJgK/AslZJY4koEKqi X-Received: by 2002:a17:907:c307:b0:816:ef2a:631a with SMTP id tl7-20020a170907c30700b00816ef2a631amr45648833ejc.31.1674816265954; Fri, 27 Jan 2023 02:44:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674816265; cv=none; d=google.com; s=arc-20160816; b=xrkQZzzbxngG45h+PNVkpjErOKlAdalNeozpgDUGBMb7xc96ZZQ660CEGs/FSVA2M8 2d28VyR+sn31beUtnsQazdmtweI2Vi/OPHxGrjgozN/KFts1tBdTbUNpj0ZNwBlnmJRb yYg/LfUfgkcJCVWocz0Xv9yBNbpGHocN/n58Qze1EU7iQw3G7nFqypS3dO0lmClocOtV 1h5YChH7MHMzhoOEZ4L/ypX0VsxITArlXVhuo7AqECMaVurX7pWhe2Wvo/CGduJVuVWd 1/OiH4UlL3UinQ9Byjg+LnWHusHagz7qtS7HTffBF7exdIySNC4Q0uHDwRPU7kHH2V/k +fKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8ndsWZlMYJtLnCMyPNKqHVtE/EpqIzhsLhwbLZ4yPv4=; b=0dzxErke3M3Y4O9HIjRDHqM7uneO0IoDHq3RFIcQA2+YRB8ueCuuWGgxblzJysLSAZ PWem1fIlmNQmwKG4jZxrSwRyfOBnPJoHhhLlmta4lp5yp4iI7UNWItPsGHW6dE9NyAs5 Y0xodiVJrLsbAOQSod+A8jCUDLBButaKeLWTWF0Wzw8tK7QV5E8dDyg4RF8HTnF04Z0r GfcK0Bcj5rzXwZnzE37/vqAXa5D51D8dAkqMIfgIyLJW184y2sYwuHXcNj5YNl6K7R3S t9ea3SXQ6n1ib8TcA5xALmrUeAlJHJi+tGIpuLqxQbT//43XNhqJ4Na94lYUtqqcpD4G zeCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pcaxpn5G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020a17090602c900b0087783a6727dsi4692550ejk.790.2023.01.27.02.44.02; Fri, 27 Jan 2023 02:44:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pcaxpn5G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232372AbjA0Klu (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Fri, 27 Jan 2023 05:41:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232330AbjA0Kle (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 27 Jan 2023 05:41:34 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02F708736D for <linux-kernel@vger.kernel.org>; Fri, 27 Jan 2023 02:41:02 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id r2so4556850wrv.7 for <linux-kernel@vger.kernel.org>; Fri, 27 Jan 2023 02:41:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8ndsWZlMYJtLnCMyPNKqHVtE/EpqIzhsLhwbLZ4yPv4=; b=pcaxpn5GMKc3hkUSiYbL+KXIkk1Q1jNEiF+bU+AlkY+STYO3YlRvQm4CL21G4uTads F/E/cizCK4pB4IQlFZKWr8aSp4CCedzSP2kphFS6FM/wvN0Luquv6iGCXd/tWJXY8GX0 9bsSectbf3oqAaCTzIoEYNOIW56UR0X/8PYQARIfXV3J6PsZGKoS4sdm8p/QY1N1D3ql ANEzBvnGxND2hKbLMo4bOSELPxRaJfYjp0wgi2if4zc7TbN9VBlnFQRJG7ZLNUG1v3Ry 3ySwzcl03uohRgHU0KFYDSwcLQMlZVBi3c5g87Yg1c3Pa1hIZAmjGNgfwY+HwgaM/H+0 +TMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8ndsWZlMYJtLnCMyPNKqHVtE/EpqIzhsLhwbLZ4yPv4=; b=LeGMOQmhEdwhXJFJTyiUk/tOXn+5sbgeGkgdkKzv6PAvnncvYbIN3zVqQc9GjHrgsd K15LochWm5ej4ijPdOLf1FWcTN/lOl46CxzFIQz22I3Juv6y0j7tR9SOgMLGB+DmEe3u exTywEjYGGdadEPoA7gCQU7Tva02f9zdmJSYqRewr5ch/rCkNBJwkxJAT6mA3PGQBGye d6b6zsoIIX4JpPRTR4t9O/VyoNDATyYTtZ5/zsWF5Mgn8xadH0+hULhvPEFZjL9D4Ii0 issKl2qzkCEfXBxd0dZvc4wCYav1qKJ8C6XPSIAijcKtGBtLrhP3Yk2+AP70IR5BL+cn p6JQ== X-Gm-Message-State: AFqh2kpSGQwaPGoscle+j6btz805Ba6Dw50OWB1A7Kd25AQHUfVc59F4 qpFdWjEbENKYRmA3RoebwVbk2A== X-Received: by 2002:a05:6000:8d:b0:2be:3a6a:f565 with SMTP id m13-20020a056000008d00b002be3a6af565mr25744279wrx.38.1674816058948; Fri, 27 Jan 2023 02:40:58 -0800 (PST) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id e21-20020a5d5955000000b002b57bae7174sm3613089wri.5.2023.01.27.02.40.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 02:40:58 -0800 (PST) From: Abel Vesa <abel.vesa@linaro.org> To: "Rafael J . Wysocki" <rafael@kernel.org>, Kevin Hilman <khilman@kernel.org>, Ulf Hansson <ulf.hansson@linaro.org>, Len Brown <len.brown@intel.com>, Pavel Machek <pavel@ucw.cz>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Bjorn Andersson <andersson@kernel.org>, Andy Gross <agross@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, linux-pm@vger.kernel.org, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, linux-arm-msm@vger.kernel.org, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Stephen Boyd <sboyd@kernel.org> Subject: [RFC PATCH v2 2/2] soc: qcom: rmphpd: Call the genpd unused power off sync state callback Date: Fri, 27 Jan 2023 12:40:54 +0200 Message-Id: <20230127104054.895129-2-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230127104054.895129-1-abel.vesa@linaro.org> References: <20230127104054.895129-1-abel.vesa@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756172141058089185?= X-GMAIL-MSGID: =?utf-8?q?1756172141058089185?= |
Series |
[RFC,v2,1/2] PM: domains: Skip disabling unused domains if provider has sync_state
|
|
Commit Message
Abel Vesa
Jan. 27, 2023, 10:40 a.m. UTC
Genpd provides a generic sync state callback for disabling unused
domains for a specific provider identified by its device. Call that
generic callback from the existing sync state callback in order to
disable all RPMh PD unused domains when all the consumers have probed.
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
---
This patch was not part of v1. Added to this patchset for context.
drivers/soc/qcom/rpmhpd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index f20e2a49a669..8b341cb97546 100644 --- a/drivers/soc/qcom/rpmhpd.c +++ b/drivers/soc/qcom/rpmhpd.c @@ -832,6 +832,8 @@ static void rpmhpd_sync_state(struct device *dev) dev_err(dev, "failed to sync %s\n", pd->res_name); } mutex_unlock(&rpmhpd_lock); + + genpd_power_off_unused_sync_state(dev); } static struct platform_driver rpmhpd_driver = {