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 296DAC61DA4 for ; Tue, 14 Feb 2023 11:01:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232263AbjBNLBs (ORCPT ); Tue, 14 Feb 2023 06:01:48 -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 ); 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 ; Tue, 14 Feb 2023 03:01:35 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id lf10so7200179ejc.5 for ; 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-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 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 , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski 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 X-Mailer: b4 0.12.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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, -- Luca Weiss