Message ID | 20230213-sm6350-camcc-runtime_pm-v2-0-60a507bf3e68@z3ntu.xyz |
---|---|
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 s9csp2337719wrn; Mon, 13 Feb 2023 05:13:28 -0800 (PST) X-Google-Smtp-Source: AK7set8FSCWQr6TlXcLkGWr1paWFoodGQSEYy7tjOak8DnQiQwkAnzEiettkdX2HxLQNkbuEHbn3 X-Received: by 2002:a50:9998:0:b0:4ac:b696:7cdf with SMTP id m24-20020a509998000000b004acb6967cdfmr7385242edb.26.1676294008063; Mon, 13 Feb 2023 05:13:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676294008; cv=none; d=google.com; s=arc-20160816; b=HwH84lNB8ns5+ishWAjby6zYeDGm8sfoAsBSGrWx5AADJjgSZLzpgKGgt2Ujp2m7rq nC+sRU5elxaupgg8LglGowX5YmTIgSgqqib8eVEXbsy4YezdT8FlPxXDuvKeKOKpQDHm mUxFXTS7FNBSWCgpNS4U6WimYhetjz8CJv6lWm4Q/HDL052M6lms0tnLYsKTTAiGeja3 /V9+od7PDxgdj/AWiXM995nosx/7uHB+bs7JMmONxXAt1U8M8TEVdmjHUXt/dgvOVPXJ O0+fFu3phTnjKLROyw1zhUdHtVznAZtxr0IgIyFJ/M948MDlX/UhxAAK4lynMGiS16s1 Q9iQ== 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=4AVcCCcYCu1fsMnLX3/oSK0Cfjy5k3u75GS4x79cKTs=; b=D/O2SN4p9VOHbUprt+1QWglZhWIgoVZBdrvjJlWMk/eUyXtDkVO9qQw2+ZEn9s6w8K Kp4Qh9NjaYqpy9+vnnklCS1G7GhtqLzKhKCAisTAgjgZHWkkNmW6ppWwpNqj/FA1o5DJ BWn0KY7NzTGsS8ucLAJ3uIR8dfwHRcR5+oKZaw7eFuIiVlY+bJJmbFHmMnFJUwJjfUuJ wHDorDfHUbPfJ6n9YoPKLBrhedKrMX+hauIdEYv4ydhKM1yYXmEt984GPsz54d/OyhJO g6qnQd74IDk2RYx8SjBH0AskTLi5FeTwoB5svuzEJ6cl4JMVvbBAY+ybnTG6yuiYnFHc DbbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=tz0310Kl; 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 11-20020a170906208b00b007ae72fcabb3si16925815ejq.838.2023.02.13.05.13.04; Mon, 13 Feb 2023 05:13:28 -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=tz0310Kl; 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 S230221AbjBMNIN (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Mon, 13 Feb 2023 08:08:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230135AbjBMNIL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 13 Feb 2023 08:08:11 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EE4416AE9 for <linux-kernel@vger.kernel.org>; Mon, 13 Feb 2023 05:08:09 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id a10so12760487edu.9 for <linux-kernel@vger.kernel.org>; Mon, 13 Feb 2023 05:08:09 -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=4AVcCCcYCu1fsMnLX3/oSK0Cfjy5k3u75GS4x79cKTs=; b=tz0310KlBh5GPVmktnvrXetOzJbccq8d0VOEa29VycTzE8TFMdVcbAZkrZqHvpQ6E5 /mPBiEb61U5uICRbNb8ohFRT/hEed0y7fBhwHDJuH0oK4Vpub7OsMefusyxcrwbQEb51 lfap9Mb/wS6+t4S5EnJrw1yV+OHGXooglTLYGKs/h21Fh7GTjAa4ThRKOUe8G8FFb4cV kmXhKdCYK/rsOsSnlDvqXUXk1orQ9DZTZie/o0LcKa2P0VEaY7jqO0T1r3EZZPSsgBE1 dKxoASAUcwKvJd/PLFxhCSZIUyDI9r/BVeVmL0wSQc8JaqmCQ03TQ04KrDBjRzBi+YUU xhzw== 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=4AVcCCcYCu1fsMnLX3/oSK0Cfjy5k3u75GS4x79cKTs=; b=yP6rTIAgBy3xrDbsvDwap3KQyrlle5gRxK2wDJLP0nYPwmVtvX9UcRsJ9sp20xNQ1z OLghnemR7ntcFb/d5ExPrWNDPge8APG8YQIfj9xtZo7cjvH+lh2aMLgj/1bYFwgm1ULQ TL/Dqee5Ti/K1PtEBBy5JCTmJT7+kSNvgG6964FSMbeCnO6S9YZk5p8DVYtCdyDlluFG T+G2ogh6Z1k1S7II7f5yJDTVllSiblJvA7VB+3waRGTHoj3c/3HdRXlojO0cyhdF/nOa 8IpdYkp+MBBNB9aQt8fl+Qx6/JcOVE0idZmeKUeormoT7DbDD9XiEvq8g0dXNAPfqDiP 0tDw== X-Gm-Message-State: AO0yUKX5hud2gvo4NE1rNYcY7hd2NmIpzR5ZLG7ZRdxzngfP7mjE4uHG vQ/qvaIj/N55SE9g1ek8hXRTNg== X-Received: by 2002:a50:cdc2:0:b0:4ab:d0de:f7ec with SMTP id h2-20020a50cdc2000000b004abd0def7ecmr9027613edj.5.1676293687757; Mon, 13 Feb 2023 05:08:07 -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 f22-20020a50a6d6000000b004acc6cbc451sm1616515edc.36.2023.02.13.05.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 05:08:07 -0800 (PST) From: Luca Weiss <luca.weiss@fairphone.com> X-Google-Original-From: Luca Weiss <luca@z3ntu.xyz> Subject: [PATCH v2 0/2] Add pm_runtime support to SM6350 camcc Date: Mon, 13 Feb 2023 14:08:05 +0100 Message-Id: <20230213-sm6350-camcc-runtime_pm-v2-0-60a507bf3e68@z3ntu.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIADU26mMC/4WOSw6DIBiEr2JY9zc8FGtXvUdjGkCoLEQCan3Eu xe9QJffTL7M7CjqYHVEj2xHQc822sEloLcMqU64jwbbJkYUU4YpYRB7zkoMSvRKQZjcaHv99j1 wVsuqVKwtJEHJliJqkEE41Z2+8QXwnMLX+rP1QRu7XLuvJnFn4ziE9boxkzP9vzgTwFBxYhSvT SXu+LkxN075sm6oOY7jB+dotlHcAAAA 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@z3ntu.xyz> 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?1757721665614989647?= X-GMAIL-MSGID: =?utf-8?q?1757721665614989647?= |
Series |
Add pm_runtime support to SM6350 camcc
|
|
Message
Luca Weiss
Feb. 13, 2023, 1:08 p.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@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 | 29 ++++++++++++++++++++++++++++-
2 files changed, 30 insertions(+), 1 deletion(-)
---
base-commit: 09e41676e35ab06e4bce8870ea3bf1f191c3cb90
change-id: 20230213-sm6350-camcc-runtime_pm-639b75c3d4b1
Best regards,