From patchwork Sat Mar 4 13:27:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 6108 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp921925wrd; Sat, 4 Mar 2023 05:28:53 -0800 (PST) X-Google-Smtp-Source: AK7set/Moh6HeAQ/tzn/Iradi83gIviI8Q9+q1ODLzQxdNqwBsrjCdOgLbVWYqtaSKBxDlvPicyH X-Received: by 2002:a05:6a20:3d24:b0:cd:832c:f9d1 with SMTP id y36-20020a056a203d2400b000cd832cf9d1mr5847835pzi.62.1677936533447; Sat, 04 Mar 2023 05:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677936533; cv=none; d=google.com; s=arc-20160816; b=USkqgSyCaOsEbWUnQ1cRhbJI6KKzf9v0hlEiPBjnOflBGkaONbRo21kjVkSMZ/cvhX 3+XsrlKOlWLkgYwE1fBL0S4NJ3VB8Vl8Nfpmw6irEA7YSGDnEZLytllI8ef0OhfW5vmh unrOwC1tbctnkXBTE+iO5uYC2yAPyr101s3me9zrsHiNlvhJjQLc3pf9fr614jXCvTUv rQRlZxzZXV9xmgp5RZmCV3DeBIWxYVSJKb8dINliOR89OEw09Dx0fHh+iCXlRMOQYhFb MauC9ifMLuI03z6iCFDc+z/OonsEFqAVaoyYFeghpqyfL9tWSkr9mj6nbqclD0wcPGxc LK7g== 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=XgZ4hZqUy+tdTMafR0Y1NpglWZ1Uga2EatLNEtTwC9Q=; b=oReIgEBQt6yFZ59jkjisz0NCQsjtqub7yO+z4hIOiJHHLDYGK/v5D3tm/LKNe9bjDu k9gO1jbKSufq2h3nqKS7sjaRxNfrMVoOhfgoWGRoUIVttmOHR4XR5bvmOWM83pJUKFu9 zaK7jOLy1FtIeh4YrqYzLUP0DHgI/xJAiMlEGiz1O1ByGrjO+nCsCKaQ7oq6pwPt5AGV tt2+fdYb53cT+dXcbh5n/bg9K/AyL+eVcLqvBpwjH7IZIcFZQo76WqJAUxKdbdA5IMxW nfpvSQ7CBMOuix9jQuTFlymRcV4v1TxFNGQ8eTt6ShMu7aqGIE1ySQzkZh7vn3ma04Xk sr4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L3Xkohyh; 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 e11-20020a65478b000000b004e5833b1fb8si4906986pgs.275.2023.03.04.05.28.40; Sat, 04 Mar 2023 05:28: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=@linaro.org header.s=google header.b=L3Xkohyh; 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 S229759AbjCDN1s (ORCPT + 99 others); Sat, 4 Mar 2023 08:27:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229707AbjCDN1q (ORCPT ); Sat, 4 Mar 2023 08:27:46 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 128791CF49 for ; Sat, 4 Mar 2023 05:27:45 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id d36so3867814lfv.8 for ; Sat, 04 Mar 2023 05:27:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936463; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=XgZ4hZqUy+tdTMafR0Y1NpglWZ1Uga2EatLNEtTwC9Q=; b=L3XkohyhqWwukysfGvq18Qbo7HlBdn9yyiJGEp66AYu+WhhTh+APIUjvZcd5TLhs4a p+oORRAdIc08RHTYBs75K6zJYKxAQcYM4+IeYvv12NiAri226p/PzobZlY6+bVs0YZSS VAo3Gfd2luL/gKYxI869wsBXNwxHPaa7asoEMdWMpB0FfJ0kq6PLd4M450jTk7Up8P8f blKX1DTnKYldTSFTb/im7wDu5k4GasIKBKVhxa0DvajyDteIwqTthwcMZ7lO4Z6Hhf+7 pV3VMm1btZ4sOJVZuJUoSL9SXAEm5kQWy/ziKL3y2l7QsdE+BrBQB/aEJR2xO4klrQMO EtXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936463; 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=XgZ4hZqUy+tdTMafR0Y1NpglWZ1Uga2EatLNEtTwC9Q=; b=uQxtSUu9V5w28NKZ1ARLST/zThmzrmGwixX9USFGpjbAMYd3G2yolfdL+SHNbm1nv/ QMrKqTgm3b/Q+TLsQFziR23bnXS3dS9f9QxEcy5ryhSouM9ci9gsDjSPzKiE4SD9bzMN l/7jRAKUfLtiWxNcJ1KiL3NtN5rsBY+aMGs9G6BuJGl2kwS14GVsv1y/J+fuI2FsRX9c EiOvcJkM2tdXcszbTQfiDr5WNFPe+Z8baTXz8kXQtmV3zafTjGejCCL41SKI+GiGURBq uOx0SyVZvPagQQgQD+mEntPGODi1CqwU+DYIaZd7/+LU2Ct1buyE+1cXuQrEFEAe+Yxh MPlw== X-Gm-Message-State: AO0yUKUYmn6BvFFzm//ax5GWHGcTdzOTILgvO1xQyprcMfHE6SVOGarX 8GWQR/pNA2lNByt7gHyXo0aq8w== X-Received: by 2002:ac2:5633:0:b0:4dd:9f86:859d with SMTP id b19-20020ac25633000000b004dd9f86859dmr1350094lff.13.1677936463369; Sat, 04 Mar 2023 05:27:43 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id j15-20020a19f50f000000b004e7fa99f2b5sm342975lfb.186.2023.03.04.05.27.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:42 -0800 (PST) From: Konrad Dybcio Subject: [PATCH RFT 00/20] SMD RPMCC sleep preparations Date: Sat, 04 Mar 2023 14:27:35 +0100 Message-Id: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAEdHA2QC/x2NQQrCMBBFr1Jm7UCagqIH8ADiroikk6kdiGnI2 CKU3t1B/up9eLwNlKuwwqXZoPIqKnM2aA8N0BTyi1GiMXjnO2fDz1yEsJY30VMTc8F4PIUQz2P nWg/mDUEZhxoyTWbmJSU7S+VRvv9QD7frHR77/gM5DpYNfQAAAA== To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Shawn Guo , Taniya Das X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=2001; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=XWLgT1bwHF7eV8z8nCWgSR4obUXZ6NlsDIoxUnshn8g=; b=ZpizBgFMCTab1JVuT1rFMghCLQTENq7h2AK8wg7kkO10M9OSJBsWi5jjB//iVCA1xdsfodARzfd5 Bqdx4uysDag7+z4hjr582qNssUwRcnoLXuDe1Wd6c2ugkec298bi X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759443978309462869?= X-GMAIL-MSGID: =?utf-8?q?1759443978309462869?= This series brings support for a couple of things necessary for the full system idle on SMD RPM SoCs, namely unused clk shutdown and keepalive votes (permanent active votes that are required on certain clocks for the platform to function). Tested on MSM8996 and SM6375, does not seem to introduce any additional regressions. Keepalive clocks for other platforms were gathered by digging in old downstream kernels, please give them a test. Signed-off-by: Konrad Dybcio --- Konrad Dybcio (18): clk: qcom: smd-rpm: Add support for keepalive votes clk: qcom: smd-rpm: Add keepalive_clks for SM6375 clk: qcom: smd-rpm: Add keepalive_clks for MSM8996 clk: qcom: smd-rpm: Add keepalive_clks for MSM8909 clk: qcom: smd-rpm: Add keepalive_clks for MSM8916 clk: qcom: smd-rpm: Add keepalive_clks for MSM8936 clk: qcom: smd-rpm: Add keepalive_clks for MSM8974 clk: qcom: smd-rpm: Add keepalive_clks for MSM8976 clk: qcom: smd-rpm: Add keepalive_clks for MSM8992 clk: qcom: smd-rpm: Add keepalive_clks for MSM8994 clk: qcom: smd-rpm: Add keepalive_clks for MSM8998 clk: qcom: smd-rpm: Add keepalive_clks for SDM660 clk: qcom: smd-rpm: Add keepalive_clks for MDM9607 clk: qcom: smd-rpm: Add keepalive_clks for MSM8953 clk: qcom: smd-rpm: Add keepalive_clks for SM6125 clk: qcom: smd-rpm: Add keepalive_clks for SM6115 clk: qcom: smd-rpm: Add keepalive_clks for QCM2290 clk: qcom: smd-rpm: Add keepalive_clks for QCS404 Shawn Guo (2): clk: qcom: smd-rpm: Add .is_enabled hook clk: qcom: smd-rpm: Add .is_prepared hook drivers/clk/qcom/clk-smd-rpm.c | 85 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 83 insertions(+), 2 deletions(-) --- base-commit: 1acf39ef8f1425cd105f630dc2c7c1d8fff27ed1 change-id: 20230303-topic-rpmcc_sleep-d67aad9f3012 Best regards,