Message ID | 20230213-sm6350-camcc-runtime_pm-v3-0-d35e0d833cc4@fairphone.com |
---|---|
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 s9csp2902234wrn; Tue, 14 Feb 2023 03:06:53 -0800 (PST) X-Google-Smtp-Source: AK7set9JmNR9q6mXDa5xrk+udNuV4Nr/DtOsGcPPpCtrB8z058K7ccmiSOGqniNo2gQjIlgwFFRI X-Received: by 2002:a17:906:3702:b0:888:7ac8:c0f4 with SMTP id d2-20020a170906370200b008887ac8c0f4mr2400484ejc.25.1676372813145; Tue, 14 Feb 2023 03:06:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676372813; cv=none; d=google.com; s=arc-20160816; b=BFp7uvk0ewLe83foRuGXdGiFo9oUD5ZdLsteiex4U1p/P3JRmSv0yxuGFYGX+YWGDl u6P24U4AljNZ3CrKhIZYJ66IKXxwlIMo8tWD3NEuFGlUZR+a1nvn1jZGjptOVEYB4NrC FAeI6PmtFfaoy/nxZMbdo74q1sjygqrsTAoTZT7toX8G6bCYXtkPmhFSo5HFp+BR/My3 D1c++aTDRMzYM+IEx4Hy6ddeY2mDS2460VHC7vjdtte7P7ynkN8XMNuQCNsqLOw8kWbY lKx5zKDl4koBvBC14gT/IpmsuK8mN+EA7jlJBlCJUZNxZqS9hyyN40y/qX8hEcSW4Wvg ER3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=e62fN1MhbeUOHVVjTCBAKKz2knPWJHqUGgFc+Eioq+E=; b=VYE5Mr5vzrdIQwp9fihu3u1rRToqbALM2YXctmhtsixaHaNN+o6ruUV4mUWWSm7xFa +5ABO/ejN0rMUuutjTVL/jfp6fc8CBmkKtlWhMTu5i+Yir9+MJd6YGAE6zCt1neCx6NG NKUZai3uJiWlMphsHquqBezPwkEJUXKQ8uCq6/hcHeDWIkfVUGK+FbvCNM25Q2/z9FHx DmJGZ6iHmCaVnYm7Gw9+NbVjoD6YbISSHA9SKt9+kfvtbuNrI9W4cComqI+2QH5ocdBo dZdWVZEioOd0Nm7jVRdURwc18/hvpH+DL8nls+86r+yUC0uFBZ/dcpIATq7FQDedFnIe VF4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=OU4sNRRs; 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=fairphone.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p5-20020a170907910500b0087881febde3si17354941ejq.797.2023.02.14.03.06.30; Tue, 14 Feb 2023 03:06:53 -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=@fairphone.com header.s=fair header.b=OU4sNRRs; 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=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232785AbjBNLBq (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Tue, 14 Feb 2023 06:01:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232135AbjBNLBj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 14 Feb 2023 06:01:39 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3AA920D1A for <linux-kernel@vger.kernel.org>; Tue, 14 Feb 2023 03:01:35 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id lf10so7200179ejc.5 for <linux-kernel@vger.kernel.org>; Tue, 14 Feb 2023 03:01:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=e62fN1MhbeUOHVVjTCBAKKz2knPWJHqUGgFc+Eioq+E=; b=OU4sNRRszHNGyV2q8ipjYsmsp71SJ7C3TNg1i4DJ3xKvrhHs86jteng5yCu0khNskx UrKPLflutrNJcy0O9CeaIHNjTq+OKdxaaGQ2ElsAVeAeC6UXw+L/BL6WIIpdNOcVHrPK aJ1FVxP+8wS9a9XpjEqis+T4fhagovggT0VQb7nd9U/myfPNDnOHWwIGcLPJKiqy1LO1 ThTTMin58QLto6+WgAUcd8pxGZJ+FHQNIZiJxHN411GzHlnT23YFXbwpvd7RfPNJb7pN Rj9P6H7bXnqbIIe1FnpPl9ars2RKbu43JucgypL2CemeDjvstj43NmuRvIo8QkqTKVs3 J37A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e62fN1MhbeUOHVVjTCBAKKz2knPWJHqUGgFc+Eioq+E=; b=PPILtzNwFp4pVL57ZXhrHvIoyMd917YoIKako24AAoOFeQlZwBd6BeOVRhpSg54mRz TkEQXZarO0vF01DmLf9midWumyAOz+ImbRSmZp5ouj3OS9VUUpbk8JXSsB1rmuso9qtC NcbM4gEh0khh4YDNCXMEbaot9iIAOQXRWhrczIqXUb9wB54uRdn2JIYiCOl4eMvWbm0s 6vymT14t9pTb6dYioTCxYR6sOqKYiiSl1T7oIwOZatmDFJJVKDPnqFeVp3zhOnRLS1nH b1qNspkfRRsxY5xjx349pJwAvKw2tNCSWGeo/ZiY7ruMFOHP/wGvuzqgmEXZ5c6OREQl eaew== X-Gm-Message-State: AO0yUKXe+li0lI3Aw/4WAp2W1xRextcA4qH8BHWuAIMp+u2rV3pFBJms 0/c8PHCYVi+nHCDQYuvJu4+cbFfnt9W+16xxbow= X-Received: by 2002:a17:906:1747:b0:88e:e6ee:feab with SMTP id d7-20020a170906174700b0088ee6eefeabmr2249288eje.62.1676372494443; Tue, 14 Feb 2023 03:01:34 -0800 (PST) Received: from [172.16.220.87] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id i21-20020a170906115500b008711cab8875sm7959596eja.216.2023.02.14.03.01.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 03:01:34 -0800 (PST) From: Luca Weiss <luca.weiss@fairphone.com> Subject: [PATCH v3 0/2] Add pm_runtime support to SM6350 camcc Date: Tue, 14 Feb 2023 12:01:31 +0100 Message-Id: <20230213-sm6350-camcc-runtime_pm-v3-0-d35e0d833cc4@fairphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAtq62MC/42Oyw6DIBBFf8Ww7hgeitpV/6NpGkCoLEQDan3Ef y+66q5dnju5586GgvZWB3RNNuT1ZIPtXAR2SZBqhHtpsHVkRDFlmBIGoeUsx6BEqxT40Q221c+ +Bc4qWeSK1ZkkKLalCBqkF041R9/0GfCUwtv2x7X32tj53L0/Ijc2DJ1fzjcmcqS/FycCGApOj OKVKUSJbytzw5jOy4oO50T/9NDo4VjkuJCGaV5+e/Z9/wDjyeJRJAEAAA== To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Luca Weiss <luca.weiss@fairphone.com> X-Mailer: b4 0.12.1 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?1757804298707310866?= X-GMAIL-MSGID: =?utf-8?q?1757804298707310866?= |
Series |
Add pm_runtime support to SM6350 camcc
|
|
Message
Luca Weiss
Feb. 14, 2023, 11:01 a.m. UTC
As pointed out during patch review, we should make sure that we turn on
the CX power domain when camcc is in use, and also disable it (or remove
our vote on it) when camcc is not in use.
For this add pm_runtime support to the driver and stick the power-domain
in the devicetree.
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
Changes in v3:
- Remove extra error print for qcom_cc_really_probe since driver core
already prints the error anyways
- Fix From: and Sign-offs email address confusion, sorry about that...
- Link to v2: https://lore.kernel.org/r/20230213-sm6350-camcc-runtime_pm-v2-0-60a507bf3e68@z3ntu.xyz
Changes in v2:
- no change resend since I messed up To/CC in the initial submission
- Link to v1: https://lore.kernel.org/r/20230213-sm6350-camcc-runtime_pm-v1-0-761fc69f7a80@z3ntu.xyz
---
Luca Weiss (2):
clk: qcom: camcc-sm6350: add pm_runtime support
arm64: dts: qcom: sm6350: add power domain to camcc
arch/arm64/boot/dts/qcom/sm6350.dtsi | 2 ++
drivers/clk/qcom/camcc-sm6350.c | 25 ++++++++++++++++++++++++-
2 files changed, 26 insertions(+), 1 deletion(-)
---
base-commit: 09e41676e35ab06e4bce8870ea3bf1f191c3cb90
change-id: 20230213-sm6350-camcc-runtime_pm-639b75c3d4b1
Best regards,