Message ID | 20230213-sm6350-camcc-runtime_pm-v3-0-d35e0d833cc4@fairphone.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-msm-owner@vger.kernel.org> 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 0509FC64EC7 for <linux-arm-msm@archiver.kernel.org>; Tue, 14 Feb 2023 11:01:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232614AbjBNLBm (ORCPT <rfc822;linux-arm-msm@archiver.kernel.org>); Tue, 14 Feb 2023 06:01:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232080AbjBNLBj (ORCPT <rfc822;linux-arm-msm@vger.kernel.org>); Tue, 14 Feb 2023 06:01:39 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D51FD22024 for <linux-arm-msm@vger.kernel.org>; Tue, 14 Feb 2023 03:01:35 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id rp23so39040438ejb.7 for <linux-arm-msm@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=pXtkTfckZFhZuF3+cztxh801IVAeQnsaMmoPz1vbwXwt6p1J4JD8JpMQ6N7Rnj3d45 EiiEEmckwye3fxNlsbEr4VqxvLl2NU8lHr6HpG1xZ4swDLS/1sCoKZGgnjbaZRmtNt0M AwjCryv/sZETei3FaeD8L4KYdRI2u9TWsc9+KCEecmZuk1lozlfieZGjk9jdPly7zOnD 8/zO4EGVwuXLUaQ7x57ExnXUoSh9Grf5JVVmpU4xUP+OVkl80AkxgUmr2Vj5EOcm/m1K eKmbw7P497MLlKmOui1cB1bZCpmlgGQHPPGEHwXQdoU51nc4S0o6Yd2rj6ulDRsdmCP7 8KkA== X-Gm-Message-State: AO0yUKWeYy4SZ7nhqwtUAa4RRxDjhaNbOrfU3kHa3s1hdiS/eMhPijUx VB7VY+v4yU6DYIv0FVsJTKXyRw== X-Google-Smtp-Source: AK7set8UN3gUOYP807cpBkrxkjxHgNA/mxAjfjdMGbkgNnpuMPKd/w19fzBVALxbauqhlG3dRexbwg== 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 Precedence: bulk List-ID: <linux-arm-msm.vger.kernel.org> X-Mailing-List: linux-arm-msm@vger.kernel.org |
Series |
Add pm_runtime support to SM6350 camcc
|
expand
|
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,