From patchwork Sat Mar 4 13:27:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64212 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp921927wrd; Sat, 4 Mar 2023 05:28:54 -0800 (PST) X-Google-Smtp-Source: AK7set/HEYFDteITCX5b6L1xxXCIooyS3KmDrRvsnciwvoqyJFsUyOcT4OEB2iCbQpccWMtccYGD X-Received: by 2002:a17:903:492:b0:19c:ef59:5ec5 with SMTP id jj18-20020a170903049200b0019cef595ec5mr5107428plb.11.1677936534198; Sat, 04 Mar 2023 05:28:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677936534; cv=none; d=google.com; s=arc-20160816; b=zuzhkcKLXexgy+FhwuZVa3DWoE5UhUAMAIdJjG/XWf6TkYpzSguLZFxXO400kIsIhe JPFtrpgDKS8yiSTpLewciHF+BxZCKtRtEZ8ZR4YRPGK6WDa4c9YORQox3pallKABMzE+ OL1eupAsSLWZWFEoneAVu/XXYxjNqniMLIleEKS5QuVJKZWxGWPMCM37cxRYc+jZQlC5 ynAbJ7BG9B7kGXNu5asW9on15Kb9IsbwD2GwbOS5sY9qFvpl5Ah7LC/iDA9JUu8cnEzX 8Fy1GTtxhDRGzRYlyqPP6GPkCDMvmDfu/fA8WPMe8tOM6b+fWRgrzXfQcGiX6AriAZ9a 1rnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=SOECaGmGmUJLrulLw8TRNrQNT4lkSkMI20VbWaQaVaY=; b=gQDPbms/Gz4OEcal6XYfO5PY/WCXI8Fb+Enb7iJueAMkPk7e45DhhFelWtsBwyb/mn yK9zaMNDtHQpooOEAxp/cmfgRHHEX4T1IzhrsEcCD5xvUYJhOCmm1e48PsVxS3RxoUbe nkiMhUKcE11w1TH/h2PXHJxdZkLEJk2+0s3QTsVFj2MthszesgtAW4/swP8gO5h+67D3 Ocbr3v4ULIu4Q5xdbz6mmHBVRm03TBQP/zVdBj4CB0un29o99nLObgixzcm+xOa4t8FJ tK+r63UhfVb1cqeMEfI0eBgEg0sEc4Fu2odB2vjBpAy1WuOOcKZuHK4F3SI55K9vuzzT JczQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PxfrGqPC; 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 p3-20020a170903248300b0019e6e5fc15dsi4550612plw.496.2023.03.04.05.28.41; Sat, 04 Mar 2023 05:28:54 -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=PxfrGqPC; 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 S229787AbjCDN1w (ORCPT + 99 others); Sat, 4 Mar 2023 08:27:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229641AbjCDN1r (ORCPT ); Sat, 4 Mar 2023 08:27:47 -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 3101D1E1EC for ; Sat, 4 Mar 2023 05:27:46 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id n2so6984401lfb.12 for ; Sat, 04 Mar 2023 05:27:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936464; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=SOECaGmGmUJLrulLw8TRNrQNT4lkSkMI20VbWaQaVaY=; b=PxfrGqPCxEQt9X2O89hlvg/SXVn71ccJUG122XYCJEGj8DqJVCi81qd+UAV1ujqGgK 4lAg/LtneLVYzrPmcNUqg5g6plsvTrCzlnLjRFo4vr08J2C9mMN7HG/2DOUYb0nJa8Xo RJyNALYcEM7s3k0nV6NYJFiRDYKU+Q5B1rTuncjED0cb8zctwT4pVrpxHQSDiLfi/wnx kavK2firADnvOtKnLDJAtCMRHOou9TPJkOlGxO7UBjQLYtIfDpiP3yCBhitNn9vOqV8V ETc8TnTjb4XgHV90ulhOXzFa8AKRLa6dLJhfyDlwlL/mVJk/SyR4dOzgJoVFQ8/ShrQ1 16gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936464; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SOECaGmGmUJLrulLw8TRNrQNT4lkSkMI20VbWaQaVaY=; b=ulJFUcwFt9hZ3q34HeKGgxmvvSkUlbigKIq1lH9MKd/YAVN45zCs2bf0mZzJp3RorJ sSjZlYZLCYsTzkCZIK7ChACoIgYUDorATpq+43MPh4uzRk5GPLhpmfoYl4V+aoWqdFox EV0s59I6hX6sVAKhcppVpU/NCp2fNqIZLdnT/RJpIl9NWgZhfychVvuEoVOaLYqHwuY9 kyjqOhH/821tq6nhhvgZErctywnFggmOsTIH5E3g4l7xeQ40DtUjoGCnKEe8gznR/hVz UXIqGTGPsWCCqSmE0Hgp/NCJeDwU9Pv0YVjgmZs5sKCYqS7sSEGZg5vCSPo9emxOUthb BFnw== X-Gm-Message-State: AO0yUKWDqfL2n39AqJnR+nAbzjR3yyq0/TjdfIyhDYNKnxuBxE5ILcCN x5IF4gqmcfZ3wtWgaEzMmhaUWw== X-Received: by 2002:ac2:5146:0:b0:4cb:88c:c794 with SMTP id q6-20020ac25146000000b004cb088cc794mr1442240lfd.35.1677936464443; Sat, 04 Mar 2023 05:27:44 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:44 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:36 +0100 Subject: [PATCH RFT 01/20] clk: qcom: smd-rpm: Add .is_enabled hook MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-1-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=1448; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=DkAvY529UR+RwkQzY1FO48/jck/x44pR7ssps7xiA3g=; b=YXoN6u+y4uMm3usYO2+1lxRT7rL+nPk37A/NZn2isSkTCPveLpjtnsAE15jIJmlxZWNugmWTi21u bI21veBjB3v2oDa2VDvQiU3VN0Hu6WSri90wlXv906zUErCAlUNW 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?1759443979294370487?= X-GMAIL-MSGID: =?utf-8?q?1759443979294370487?= From: Shawn Guo The RPM clock enabling state can be found with 'enabled' in struct clk_smd_rpm. Add .is_enabled hook so that clk_summary in debugfs can show a correct enabling state for RPM clocks. Signed-off-by: Shawn Guo [Konrad: rebase] Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 198886c1b6c8..ecacfbc4a16c 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -424,18 +424,27 @@ static int clk_smd_rpm_enable_scaling(struct qcom_smd_rpm *rpm) return 0; } +static int clk_smd_rpm_is_enabled(struct clk_hw *hw) +{ + struct clk_smd_rpm *r = to_clk_smd_rpm(hw); + + return r->enabled; +} + static const struct clk_ops clk_smd_rpm_ops = { .prepare = clk_smd_rpm_prepare, .unprepare = clk_smd_rpm_unprepare, .set_rate = clk_smd_rpm_set_rate, .round_rate = clk_smd_rpm_round_rate, .recalc_rate = clk_smd_rpm_recalc_rate, + .is_enabled = clk_smd_rpm_is_enabled, }; static const struct clk_ops clk_smd_rpm_branch_ops = { .prepare = clk_smd_rpm_prepare, .unprepare = clk_smd_rpm_unprepare, .recalc_rate = clk_smd_rpm_recalc_rate, + .is_enabled = clk_smd_rpm_is_enabled, }; DEFINE_CLK_SMD_RPM_BRANCH_A(bi_tcxo, QCOM_SMD_RPM_MISC_CLK, 0, 19200000); From patchwork Sat Mar 4 13:27:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64231 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp929768wrd; Sat, 4 Mar 2023 05:49:29 -0800 (PST) X-Google-Smtp-Source: AK7set8nnd26MHKfK8K4iF4irXonlDWyvqVWxJwNMULRapL2iTej3s9COVP5h8q1UqXpvKclBUt7 X-Received: by 2002:a17:907:9948:b0:8aa:a9fe:a3fc with SMTP id kl8-20020a170907994800b008aaa9fea3fcmr5527755ejc.8.1677937769406; Sat, 04 Mar 2023 05:49:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677937769; cv=none; d=google.com; s=arc-20160816; b=XP4jAN3UyrsFz0CvCcbqNJgnDxdUUt/eqzdW8BhyTWH/RWieZm59Rsy45SGjjWUIGd P4pfNJ//6RY3j4giEr0a/XR4orovp5tn0vYSJCfREuD09l//Whf+Is74bdJGvsJGefPP 6Nn11r7T/zLtP+NXSN7a93unKQo5Zt23BnROMP30On5kumN6CtqcgSG0i4NAG2mui1hj 6+N3Tk+ncPbSF8iVt8gvrh3S0VB+Mc37rAGUT4dsjWk/x2E18KDWyud6yvw4FlNPQt0L j8ZByKf06WxCXRQms1Zp/R3xLZmDsBTuZmXQQu9gv6PfwNiYtttDWv5dBbdo/aadal14 j0WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=hMJaPWZzvgr1zZRk25pniV8MNs32JGnZ0ctQITcox7M=; b=oK6OLlCj0odm+dVkuPiV27USWPPs5AUy9qTm59ruPM+rHfuuyG+MTw1nmy7d6CPF+o /uJS9FmRNnmVd6EavZx2b4BrUCavtHmYPqWA1GprFdf39zaOKJyMBDzyxq0pSQCPb/V+ A+tp3qZaJwBqejeVpzPrrp24lGI1fP1fuV0B/mKYO7lXCVoTEcwzVO9Gz076wEiq42No pJ8D+Utn/B9tZHt7L2vvY9JYDHYXllz2I9pRnSDgIjk2bmKzBMxeK8HVjUvSzwMb5Ixv eK453guaaQ8qUCsRIfHchQaxhhdcMwvSovBrCwWdRsQjGnJxGQzaUFB0hQVdSmG/yDnb QXzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o8kkgmrj; 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 ke16-20020a17090798f000b008bafadf8b22si4976718ejc.199.2023.03.04.05.49.06; Sat, 04 Mar 2023 05:49:29 -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=o8kkgmrj; 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 S229803AbjCDN2A (ORCPT + 99 others); Sat, 4 Mar 2023 08:28:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbjCDN1s (ORCPT ); Sat, 4 Mar 2023 08:27:48 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55B0016AE9 for ; Sat, 4 Mar 2023 05:27:47 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id t11so7046878lfr.1 for ; Sat, 04 Mar 2023 05:27:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936465; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hMJaPWZzvgr1zZRk25pniV8MNs32JGnZ0ctQITcox7M=; b=o8kkgmrj2CZofpq7c3FkIlktr8pr851tpsO8hUhyNIAbK53RHVnMT6HM5xgR9g/92b uwCh4FRQ+l7zi46ITBZWceMIdVugwfDdV5XGhAWWtIoabnu1VLjrojg9DrXjYo+XIN4c PbDu98R30gX6B/0HK7bhgn40lkfZqvlqctTfhLI3KgXRa+dUBBa1vdH/HRzw/b26tJ+x OdZpHA5WFlAiij6Hr19O+DUxot1uqRJ8qN3CH+qiRNFcE4foBHUSBByCi3qnqAUXKpu8 eH31azpvQjwzm0EznW5pSeBEjviSI//OSWmQ/1CQlMe5oJYCkgkMlAEH8d/hnKLwFJFS /V4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936465; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hMJaPWZzvgr1zZRk25pniV8MNs32JGnZ0ctQITcox7M=; b=yBcz/WmM7nN2x6lYIehCMYHTP8fQMHwFlt6NlRJKa6dVzM0wOu/sCIYlp6ZHxOt55X ijI1k0bPG5fyWgKPQo8qri5qe545J4t2oDM8MSb8pqMtpVAeB38aFynQBKqCmXsTSt4p xvLWMQ1VQiIbRC8ljtcXp2netJ7vfQa9/RntF+k69owAaL4bDtLCdb4W0EwwyBUhF9Jc 29HQEL/cFo221Ow6xj/6PPmzDvBoJ7Mwjd8qKJjW//KvC/FOAZfYQcTNIT40oNzWn9AX uqCF4bhyajNLpFIp8U3nF9W6FhYhHL0ZQcai2AyBfKROGcjBudzVbue+AEB/SuB0ZkTG JO/w== X-Gm-Message-State: AO0yUKXRMCEt7VBj/UcR/9tzxy1CeU7pCwbQrgds9Af7jrknm1/lGmth 5/9JU+XebYmafuoiAPPLPbu/BA== X-Received: by 2002:ac2:4854:0:b0:4db:387f:a3bb with SMTP id 20-20020ac24854000000b004db387fa3bbmr1587155lfy.0.1677936465661; Sat, 04 Mar 2023 05:27:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:45 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:37 +0100 Subject: [PATCH RFT 02/20] clk: qcom: smd-rpm: Add .is_prepared hook MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-2-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=1482; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=IcjgjHunD3zMZaFeCfHoL5cnPI0PmUW34gmf6fJPVyQ=; b=TA38znb8IsFbG6X+YzeL7jxDAfYqgL3P5XySVNQBRYMrhinLnwYLW7iCI5JC09DYwsWPOVlZj+l3 9PqFN2fBDSPADX7rWnlyzqWb/RUDvZvepA1iFGevM5jxQQmGbMJ6 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=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759445274543345766?= X-GMAIL-MSGID: =?utf-8?q?1759445274543345766?= From: Shawn Guo The RPM clocks are enabled/disabled through clk framework prepare/unprepare hooks. Without .is_prepared hook, those unused RPM clocks will not be disabled by core function clk_unprepare_unused_subtree(), because clk_core_is_prepared() always returns 0. Add .is_prepared hook to clk_ops and return the clock prepare (enable) state, so that those unused RPM clocks can be disabled by clk framework. Signed-off-by: Shawn Guo [Konrad: rebase, don't duplicate the enable func] Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index ecacfbc4a16c..cce7daa97c1e 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -438,6 +438,7 @@ static const struct clk_ops clk_smd_rpm_ops = { .round_rate = clk_smd_rpm_round_rate, .recalc_rate = clk_smd_rpm_recalc_rate, .is_enabled = clk_smd_rpm_is_enabled, + .is_prepared = clk_smd_rpm_is_enabled, }; static const struct clk_ops clk_smd_rpm_branch_ops = { @@ -445,6 +446,7 @@ static const struct clk_ops clk_smd_rpm_branch_ops = { .unprepare = clk_smd_rpm_unprepare, .recalc_rate = clk_smd_rpm_recalc_rate, .is_enabled = clk_smd_rpm_is_enabled, + .is_prepared = clk_smd_rpm_is_enabled, }; DEFINE_CLK_SMD_RPM_BRANCH_A(bi_tcxo, QCOM_SMD_RPM_MISC_CLK, 0, 19200000); From patchwork Sat Mar 4 13:27:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64213 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp921935wrd; Sat, 4 Mar 2023 05:28:56 -0800 (PST) X-Google-Smtp-Source: AK7set/vN4MZsuuULIbHFSUkTMZqUl4ZxTib/GXC1xOHMiYyydG5F4hmu5U+QOrgt+x+dGJ9MW/d X-Received: by 2002:a17:90a:1c3:b0:237:3f83:61f3 with SMTP id 3-20020a17090a01c300b002373f8361f3mr5360183pjd.16.1677936536670; Sat, 04 Mar 2023 05:28:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677936536; cv=none; d=google.com; s=arc-20160816; b=cAIkqEtbD6D7z/WXdFKqD2hWGoE/dJayqTgtYziinwkPWCYltMXQBl3kYWYd6UlVj5 GMi26PbgB/9l3dYaZ8UP2piknh9vw3vjUBHWdBPU3TdxYgelWEpbQTzG/rps+iP9voR3 S5PcsCjNvNCQ4TszS063DAtnGibTFr8x8iO/J9mHryfyF6CWcHx/Ucu7xyfwwJMgujMA dfAky0ImPRTx5tlQpkg5uQpH/cepYVOZtZtPmZCzzCNWikSMe6lI+t6S9f/TjMd4M+1+ O1fJgGDI6YUnGwptgLlR2mHDfTzZhb+pbw52B6I2GDEFH68nE01dpYI9k4EkC/+56HLz nD1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=CE+JnL554VLPGrdcTc20YFzCGjPgavHLDXyWnjlT8uQ=; b=gR6Fi94kLExiqdOIip6QvxKTaBx5W30JrahlUKNz/0KQU3LiEtDuNhmgsE83NcGD0/ lV5hR3Mqq6QwQVOg3nym4DSq6y4+mlLf9edLvkPahN8BLaBgPAw0/olbMypg0hHepIXl qXTzJ+uzwkjoxGqmM8D0CrTVnfxP5kzg9PyjHirlIriDrvB+4D6LoZeExSSq7PFgn+m2 Oiap1BWDp+vvAi3uZ0oJKDj3CI1JIEpIT6YdtppT+HPl/geKzgYIvyrKGpDFYC7ZaJaV lY0sRkjT7Op/kplLdwZnluj54cEedb+Q8/OGxKm+gQtCA4geCgzZ90FD9CVJeLGOJVlP CUsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hFDetAD7; 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 s1-20020a17090a764100b0023493354f31si8255380pjl.119.2023.03.04.05.28.44; Sat, 04 Mar 2023 05:28:56 -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=hFDetAD7; 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 S229799AbjCDN15 (ORCPT + 99 others); Sat, 4 Mar 2023 08:27:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229764AbjCDN1s (ORCPT ); Sat, 4 Mar 2023 08:27:48 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 415391688D for ; Sat, 4 Mar 2023 05:27:47 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id s22so6998951lfi.9 for ; Sat, 04 Mar 2023 05:27:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936467; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CE+JnL554VLPGrdcTc20YFzCGjPgavHLDXyWnjlT8uQ=; b=hFDetAD7Gf3Uoj9lcHwDSwjbA+lpTNVXi9aHpKFB9gJOVRf6NZ287JAKeFQZAT5I4H Q5C/XumQWPXNO0bIN4ZIWaw3eFojXM49nlbFqWFbB4v/QHyjk27LbIBVIQNhuOMpsCmT cIHvA7bWUl+ddj8XnggIDpf6/aG+VInJvMLqoF2Tl8oBPZ0lrNkqlal6AzuWDCdUp50Z bIgpBuCG/uWpHt9EIYUerv9yW6ROHy7AY/7NOhGe5zf3zz6cp1XzeNSQki5jkRCfdsK5 nuGylEvFzQAkf7hNobrBhFetuWyxTvmv+FNt1tHPV187WkUOf/MfuqeWBtBgDV9P3T9p f2kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936467; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CE+JnL554VLPGrdcTc20YFzCGjPgavHLDXyWnjlT8uQ=; b=NK2ma4IPkMRR0ojaRwqMJYBb/P7TUKyAKpuClu+S//VdCLXV+ySqGZ4yneGBIfLYBR VlVJqJ94+jZNPas5PBQF5a18q3n4Z+2T6L1iSUqiVPdiI1QfhejlTH7nKD+LN9dxce62 AtDLy8oPppbCVYOXfa41HYA8RVQOG3jn2t3bc9q59IsUal85dQmMxh3uGTDztmBKrE23 N3KqNAOmYKrqHOqJJo96+7D9+seVE7dahhQczy76m4cI+5nkCyVbSzww+ucanTuDRVdc nN4D/gu0cG7BB2yrwUQBPZDYmfhqISikfXzaT7Bvt7sTkWq0+0DcFFkkmkjdYG991Y7x 0+Ng== X-Gm-Message-State: AO0yUKUs1sssunalYB3ie5Nq7jb5Uf/1EJX5lENNLKt5uGiK1OkwsSwh FKvGlTEAtI1WoSOtxhlPY7raOg== X-Received: by 2002:a05:6512:249:b0:4dc:4cb6:6752 with SMTP id b9-20020a056512024900b004dc4cb66752mr1399674lfo.52.1677936466825; Sat, 04 Mar 2023 05:27:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:46 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:38 +0100 Subject: [PATCH RFT 03/20] clk: qcom: smd-rpm: Add support for keepalive votes MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-3-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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=2703; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=VBzwbaXA+dk9JgBRximop+B+UNGSjqkXnpU8yOYDpzg=; b=vRvRa3GKRs17Whe+QiRk3sO5TcIbgjnytITqODU1Z5zQCAVGQX2c1QUVNHaml1lKhqyNINZN7wAh 2up2QNTxBKgrxReKmOcfWimBYf+3AVFi4y7oV5nKza0tDL5Kx8v3 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?1759443982066554545?= X-GMAIL-MSGID: =?utf-8?q?1759443982066554545?= Some bus clock should always have a minimum (19.2 MHz) vote cast on them, otherwise the platform will fall apart, hang and reboot. Add support for specifying which clocks should be kept alive and always keep a vote on XO_A to make sure the clock tree doesn't collapse. This removes the need to keep a maximum vote that was previously guaranteed by clk_smd_rpm_handoff. This commit is a combination of existing (not-exactly-upstream) work by Taniya Das, Shawn Guo and myself. Co-developed-by: Shawn Guo Co-developed-by: Taniya Das Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index cce7daa97c1e..8e017c575361 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -4,6 +4,7 @@ * Copyright (c) 2014, The Linux Foundation. All rights reserved. */ +#include #include #include #include @@ -178,6 +179,8 @@ struct clk_smd_rpm_req { struct rpm_smd_clk_desc { struct clk_smd_rpm **clks; size_t num_clks; + struct clk_hw **keepalive_clks; + size_t num_keepalive_clks; }; static DEFINE_MUTEX(rpm_smd_clk_lock); @@ -1278,6 +1281,7 @@ static int rpm_smd_clk_probe(struct platform_device *pdev) struct qcom_smd_rpm *rpm; struct clk_smd_rpm **rpm_smd_clks; const struct rpm_smd_clk_desc *desc; + struct clk_hw **keepalive_clks; rpm = dev_get_drvdata(pdev->dev.parent); if (!rpm) { @@ -1291,6 +1295,7 @@ static int rpm_smd_clk_probe(struct platform_device *pdev) rpm_smd_clks = desc->clks; num_clks = desc->num_clks; + keepalive_clks = desc->keepalive_clks; for (i = 0; i < num_clks; i++) { if (!rpm_smd_clks[i]) @@ -1321,6 +1326,24 @@ static int rpm_smd_clk_probe(struct platform_device *pdev) if (ret) goto err; + /* Leave a permanent active vote on clocks that require it. */ + for (i = 0; i < desc->num_keepalive_clks; i++) { + if (WARN_ON(!keepalive_clks[i])) + continue; + + ret = clk_prepare_enable(keepalive_clks[i]->clk); + if (ret) + return ret; + + ret = clk_set_rate(keepalive_clks[i]->clk, 19200000); + if (ret) + return ret; + } + + /* Keep an active vote on CXO in case no other driver votes for it. */ + if (rpm_smd_clks[RPM_SMD_XO_A_CLK_SRC]) + return clk_prepare_enable(rpm_smd_clks[RPM_SMD_XO_A_CLK_SRC]->hw.clk); + return 0; err: dev_err(&pdev->dev, "Error registering SMD clock driver (%d)\n", ret); From patchwork Sat Mar 4 13:27:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64224 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp928452wrd; Sat, 4 Mar 2023 05:45:32 -0800 (PST) X-Google-Smtp-Source: AK7set8y3L/87MGn1pd+iaKO/1F7vcBF1KqXs2eqIW9+t0kvdW2WFRqhK6uJKQJfyL3ylGPFbYPL X-Received: by 2002:a17:906:fe09:b0:8b1:2bde:5c70 with SMTP id wy9-20020a170906fe0900b008b12bde5c70mr6196532ejb.2.1677937532133; Sat, 04 Mar 2023 05:45:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677937532; cv=none; d=google.com; s=arc-20160816; b=vVOnxCuFlnxog/qzcaDt0yreGMoyqvq/L9noeKv/559t6+U2QhRe3Yo2GnexoZuawQ CIvm850jVaXPRxgVQYR/9OyjdpS2Naq0OPZOzDqstvG/53gQZWveu0HycqdL30T3H8cR bVAcRJbCp6r4rVdhY7XaqxoaY5DzrSML/xxru8pP8I22tEMdbo+k/mvBK85NZbGXu309 J5fp616cUhegsYgP7AuifBBboaQoXyZfbfCvSuKrK46VcdfE0X+zml7t5Gh59Am6ETjN AawwpPvwzIq4Ukwyixi6g0cv/LMDJl5mW5VBVAQqotQMa1p1tMzhCmE0IP3/CCDb063N khUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=qEzJqXZMmu7+Aq//5Xx4Jhn8LF4cNTc/ZIgGx+BB0mc=; b=m2Iu7memK7mGsmNjIowE1dwdzc8tsjNqyYOVF8OM3BlUJ1OkLLxjvpYbBnSFQgoJ17 yEbj4XL2CtbZUGb6K5X2SL4t6k7XmcAtwmDH9V7O0+ezYO6V4OeobttcYn/psmiqvLaY grvCTZ+8ulJfksD8BBUjEkFYmx1GhOXgsDyny5fnOZThcY1o/dkzPpAa0G+xRfHgBt1E 78LCgXq6DawMsejTYGamq4Hx0um4tperuAyft/LKPHmCHqg3nL4toHrWD/CjJsmy8t9s pBdWVffBvDa59jsOA49LOyTcALU5Ko5pvFFhgLdLusgSh1psXz2cI9Fnnh4xAltMfeLd 84gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=akBJZ12A; 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 e4-20020a170906314400b008ccf9fd2186si3145281eje.867.2023.03.04.05.45.06; Sat, 04 Mar 2023 05:45:32 -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=akBJZ12A; 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 S229748AbjCDN2C (ORCPT + 99 others); Sat, 4 Mar 2023 08:28:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229784AbjCDN1v (ORCPT ); Sat, 4 Mar 2023 08:27:51 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 859261E2B7 for ; Sat, 4 Mar 2023 05:27:48 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id i28so7104375lfv.0 for ; Sat, 04 Mar 2023 05:27:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936468; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=qEzJqXZMmu7+Aq//5Xx4Jhn8LF4cNTc/ZIgGx+BB0mc=; b=akBJZ12AJt/MTokT8ZFeplkfm0LAFtS+EW0Wf2LI5uDt9RXc1Ps/c/y198w4Nsciwi mZPwDh57dd+FiR42kN2jbmh5/MxhoW1OpU8xj8qu/coeOnF6rA1pUVxwwPLBLn5YgWcM fQlVzDtmBmGI2SgvFV1vwdgkYvplwEzy0C5TVzNeS59AylktROmyygAIlIgE+Q7Oa2D/ wKNlS9M0lJN1/YKET9Fk+FgUm+AjjtIjD1GWOT0dTmpUizmp7gLvGewr7+uN+otWkPCy sMHE5J6koUt5Pxl7ItALHpcA+lOTmly827/gjYGlA73blHHSCYgFKHhXTkYQLHJu6BXm ec6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936468; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qEzJqXZMmu7+Aq//5Xx4Jhn8LF4cNTc/ZIgGx+BB0mc=; b=bqTQPWNqOe3NHKR+0f0Tp1HPZ6XYwRYASBOUvmxwUuokaZAEi4FCi7sxgCuPVtufnQ wazualcJfVN+JgU2v0YdhbbTh0Aut7ksGx5BLVU1awOZGv0dkvKCloWyvlsiLf6r9+tk s+aPrHmKH8ahp7Gty6R1SkhdFlsksT7kxkkimbA7XNoBc0P08JVlcDzlQp6WhaCsMV2y +ZTe04+2jpEMH0hD82jgVnPHrwcob0vVh+9AFZGUbmXCeZvuPBgMjG5LWvO1L3FeU6eh LpgGt0+y+Xpe1uxmx7gAhAPpuvXSVfAdQhzYiT8u0KFmTbBY8vCpJBHO8rTHCHHr7OnP 6y+Q== X-Gm-Message-State: AO0yUKWApkHF+Ue/B2onXXaJBUxg0+yFHlRHf6MtMg88xhBJJZIaN5Eo XLJo+i5wyJFCpHmJHLPKLXhN5g== X-Received: by 2002:ac2:4acc:0:b0:4b5:2cf4:cc1d with SMTP id m12-20020ac24acc000000b004b52cf4cc1dmr1351192lfp.68.1677936468137; Sat, 04 Mar 2023 05:27:48 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:47 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:39 +0100 Subject: [PATCH RFT 04/20] clk: qcom: smd-rpm: Add keepalive_clks for SM6375 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-4-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=1290; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=3tXzpwvDzDe0SY21gtzHXJKH89A17frdRG3PtQq3coY=; b=u6E6FhjC6QbGcfwGEM+W1OWP4En1GI7YuaXqpIpeh2GWY8bXrtOdmeTQhpi6oRYLVG3G5puoZynU NUluyBrcDlFQS4AZqcKezAZ6Li8tMUOaYif8FeJfRd1GJ9jWpKID 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=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759445025867398913?= X-GMAIL-MSGID: =?utf-8?q?1759445025867398913?= SM6375 requires that CNoC and SNoC clocks always get an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 8e017c575361..8ca301c58909 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -521,6 +521,11 @@ DEFINE_CLK_SMD_RPM_XO_BUFFER(div_clk1, 11, 19200000); DEFINE_CLK_SMD_RPM_XO_BUFFER(div_clk2, 12, 19200000); DEFINE_CLK_SMD_RPM_XO_BUFFER(div_clk3, 13, 19200000); +static struct clk_hw *cnoc_snoc_keepalive_clks[] = { + &clk_smd_rpm_bus_1_cnoc_a_clk.hw, + &clk_smd_rpm_bus_2_snoc_a_clk.hw, +}; + static struct clk_smd_rpm *msm8909_clks[] = { [RPM_SMD_PCNOC_CLK] = &clk_smd_rpm_bus_0_pcnoc_clk, [RPM_SMD_PCNOC_A_CLK] = &clk_smd_rpm_bus_0_pcnoc_a_clk, @@ -1189,6 +1194,8 @@ static struct clk_smd_rpm *sm6375_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_sm6375 = { .clks = sm6375_clks, .num_clks = ARRAY_SIZE(sm6375_clks), + .keepalive_clks = cnoc_snoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(cnoc_snoc_keepalive_clks), }; static struct clk_smd_rpm *qcm2290_clks[] = { From patchwork Sat Mar 4 13:27:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64214 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp922010wrd; Sat, 4 Mar 2023 05:29:11 -0800 (PST) X-Google-Smtp-Source: AK7set/x7n3xD2PZXIFh0n9yA/Bq3sML/h6U5OWf6MB4n9t5l6ZMnlVA/JFiw/m0NftMJztXaKsh X-Received: by 2002:a05:6a20:7f9c:b0:cc:aa7b:84e1 with SMTP id d28-20020a056a207f9c00b000ccaa7b84e1mr7881309pzj.21.1677936551128; Sat, 04 Mar 2023 05:29:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677936551; cv=none; d=google.com; s=arc-20160816; b=dqQmLREYNd6wcPUbhPk7wfNiN4vvbEHORDW98e0uWP4WQDNbbDs24cxmQGYVs9kxZL 2NLW5U1hpgDJ68zE0FGCXpQ1Lj5WTxgZ4u7Igbv6DLw5MtrY7UuX2CZVQCTbNXrOD+c9 WtRKgzgBx6CVNY2gvDSfDHLJAynNa6EgFxZUQZaC2gNApKzkzFkfSa816LsDoLLd8Z2/ fhMuCpJeT8UzwnWbHz63i4L4z6fexDQsp29gkNAcGSOGdyYxPj3YKoNFmHRNg7jp3b8m 5P+p10/L3i+++L0vm0IXm8ucPBXYqwrpMAUwthCMfNamwmDgE6P+nor9QMGJg+dKMU2N CtVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=FYL13R90UNi1dy00Ua3Z1vWgzMNDfwLwvaxSvlHKzh8=; b=ipcZXohOIY4a2Ts3CninjN6urO+O9pCe4DlggG0LxZrAKzJv8sVbI9PKOJ6/YA1m4/ 8x1DYZZIuM0x0GdOvqe4G037ftgXxg/zHwRnokDDGp8hAHMNYUyNOrJCCVhCGcYvK5D3 Be1AwnLRIkEprteTU+IE6NIRZZsyN40RTVnTB11OnyqbU85l2w8/17FK/fMmLTK2AlI4 wmhvYBR93bIp2L4/YpJDLdOVnZcAZO0BjmMFbetul3p2s3QmvMbID3NzJrltEiz62H49 equNyH/BcMpmvBSkEHKmAgFwdvtLiorQ4PDkUL0Vr4W65/z5HAVjz3EVP7q6xNDH6r/b f2/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RCKJ26K5; 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 6-20020a630906000000b00502d5c32148si4363567pgj.248.2023.03.04.05.28.58; Sat, 04 Mar 2023 05:29:11 -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=RCKJ26K5; 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 S229811AbjCDN2K (ORCPT + 99 others); Sat, 4 Mar 2023 08:28:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229783AbjCDN1x (ORCPT ); Sat, 4 Mar 2023 08:27:53 -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 EA8941E9F4 for ; Sat, 4 Mar 2023 05:27:50 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id f18so7049608lfa.3 for ; Sat, 04 Mar 2023 05:27:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936469; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=FYL13R90UNi1dy00Ua3Z1vWgzMNDfwLwvaxSvlHKzh8=; b=RCKJ26K5qc1I6agiL5AP+pL4YEenytEy+i9wyCSp8Uzl2MuPkwMWDfozSnnsWuTfCe nX+lXs7PFvR/wlMJTCw/KIBL08vyZivJ4y1umQQQibk99BxsGvcysD+MeSNy+y7e8IGC iZahjEZtH79HtCx/jLsvnP1G46yC6CSrkvTcTgWc124/ZPLd1ygewF2zrfJTIDsO+RhS sB1vCTrtI5XkyDP+xmMtVG+z9ooBZifxV2qoCTBOH8k5jAjKIqPl7inn/8Wojs+849xi GWzFFk6F8cNGeQNURx4Rh5Jgs0xVZxKF3ADp/489e6435jSElG5ClELFq3F4degugCwy O/kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936469; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FYL13R90UNi1dy00Ua3Z1vWgzMNDfwLwvaxSvlHKzh8=; b=bcEprvaWCni2cpe9GkLiQwryHb0nkZlqe49OS3U2X+d+WP5yF8qHhx0uqI0W6d20LS Fxfuauadr76Eb0t/Yi+Bo71yDusl+VXcbrNaid5L5YOvkP+9pRTkmp+hlL86pTT0PQXT hrzwyeILZvAo7zc2Q+X1eXBJBdreCppKp0dscFiiilGADJRCO0INmCW19kGmToXcKm/C zQOuSORf0m21sdURL64plAygVJvFASD6ApkKbKDe8w5sXC8KCFtqRT+xxTaWWYn2oxsz NlYIaGC+svMP1+g40qoYjIhMvxZxWBiKryxzXkVLXX/PBnx2aAEM7eDWRkTllXDapA9H rJaA== X-Gm-Message-State: AO0yUKXSB2PJPsTJHa7ujhg4EbHaVACz4PW9d9grwaYn/J1F1VT+S9yf PFjuHICE6PYmKO1DJNiHjxcqOA== X-Received: by 2002:ac2:4ad9:0:b0:4db:1fdf:4c64 with SMTP id m25-20020ac24ad9000000b004db1fdf4c64mr1544079lfp.54.1677936469122; Sat, 04 Mar 2023 05:27:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:48 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:40 +0100 Subject: [PATCH RFT 05/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8996 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-5-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=1165; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=YYwH7HEKpalW8VgmKOZODnJie+e1J65AzjEIw3E/AUA=; b=SXHK0npSEW5c2nRa+iH4S3G7CKK0VZ/NRX854uT+wQDjL1qLuJSv67mSVt7rT8+yPMBLEQ4QxNxv afv6DPLuBPniTwNFVzaqdk0BV6KK7xyfWnPOo+TIgFJNOiqGa73D 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=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759443996930419535?= X-GMAIL-MSGID: =?utf-8?q?1759443996930419535?= MSM8996 requires that the PCNoC clock always gets an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 8ca301c58909..72d06d9d2619 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -526,6 +526,10 @@ static struct clk_hw *cnoc_snoc_keepalive_clks[] = { &clk_smd_rpm_bus_2_snoc_a_clk.hw, }; +static struct clk_hw *pnoc_keepalive_clks[] = { + &clk_smd_rpm_bus_0_pcnoc_a_clk.hw, +}; + static struct clk_smd_rpm *msm8909_clks[] = { [RPM_SMD_PCNOC_CLK] = &clk_smd_rpm_bus_0_pcnoc_clk, [RPM_SMD_PCNOC_A_CLK] = &clk_smd_rpm_bus_0_pcnoc_a_clk, @@ -882,6 +886,8 @@ static struct clk_smd_rpm *msm8996_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_msm8996 = { .clks = msm8996_clks, .num_clks = ARRAY_SIZE(msm8996_clks), + .keepalive_clks = pnoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(pnoc_keepalive_clks), }; static struct clk_smd_rpm *qcs404_clks[] = { From patchwork Sat Mar 4 13:27:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64230 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp929583wrd; Sat, 4 Mar 2023 05:48:52 -0800 (PST) X-Google-Smtp-Source: AK7set9B2hsyLcwu7sHN7hcS7JEBM8MWDTbnTPXXaRrt3kVTRhc/KsGmiVLvWXiMMVp0VasON3M2 X-Received: by 2002:a17:906:ceca:b0:8c0:386e:6693 with SMTP id si10-20020a170906ceca00b008c0386e6693mr4627534ejb.63.1677937732491; Sat, 04 Mar 2023 05:48:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677937732; cv=none; d=google.com; s=arc-20160816; b=H8AVggeh2rqeEyRVE5J2m1w/2ZZ0MUkkeC7Mvs7luyGxnNspI7W4DcL8N9qWKr474B f8uJp/znKTnH6YOywHJXnYHOHhV2oV9Qvv7nEWgyf7JtKAFD4njOrKKDQVYTVV/hHCci 5nqBRGijiiekAWCJLcPj1qPlan2384ofaVrwkWcVXY2/iljditnwNpDj5eVm/Vx63KC8 BJZaiI4RWnmlu8BDazxo8xKBexN2coiztdhfsBUO3PwAkPXhLkKuvTGsB34NzXEMJi3O 0RUlqJeTLPogP2Q3vD7dosaxGDfatmomHBnY7EwApRgJ3qgOovwNt7BQcPehs7SJZ3wv 5xxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=sg5MUUS/RsvMJqG0oyZOGmW2KQWocuS/nndCa7/Leo8=; b=PsnUzctvJ/B2v7dbhP1+BWA4BEZLuzpK88GtE7BKbyn5VLJiX4ZPq8/6ScYs3lnxUK YRQY+fp9F2ZGUOz4RAOrd/lupwiTHU1OiQMCGlEJdZ9hP7aOSEh6j3jaqVIlYIDJc7sW qvkiwlhYMtyw8TmgcqTnG7mLOIKC3uPg+lAd9wKO9S84s7Vu7B2b129gdDK72kxUUSNs fxy/9svm0n67Ims9ZtJrw+tXU4zSZI8h9uzdnHr1NnGi2vMscR9K4G/QE3EuOgxI3hZO kppfMJ5UXThTA8ntE5OSFunRFhLViK4pydEDN/ovnzu5Riv20s0HBnIy6zCz8CjFeZxj B0Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FxG8MQTg; 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 h26-20020a1709062dda00b008b2972b5cf7si5125360eji.257.2023.03.04.05.48.29; Sat, 04 Mar 2023 05:48:52 -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=FxG8MQTg; 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 S229848AbjCDN2O (ORCPT + 99 others); Sat, 4 Mar 2023 08:28:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbjCDN2B (ORCPT ); Sat, 4 Mar 2023 08:28:01 -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 1EBC11F902 for ; Sat, 4 Mar 2023 05:27:52 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id i28so7104432lfv.0 for ; Sat, 04 Mar 2023 05:27:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936470; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=sg5MUUS/RsvMJqG0oyZOGmW2KQWocuS/nndCa7/Leo8=; b=FxG8MQTgshq7ZXgNGnLPcInBYnPjz7J2SBFZmx5pSSqtfRhePjrXOa3uixl5CY19OQ X4cFXTEwCRyR4fM5u7YPvZUv1sO/0wrJQFiNVRq+/mewZM0J0AR3vQ25DuieBnGCF2cU 9GeyvHL9OnvJfsafAo1bOLq6JZ0X8phUC3m9lHRzG4IGFe3RTTIvYrnby2wBRu4vyesh nYznzgsIiFia3aPNvRDyOSXyAI7+zhG2idKnb/Z+dOBnoBuy1/w6iOQHjqeE8ISNRV9/ ++pndzF/COIAGrZLw29Dds/8BAo8csr+dzZh5yu3xIFepVa85+AMeymiT5CbcVJey4dR TL5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936470; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sg5MUUS/RsvMJqG0oyZOGmW2KQWocuS/nndCa7/Leo8=; b=wm+trN+5mGHlql7DhC9V7/jGSgfCo2On2/RuUqiQzPRyCQ/BB7VUA99U3AQ7JvB6TU SsQhEd1hzzNqcjjcFMt6gZoa2GcUGJGte0RLCw9Y4fBk7whAS6ZGr3Oy/qH37UMj2rfN pdmMHXy3Q3BUH2fDfiYR+Kj8vTHL2xzvFV6e7VBw+/OjKsy1BiqCLibUGs4ojuhRBUbT vs1ugbBKjybJNeC434AvsxjV5fUbVxppNcn8DjPYCFFg5XfDAXagTuq1F1Fc56qXKVj5 /U77gB6/7mTTwQP7P0/N+rVrIesA5hJ2uWZPngIY2bKkfVmpPxMuBB+jF1o74vrU5GN2 uB7w== X-Gm-Message-State: AO0yUKUH6ZqHwgN8157VXMVUtI50417WKtfhUwiw9qbMQ5+roH/XWTXh KdLf04LMg69Xlz5Izru5z0Q2SA== X-Received: by 2002:ac2:48b7:0:b0:4dd:a86c:203f with SMTP id u23-20020ac248b7000000b004dda86c203fmr1482024lfg.49.1677936470120; Sat, 04 Mar 2023 05:27:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:49 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:41 +0100 Subject: [PATCH RFT 06/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8909 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-6-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=782; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=7ViNlNQmKGvqkVAUmi2Hj/9cd9y9CDyFSAhdPgHMoms=; b=9KrpIXyi1i//002Au09KnaAtBtBqtLG0ajmDLO6201qe7dikbcLVaFjDYnyKHxIqa1l7TyUS8Ivs t7RNfR9HB0XVfDggzdaONcFoBAwO5lyZY9L8vMbgmaZGbMx0K8xR 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=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759445235739182709?= X-GMAIL-MSGID: =?utf-8?q?1759445235739182709?= MSM8909 requires that the PCNoC clock always gets an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 72d06d9d2619..1a678a962770 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -562,6 +562,8 @@ static struct clk_smd_rpm *msm8909_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_msm8909 = { .clks = msm8909_clks, .num_clks = ARRAY_SIZE(msm8909_clks), + .keepalive_clks = pnoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(pnoc_keepalive_clks), }; static struct clk_smd_rpm *msm8916_clks[] = { From patchwork Sat Mar 4 13:27:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64225 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp928450wrd; Sat, 4 Mar 2023 05:45:32 -0800 (PST) X-Google-Smtp-Source: AK7set91j1wHSTS3d88hQMMxOVq+zTL0MZ1PQ5qBqYymuEr3nbgCADJFj+IqXhBhCOIgU9cIBkyV X-Received: by 2002:aa7:c493:0:b0:4ae:eb0f:892e with SMTP id m19-20020aa7c493000000b004aeeb0f892emr3964487edq.20.1677937532123; Sat, 04 Mar 2023 05:45:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677937532; cv=none; d=google.com; s=arc-20160816; b=GO9eYzJQUGOlISem1CMIY6zDFVJ9KPf63DVcQtb2yb6tGja0Neu76iM5BpLOCRHHz5 pgFe0TK3hK85Gqz+eRaFx00ZPoi3U1xxa2M17X8Dqx5Sn03m6m48F5DEjLYPWLDr+evJ Ldd/K6HVqaqQceVZ9VKSb3oDkhUwwmlxqAdjzFgLaKM8opuqCBBcRrA9J52+AcBY//+5 6ofUKyIxKX6ld1aAV2jdW4uqk6/Pi/hMRFyDQh2NjBN6bkawF9ZGPsdPnLqXlg3ymg+b vXNIckJ6B1qf+JJuP75bCqiTRVcwkc0mOHd0+nVok5Y6dhfXz2GUjSQWcEdd0oLCfd4H vNXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=J0QoQUCwZ4517scsxI8XcPjm+YClZabP+eyHX2AdjqU=; b=0s6laZXdngSjWO2rvHytSR8J1CiIcmOTOu+ye0X74MMbrQI1R4EkdkL7y+I3OxDw33 4Bzd+5Moo9CX7IUpkrTxHT6FPJMjz4zAFVRN8Z5RZrA4u9gPSQA2TWEmTGjxETj1EdZW yPIMrv7KGd6sEedcxlBs7OsEQHxLB028RHQptmNsK/NGMQ3P95w6MPu3/ycbw0SNS6/V gxmeqmus/9D6GGxRV6fotndlsRhixsv5Mrmwj8lFT6GuA22ElYVno+gU+2Scpuee/o7r jRHlGF6naCSZ9Rw1YATd5FExHOsBeccIgwmARCnXdBu/eyq+6gwGF7DqHzhMkD//bm67 qRHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fmHnCN6R; 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 w24-20020aa7da58000000b004ad7c1fb712si2111803eds.620.2023.03.04.05.45.06; Sat, 04 Mar 2023 05:45:32 -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=fmHnCN6R; 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 S229789AbjCDN2H (ORCPT + 99 others); Sat, 4 Mar 2023 08:28:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbjCDN2B (ORCPT ); Sat, 4 Mar 2023 08:28:01 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFEE01E28D for ; Sat, 4 Mar 2023 05:27:51 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id r27so6992012lfe.10 for ; Sat, 04 Mar 2023 05:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936471; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=J0QoQUCwZ4517scsxI8XcPjm+YClZabP+eyHX2AdjqU=; b=fmHnCN6R3YH7slYJhITKJTZxd9LSPHvRpsLBtrEVzRcLmlwFBLCtWnvy3SMO0W8SfR 6IvyDbziVFTc229wIFU7yfqx2nHvIfAhv7mHI7h0iINRdLbnmmMFMbNMvUvKbPE++LS4 1tdN36MiQHKgT+2Hdb99QZscv/GP7dEEvpZYIlF9f51bu+r8Y1zN/eIKic0PJ8sNPAC3 DKnjEpLs9xmCq4vU5qRYo15EQPJVwlsxB8ta2BMDW+4Y3vqXgjpC+sLtdjknhePmD0qr mxMNZb1i35zPv8Yg9eY1M80zdmp9VPBpCFVjjPK+C5CsmKhVoj75xn3lLv1S4iuiSibT 9IBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936471; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=J0QoQUCwZ4517scsxI8XcPjm+YClZabP+eyHX2AdjqU=; b=SzODiFM/15NRv88QpbN41/vyjdINtsacTZmDeg2pzH69Fa+3gewJ4zGoE5qsFaGn09 9huSrmc1hYo1UD6OWWSI6DUm+xNT4B7no4iWTcvjV//cZcdDAd8nDIMVtq47hnOklJMV fIrY4+BEq7KDJm21bC+alyWx129c1rYVo2g8VZKMdCySejokoHQKXK2pYcanhCnhaQgB ZHKfLbI1zjbRK4STo/b7m1MVPVTTzZhRfSu1diTXhMCn/6t5s/1LyHoVOJ1M2Ng3hhNu NesAmpUyunD3iTehizC40mGHRR5GmzOwtj9Iu/OI+y9CkPdPEABSP7DzB9otseotu6hG 9mZg== X-Gm-Message-State: AO0yUKVqFzOX0bzMWYF0tPAXxIqboYdDOqJHbScBTlU1kKjfPu0lzpfr 52Zw+Z9z+zcBVEsRt2ObGq168A== X-Received: by 2002:ac2:5103:0:b0:4db:3848:86af with SMTP id q3-20020ac25103000000b004db384886afmr1425258lfb.12.1677936471099; Sat, 04 Mar 2023 05:27:51 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:50 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:42 +0100 Subject: [PATCH RFT 07/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8916 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-7-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=782; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=EjzJfBH80ZIEoJ+Wq0ik7Jj0/K7SI5Dj0zTT4DnJWEY=; b=gdzYNGD+fq1qcjQ/lc2oztJ9Fd9WHhUJgwc6ExEsJc1B31oDkehB50+0HGwTI9OsLUgDHvc9GS9x FG24puwMDKHhXLnPGygqD/JciwzP7fTy7LLNLSOsuJwItigty5fl 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=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759445025687528709?= X-GMAIL-MSGID: =?utf-8?q?1759445025687528709?= MSM8916 requires that the PCNoC clock always gets an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 1a678a962770..a93b4575f44f 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -596,6 +596,8 @@ static struct clk_smd_rpm *msm8916_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_msm8916 = { .clks = msm8916_clks, .num_clks = ARRAY_SIZE(msm8916_clks), + .keepalive_clks = pnoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(pnoc_keepalive_clks), }; static struct clk_smd_rpm *msm8936_clks[] = { From patchwork Sat Mar 4 13:27:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64215 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp922024wrd; Sat, 4 Mar 2023 05:29:15 -0800 (PST) X-Google-Smtp-Source: AK7set+nWLP77lOE477KL1vup9OerwAnWOWRb9cS0Mvw2TAJcDogOafothzWvO8dupMPKm4Qq8nE X-Received: by 2002:a17:903:2344:b0:19e:6e29:2a8c with SMTP id c4-20020a170903234400b0019e6e292a8cmr6416844plh.5.1677936554774; Sat, 04 Mar 2023 05:29:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677936554; cv=none; d=google.com; s=arc-20160816; b=yChJ4+OFnQbGUyVG57Itpuh2SoXCt3KkHS/QuTEUMaamHI8GzV1KZ2DDTr7l31NGdw 3IXLMKmxTp4qAT893X7fxvoBIBs+bBzd6w06aZ/bX4EpwpBcB/wABmsNtURHBUTlVL2C nfCXtW1HWusfXB/ZvfBUDM2deqFWQyEOl546pAr/GhTyGrsraIdYhI7Yd/N92ZMBppw1 XbUqReb0kWJx9fIjXD0GbVcTj4gbzaSQk04cuYeiZzCs9rbY9ZS5TJ+ZYHmgNnGHITG/ CBSpMt8rOVjFPn6oIuCsqZvfFR2cW/g3atYNzyau9Qksfgdc3fkzWGQ1xNgLRuA/zGsW igFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=qWlVTXk7WYZu7J2Or6ZWmESRrvvRWeXEPReJ0SD6qlY=; b=nwcB8RUHSVDTgeoJADiDBO8VvnEFf6ORTpstUQ1MecFo8AjRB7rB8h8q6IdqPxJ6kE WfePdUQkkVUJczV5BXtQ60ll2Pss8sGJaJVM1+X9GmhmZyt6HHrmdEMIqu9107OuaBKy e7fzvEAKIS18PV8wrPMU5j2L85FY9PYQJKAwldgvMxD6WTiYXzcHmEBfTUR1IAS0N0t1 79ya1ZnVYX2pStABlP8NP0gAE7SxKvAMIuVb1njQ4RKtKTM3mKyHk8s4fGnUze98JoiF Sm8FT7wHUwBySlebOgTF6Q7LW4khigKNDvW55AFW7rcekbrckeBHWspi3G9FkhQ+OSZU Pw7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RhL48itR; 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 4-20020a170902c10400b0019e6185116esi4511046pli.274.2023.03.04.05.29.02; Sat, 04 Mar 2023 05:29:14 -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=RhL48itR; 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 S229863AbjCDN2S (ORCPT + 99 others); Sat, 4 Mar 2023 08:28:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbjCDN2B (ORCPT ); Sat, 4 Mar 2023 08:28:01 -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 92A8120059 for ; Sat, 4 Mar 2023 05:27:52 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id d36so3868031lfv.8 for ; Sat, 04 Mar 2023 05:27:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936472; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=qWlVTXk7WYZu7J2Or6ZWmESRrvvRWeXEPReJ0SD6qlY=; b=RhL48itR43fFjXaTuvf9G3JUWZOElaWgeZDnLM9DJSygljD4PNeFkO3YDOqqt9BBBU 9f8gW6rN/PEnt6bHkohRsYg7ANs82SpW4i5UwYLyNLjqEK8lfmQtN74lkBFgDRP6NpiR Sy1oTMadRN6LbXdIcWuYZ0zmqHcz64HTKo4aw8Fn5HuDKHfMdlI4gB3sT/+U9ohJeRet P2D99QUahcDo08cEFsfybtB0WvNqhM/XfMNuIW9BriIWT/iRaiW8Egy1H8ZERAUGsjpY ywakDf4z0XEPj+r5D6Q5HyePy79qoQKsIffn7cwuUnJayItJbIs59Am4aaV4bfUumN/S 0L0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936472; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qWlVTXk7WYZu7J2Or6ZWmESRrvvRWeXEPReJ0SD6qlY=; b=gpYrKO7OhjNMqXkv0So0z2Aa6YUTDoJUzVuIMXizBmUeWdkO/BsSrs2uxGbwfIHvKa Tlr76S1w6tQgLcBQc9/9XCk2vRHWZ4OtHWkvlndFJjYWw450XS4jce/ZxSnZuldfWVal U/gnFY0lY1zz7ZDXY1BUD84tFzHgPVSyBcEmPKjEM0DhH/79Vuko2hCxuD/xMdoWsW/g WykyzqhVrllOtC3d4rhCEmhZOwEOSOlCBCTpP03YKZAjes/gnLG7kdI3f13P1fjI/pk+ ZF84/gWXKdgScZ5qSReR4Wx8rK6FXrQVi0ZqI7z4onXhFoqb90BIgR/7nj+qidYWC3Fh N/RA== X-Gm-Message-State: AO0yUKXQNip180ByB5XrFpmoKsykD9aI68fBb7XPN2Y/WrhPeJDnOGpl WKyiNGqRR5jvKZOQRKSmB3VgatpwloGhn8vPoiE= X-Received: by 2002:ac2:598b:0:b0:4db:513b:6ef4 with SMTP id w11-20020ac2598b000000b004db513b6ef4mr1477599lfn.11.1677936472091; Sat, 04 Mar 2023 05:27:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:51 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:43 +0100 Subject: [PATCH RFT 08/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8936 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-8-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=879; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=/gM/F7jwDcMoS4RSi8rE2q3Rtn0GWlhQfGL+90g8EhM=; b=0p4SS5CTVLe/gjtZJEtMJqFtlkA7PUIjV3mvn83ek41q9qUjO+OwrkYmarrbNyu9M+VmmFe9D/3V kxwdaDQ5CYXsJIPEnxCc0lc6AnuSfkUFRNzuvwaOuUW1TAJHpUCt 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?1759444000775488228?= X-GMAIL-MSGID: =?utf-8?q?1759444000775488228?= MSM8936 requires that the PCNoC clock always gets an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index a93b4575f44f..6db78aeae9dd 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -632,8 +632,10 @@ static struct clk_smd_rpm *msm8936_clks[] = { }; static const struct rpm_smd_clk_desc rpm_clk_msm8936 = { - .clks = msm8936_clks, - .num_clks = ARRAY_SIZE(msm8936_clks), + .clks = msm8936_clks, + .num_clks = ARRAY_SIZE(msm8936_clks), + .keepalive_clks = pnoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(pnoc_keepalive_clks), }; static struct clk_smd_rpm *msm8974_clks[] = { From patchwork Sat Mar 4 13:27:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64220 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp928447wrd; Sat, 4 Mar 2023 05:45:32 -0800 (PST) X-Google-Smtp-Source: AK7set9N6JJAgFLOhOmEadQfuA6iRA6KX3LFBWc/fq4p/hGyrdp2Ktv3mwtygYNxvgbDjhoDcjYu X-Received: by 2002:a17:907:7f09:b0:8b1:7e21:f0e9 with SMTP id qf9-20020a1709077f0900b008b17e21f0e9mr6541855ejc.18.1677937532119; Sat, 04 Mar 2023 05:45:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677937532; cv=none; d=google.com; s=arc-20160816; b=sBXVGuS8ZutDUZ00AiuB7s3wIoAWCAS6Cjmqvo/zNoKUsSb89i2jBXwCUO3DWJqpea H9qHDXzHXoAyrS1enlT2ynxYnxiabjaFA7s5TUhG6hjnkP01cGNU0tLjkkoDd6zMifGf F68s0PACmRMZYF4BdvYz0lAc4oQWbrr+80ETjDBg5/aITnULnouP1eWBOb316wV4anJg 3cOXAkSzjVzH8DgVjhMScqzZg2EbkkCCO+iCckJaXLRZAvmO0epaRUMo3QN883H1NGLL UgF50urmx2dt8FH3ZtPprFoVWdRRcUgdsPY6ca0zSA5fab7RTv83VWy4lgk6w38R/m+L frMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=u4xjt06WuAITrEBDOoRj+XcumFMWUoW9/PgZ8QRo1yo=; b=sawniC6hPd5XXR9iyJef8Sg5nysSvL6WZ5utzn55Ue40OIgaP45SLXW4CqEFd97lQQ DS5N/KOEpH8Ae+VsXARhi8AzBMJU8goQ6ftPixDc0W3vsJ6oTkv014flCBFSB8UkcsMR YXS1n82DL3Z+DRhGAwzk4j9zVEgHELdnykpqSD2tXauPbs9TzuqFhUAwRSZQmYKG9RWK wlWZ14PnvjIrf8xA1lGiuGSO02xfmjPc6Z89YTvW4/g692yhAuSnSu34peUtNxqJlXH8 WKoraqJjixh/TwSJ93Y2Lr3DRQzrA+izYjpWPhHFnJ6jbvZhoO6X86i78YumtGdsXgv3 n2tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qsH57wZV; 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 m14-20020aa7c2ce000000b004acb712d32csi5785810edp.233.2023.03.04.05.45.06; Sat, 04 Mar 2023 05:45:32 -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=qsH57wZV; 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 S229822AbjCDN2U (ORCPT + 99 others); Sat, 4 Mar 2023 08:28:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229820AbjCDN2C (ORCPT ); Sat, 4 Mar 2023 08:28:02 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FC042056B for ; Sat, 4 Mar 2023 05:27:53 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id i9so7025320lfc.6 for ; Sat, 04 Mar 2023 05:27:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936473; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=u4xjt06WuAITrEBDOoRj+XcumFMWUoW9/PgZ8QRo1yo=; b=qsH57wZVqsviRiiy+sAvZQeDJz6JOSQJrqq7pMaajwjdJpKR7JK/3yyGLjDqV7Lkig iO8PZoTutgbJoXnqilTeWS4bVDXmAC4Nv0IEfKDUNAAIZfekEYcLM6BzTW6jOw7T+f7q YBsNc+N6DuEjFpJWygbDU6io212Mi4Czl18FYZ7Sn9747PMbEQMnXp9SFVNOQi/uzinB UW0QESCIcRiY4nyUjoA7kiZfDORGJRnRPV0p59lMErg/QIElhOz+JCGtl0XjpQEQJtKQ XCeSphFnAGb8CLVdy5rlBo3UEqQqKjXM2s/zST7VckzdR1At9NRDF4YsTsvaw7IQzr/3 nxMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936473; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u4xjt06WuAITrEBDOoRj+XcumFMWUoW9/PgZ8QRo1yo=; b=M3td3lgknT3UoBEYanRtetX5LPOcr/kVXLLQqNc2hzd+9O6uCwxvuRM3AQ0L+wnd9t psosnfxSYJqS7ffhZX5AevObRbDlNq3nzpHpj19MSFjj42vqINbMF7zHocVPHAoeWW4U tq3l4hSB6BsgETBqGzNW5e6U+skZIuBFo/rxbnjYQjsqrubnbysmpRqAjlPiz4cyO/UT zBFthIZSoR3RtJ5NIsUyfABmYkA0D2YqqqGx/KrXlpkDvgo8gDhPZ/a8BqMEgIkt/cXm sCBlGCoKJ7nQJiGj6oSJMwWw9QbH7FPLK70zSkVKh8+Am+128/pI+ccFivvBVy2qRliB pTsA== X-Gm-Message-State: AO0yUKWay4tWyEpgagkcpqM2ndAozkNLE98GARX8WJtO+ZMVCkBxtTqm hI/9rnzYtmi0vIZ9jqZqS7S3LQ== X-Received: by 2002:ac2:508b:0:b0:4dc:4afe:1622 with SMTP id f11-20020ac2508b000000b004dc4afe1622mr1544781lfm.42.1677936473075; Sat, 04 Mar 2023 05:27:53 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:52 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:44 +0100 Subject: [PATCH RFT 09/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8974 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-9-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=782; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=yyAylWkjsHJ9M8f72hhFGXM7popO5Dzt7+QVKW2XYCk=; b=4+QXrXJyh0wapuYvuA1ri2hQ0axqyeo9BQ/+5lOsCyS4bb1RxeUj3NwF+dEOZcWUWkQy4hW3j2m3 rZl1rasHBDo4YWi4Sy27GGjEbQTSzZpb44ZJDJHiJGqrB7bXJOA8 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?1759445025589704416?= X-GMAIL-MSGID: =?utf-8?q?1759445025589704416?= MSM8974 requires that the PCNoC clock always gets an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 6db78aeae9dd..a390ec3d6c01 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -686,6 +686,8 @@ static struct clk_smd_rpm *msm8974_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_msm8974 = { .clks = msm8974_clks, .num_clks = ARRAY_SIZE(msm8974_clks), + .keepalive_clks = pnoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(pnoc_keepalive_clks), }; static struct clk_smd_rpm *msm8976_clks[] = { From patchwork Sat Mar 4 13:27:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64222 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp928448wrd; Sat, 4 Mar 2023 05:45:32 -0800 (PST) X-Google-Smtp-Source: AK7set+DAs1yIn6C2MpLNG7IacEVHVRftgt0CC+HblXuykmIa2OgEol2xVVfJ5F8NjNGTALDc2vY X-Received: by 2002:aa7:d684:0:b0:4ac:c68d:88c7 with SMTP id d4-20020aa7d684000000b004acc68d88c7mr4672564edr.0.1677937532111; Sat, 04 Mar 2023 05:45:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677937532; cv=none; d=google.com; s=arc-20160816; b=VEgLhTIqJS+7K16u93wHFuN6hy7JTUzZMBkWT4RaQwHQfUBh0CsUIuuMmjg9+ZVQu0 zfyc88SCo394YnyGd2X1m0fy2fwKYoQy3l+tSrDystwaSgN48RSH2yqRGkrWF1iBT/AT VQhyDyExrPkXOfXOcaMXrFT1bYev1GSIrHSdt6zXVcW8By7uWhjMd2/9XwWFi+QV5b3L Toc/9XJgCApqZmc84tCeDwLtMTK3F6FKeL8sr5ehzmjIkb8aUqn2EY6JDtfCKBtKq9un IPLjLN2bfslNZscn+/ytq7P/2++3f7quN7gSvm+4KclWYuAUv3NVEgHiPD5iuNTBRXM4 YOZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=537z0uLmwOojkV7vbpXGz5uLHruDuKMlpd8Duz/xgq0=; b=F92mlx0vSvZ4qhKkd+GaVXkCekSDuN09OqyN1BL7LlCkOzrZQN7Dt37hl4wKw4B3Nn 06C1mAgyI/KXLbe5eXEhiFZW5cenPpB8mQnkaWbu8KnfZAWf1bCDGJ4GIW2KuaF96pOI Y3yFHCq2/U5STN9lNuA2gBRuvA2RJlxu4O1tZFXvnX9oJjR9KVGRPAf3XEpnu05t7nIF 9/NwtR4Utzb6O90WI++Y060emxhyBTjIqzyeyxp8dFT4Cvgb/ZOSAiFR7Rp7G9Wf/ux2 LbT7KI7uJpP2N+3fB0G92c9iI+sb/UZdfUuLp3I4+NNcE6Ukhcx9P/khLqNH00SjMiVT /uPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Det41a3e; 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 o12-20020aa7c50c000000b004aab2fed3e7si5437869edq.275.2023.03.04.05.45.06; Sat, 04 Mar 2023 05:45:32 -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=Det41a3e; 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 S229876AbjCDN2Y (ORCPT + 99 others); Sat, 4 Mar 2023 08:28:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229826AbjCDN2C (ORCPT ); Sat, 4 Mar 2023 08:28:02 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7980692 for ; Sat, 4 Mar 2023 05:27:54 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id k14so7022609lfj.7 for ; Sat, 04 Mar 2023 05:27:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936474; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=537z0uLmwOojkV7vbpXGz5uLHruDuKMlpd8Duz/xgq0=; b=Det41a3eucH7/YN0Rqps4kFQ2iOzYSRU4Fp6PLBEiSCdsPCAyvTjOCX5TALmBGs753 vO3vXdOy6bio1EZ8LvKeaidBhyMOpIgMPCbos54I3GNnAyQh6UbjqH573LF1JZX0wen+ 9yEXTUYvjgOxUkorNc1UM6MA2tBeej6Ctw3tU/WL67MzBZKaeugeHjgG2Oj8i690Fpt/ PmbPgbsJrCkZndPIX+b1ytiLNApKBXBN87QRWbxwvU0BrQEIZUwymYjDf9iu4Fzb9jnL otnvx0c9h4te+SjVOITdsgtb1vCS/0gvVWAPUy1IwT1YGuAPx12VR2FH/+sbSTV0TDHY yKZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936474; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=537z0uLmwOojkV7vbpXGz5uLHruDuKMlpd8Duz/xgq0=; b=NiyMkBTGx23SymEL0j8xwB+DhXF1AjG195Kto67Tek0z0pBf9dX3GgMJ5KqLSSk72p E7xqHKSOjczfOFdOdtCOsTpqwd37Fueicff/MV6O5ssomEDolYI4YcFwaWnWS5dyn8Fb 1uPuFGWWZzUnSl8qjNxnwh1l3Y6GQG0FCPupzBHtGXX0ZcAAa1Wb4uAFJo02BhPnhTqQ 5z4K+H/D3gVP+gQakNOhQgADrLmyhOnalxqQ+VMePaGcRg+JB22bfV1jG1juZzdqrqAX eBNbnKJgD1SW8fw+GLSHSfZXBDuVksDJ3GxK+3NFK/D/JRdkS7ECQWZVCua1Z5Iq5qzQ Wd0w== X-Gm-Message-State: AO0yUKVOZL8ST1OdiFlDAoGWqURZOQsNpvUc2PX+3tgRz1/jw2JsSgx9 lQxSA8fISvOV+p52NbZVJ4fjfg== X-Received: by 2002:ac2:55ac:0:b0:4cc:a107:82f4 with SMTP id y12-20020ac255ac000000b004cca10782f4mr1380783lfg.64.1677936474077; Sat, 04 Mar 2023 05:27:54 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:53 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:45 +0100 Subject: [PATCH RFT 10/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8976 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-10-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=782; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=VMhd2HIENFYlcCni6Mim3NyGguSK/hOsSIVrkOLy6+0=; b=XtLlcfXHyYFrNA3wN/IrUTEYSMrCP9kRDDISBi7ktP0PcShPDOCnYOrTXPiFp//XfVnvMPNHdeJk sGUGvpkVBGsx3h2BwwOCz5ITwq1i6rd1jGoQmZ+JEQ08DbEAPVmX 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?1759445025669782646?= X-GMAIL-MSGID: =?utf-8?q?1759445025669782646?= MSM8976 requires that the PCNoC clock always gets an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index a390ec3d6c01..f82576180fd4 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -722,6 +722,8 @@ static struct clk_smd_rpm *msm8976_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_msm8976 = { .clks = msm8976_clks, .num_clks = ARRAY_SIZE(msm8976_clks), + .keepalive_clks = pnoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(pnoc_keepalive_clks), }; static struct clk_smd_rpm *msm8992_clks[] = { From patchwork Sat Mar 4 13:27:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64219 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp923910wrd; Sat, 4 Mar 2023 05:33:47 -0800 (PST) X-Google-Smtp-Source: AK7set9Ni7yhfuaY6Gt2T7yBCwe8kYLDf/FA3c4YrtwA/bd5yPTfgiPgU0BVnsG6/07EfCdyJejT X-Received: by 2002:a62:1948:0:b0:5a8:47e5:bbb2 with SMTP id 69-20020a621948000000b005a847e5bbb2mr4483240pfz.0.1677936827378; Sat, 04 Mar 2023 05:33:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677936827; cv=none; d=google.com; s=arc-20160816; b=XNq4Z7388742rgYZyO1W1TZcT/sXJPm5vJwrbGCUvQRZzGkkYOrS0s1GdE42apRYub w6+O7L3fkGGzkhKtv5PBw7+ysw5B9yVlRvD3ZaOC9WBYvWcCWdqizZswwtPsaMSucuKM lQOJrUp1suBSSw9EaNNV9Llv9lXsHkvKMs0j5buD8HTI9+E4XoeZ88CxiRdqUHq/qZCT +zC5T43gAvu8NJqJMb9wo+w7JbaJ3zU2JRyJsscCO9j+VNW44S3O9z8gevPeBDFPVJ4y xnpBwxfIOzveiLbF5lC+VEL/6HOS1UW9JHHs1mI85s6M8Y7vqPq32Ia3RYt6wyuQ9OhY 4Krw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=uzHrJoW6Kg0rf2Ogvqpc/42443dPzaVDNHAni2oxJ/4=; b=GPWPj85TOtAtvQvVl2FCs0OyviUHQP0YtMbuYGeAg/3MLRSYZ38SOpAJNPxu8ft6M/ usVBgHkuF+aKzA1yftn0N5epQPeyJK0Oi/lVYeWbJzIvSG+putsjfswu11Dh1VZRUFtR 20Ov7X6xVz05DJ0TV6Kmr4wJD1GfCOWZXNyUQEEwpiHUtR0pA8Pr14feYtJwilEFTgiP kZQ7xDaj/sLVb5QIJxKL1DO9FAeMyl/qteSj+MNcK1BacTaKEh+vJnGGYvEgOl1MnyEO hoTCCXQqaW6nD3EBYGstgfLdCNbOXGY144Qrj5Yv+VV0cMq9LevxlXtgB01Nb5mklZ73 d3TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IcRE8qR3; 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 m3-20020a632603000000b00502eff43824si4935152pgm.601.2023.03.04.05.33.35; Sat, 04 Mar 2023 05:33:47 -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=IcRE8qR3; 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 S229867AbjCDN2a (ORCPT + 99 others); Sat, 4 Mar 2023 08:28:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbjCDN2S (ORCPT ); Sat, 4 Mar 2023 08:28:18 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28EDC1287E for ; Sat, 4 Mar 2023 05:27:56 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id s22so6999217lfi.9 for ; Sat, 04 Mar 2023 05:27:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936475; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=uzHrJoW6Kg0rf2Ogvqpc/42443dPzaVDNHAni2oxJ/4=; b=IcRE8qR3ODKrmu58TDiMl5f2ZQZ3QTRHNxHytCrqkLg13+9Dl+V0yG1qT00qrHtR56 gVSVOCKmYpc3mkkoHp9Qf+hEuVKgzLb8gxDnjraE43u6xpK44sL4tEntFKoAPVDchthy SNvn3ft3e569ACmECUq6YWgvXlWiO0PTcSq5frE7q1jsi5ct8mDHLDU8dtbX5Y86m39b FdZDBE4KV3sX9L0nMk7gbsZ1tx2AEXP81AAYfXjOygBsiFftzONsxgdqUsQO7dIBNxTF /nDKuHyjHv9LtZTBjo8Noq14AVcE7cfZk/neQfmfGUlZ8IOwPfyjpSMwAWCv3ApP3+5g 4C1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936475; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uzHrJoW6Kg0rf2Ogvqpc/42443dPzaVDNHAni2oxJ/4=; b=zNf+znwYzVj5bKMJCNbcBPsx60ZpnoUgE1Jt9AICKLlgdqysPOxomYUrCpsdyZdXPg HrvO/8q/v13JYYG3ePACc6yQB13hijlhBBJJoEP6VyMf/GFuZYEWMsxur1e6nDivJnbN CpvbPgt6KuX2mF4yGJyGPdAUSKepz0tdN8mlrP7HgD7G0d3Umfe/CpciQ+CdRIJ97wvv 3uKWu/El+0+4rxb9htPgtJIHQKWBqM7YLkk9iE8iMbU5pGBl/CH9JVXH2pIpq4FPgcTp Vt543HHVN+I3FUnejFtBZQPWsCsPLpmcVNtEkLqRi7d6ftauC8t5UcQqtaStdNDGwbjb +QHw== X-Gm-Message-State: AO0yUKUKmPT5NejH+FzbattDF9U6qzMowWwdNzHBXB3sVmMTIih0Ty0v gkWGHL2j1FuxokRzPmUjhmHDbrjkv35CMq1Ym0k= X-Received: by 2002:a05:6512:20d:b0:4db:456a:9a1 with SMTP id a13-20020a056512020d00b004db456a09a1mr1507400lfo.66.1677936475744; Sat, 04 Mar 2023 05:27:55 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:55 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:46 +0100 Subject: [PATCH RFT 11/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8992 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-11-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=782; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=1lqcxtVFODqNrQVkr7L9/FHGP6fajr4jJzkMd+/yxbo=; b=jmGhchc9fBqdxNfNYbBU8b5cLPhdvuQlWApk+nHKNltI3DaXUL12Nh9rmJE6xebmaAngTitVE7uv WUFLPd9kCLgnFDVJtj5obJtMt13JsuGc2FRYFgvTGoBtX9rcvnxv 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=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759444286478272841?= X-GMAIL-MSGID: =?utf-8?q?1759444286478272841?= MSM8992 requires that the PCNoC clock always gets an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index f82576180fd4..c7c623b258ce 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -782,6 +782,8 @@ static struct clk_smd_rpm *msm8992_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_msm8992 = { .clks = msm8992_clks, .num_clks = ARRAY_SIZE(msm8992_clks), + .keepalive_clks = pnoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(pnoc_keepalive_clks), }; static struct clk_smd_rpm *msm8994_clks[] = { From patchwork Sat Mar 4 13:27:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64228 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp929537wrd; Sat, 4 Mar 2023 05:48:45 -0800 (PST) X-Google-Smtp-Source: AK7set8fqNKR56rulwRRguYqwOdhCZ/GkfkKdW3r4o7ckHp0BgJ9/TuUmbi5vk2R0bNLx0ZqDnFv X-Received: by 2002:a17:906:fe07:b0:879:ab3:93d1 with SMTP id wy7-20020a170906fe0700b008790ab393d1mr7359239ejb.4.1677937724870; Sat, 04 Mar 2023 05:48:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677937724; cv=none; d=google.com; s=arc-20160816; b=Ts+2msbyR3gb5xX6Wub1Qm6PvwJVbaF8iiLLLIzZfCGQwPuzoM+M3FOPmJHGLGyCNp xVDgwjqIGYbsUhRwlqG52CKSgMkLvPT1Fxe/KW+mByCXLgZSp97VozpHrmXfUOaLC7/v zOzRAf1sWW5CmquNRD46xIzPH10adz9NS7cweI9TQcyGtWozVfa3h0x+PnK13JXuYkLe tjiU2zd22SdzyeB21tmUzPr/d+Xh1dK8Fm9nYpgzDYuThjU9WvWAA1c08XSOWzW7tgcZ mjJ2c5/kuk8gzvn4j6jn7S2kk7gkdpeYnl/eLz+cAFdXahcLBT3GODIW4CArXwq3SrDO fF/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=2AtLMGyHyO0DGJrz9avniGAQOG2e5k9Q5CL75KRC6OM=; b=iO2KdRnvC9JaWLE6/t1NvhNJ6a7/9Ifejj58CTABHFX+CWiF84OWkCRawJ2QZ1R3JS ZqtPAQn5+a1euY35fWcqjZmsXQsSZvQ93UJRBohrBKItSb95igJXeGQEV63ExqTG1MtM C0VCwVFdeX5wozf3HKbFCQWrvsSl17xqaCTjibVI1GWv4zUqOknJanYnxCkPh3hxpRxF kgbCeXBij96MCxaA+VUkhnyggDhGcFRQSRanbKBbwy2zUz8J+0GMUpqviXW8+4Yx74KL rlBNs+lsesGe8FfCUTTpwkjSHEZ+tqmQR4k7pufdzFgcVl6KcWYbd+uvcRP9OQazTzZJ 3FVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=whQufuE4; 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 o12-20020aa7c50c000000b004aab2fed3e7si5437869edq.275.2023.03.04.05.48.20; Sat, 04 Mar 2023 05:48:44 -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=whQufuE4; 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 S229580AbjCDN2d (ORCPT + 99 others); Sat, 4 Mar 2023 08:28:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229820AbjCDN2W (ORCPT ); Sat, 4 Mar 2023 08:28:22 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2798D13DF5 for ; Sat, 4 Mar 2023 05:27:57 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id t11so7047199lfr.1 for ; Sat, 04 Mar 2023 05:27:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936476; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=2AtLMGyHyO0DGJrz9avniGAQOG2e5k9Q5CL75KRC6OM=; b=whQufuE4xPYKNBQlB4o7vMLsVvnFcW416wKkTov+dpQTOo5kVcU3NlhTaZEAYOeqKt kWZciHVP4+0mzHeFmt+j5KKmfM7nmkbD+11InOsBeHhZV5OZ00+Rw0bJydkA0lHVYGMR dBcGwacoM1RYmMHSjV87+SJKQsGDb3yqfyZ2rsA8d12hUcxQxx94mk0cKFGcPJTsnSWH eUUxxetOc2CmZox337roI/cYi8UT1BeS6HGJHN/Rf/0djC6haru+c0q6i2ziIyZZ9g3B tR9gKyhw0ZA4TjtW0bpw6iYM5nucmxtSxNbCc8/nTl+yhJiMskyYbUcPsx5tKHQFTHtc g0GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936476; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2AtLMGyHyO0DGJrz9avniGAQOG2e5k9Q5CL75KRC6OM=; b=nT/KYVWu3o3/r61NkKzMek7b+9E/0irZZgb6hfqE0UupM0U+eB/q5MzjI6GSrySV8A puH10NXW9NFBSSnoxhR3yeOYfd4lQcjrwfQk3IeZLgNrumj5ipQ+MMgRvCaXNdRFdfBH mcMQMHExiy8Zhaj3l8i2BXU90XbHJ1yEfsMyS9IoMx+gdIYbcU541HMANvjNZt/e9IZr DHICVXxby5gN0nDuWW+EU6EXiVYTdlUZhZ+MSzkKDPzGdMPCg06bw1UO6k4c5NlH7w8+ axMacHbLQXayt5oJG+vvWkfUixeR+QoAGiQNnGAvEilTwd+svl7JIQSWKbHNF6kKccHE 3m6A== X-Gm-Message-State: AO0yUKVDg62eD0tgptEksYIdR5tkSBcLDKaOZcZAoSNrmQOdRCVWLZ8e mSselyzyh+hcELJfbgSRPzF6Eg== X-Received: by 2002:ac2:52bc:0:b0:4dd:a61c:8f74 with SMTP id r28-20020ac252bc000000b004dda61c8f74mr1593826lfm.51.1677936476736; Sat, 04 Mar 2023 05:27:56 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:56 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:47 +0100 Subject: [PATCH RFT 12/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8994 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-12-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=782; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=BHqSpJ9W8in8CppNMmIU5onolGCmZoQTDTEqzTGWbJI=; b=yx8/S7yrctomj+dbBxMr67Ggx0kK28RoU1nxCgK4qvZ6wjlGYKZGdYpjXvj6H/XAXXn8MdMDxwUP +58tmt5UCeLHIr+uJsj81z5AKxwDBHipljybmkI+mg9UXrp2+YLg 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=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759445227360528962?= X-GMAIL-MSGID: =?utf-8?q?1759445227360528962?= MSM8994 requires that the PCNoC clock always gets an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index c7c623b258ce..4b6037e804ae 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -844,6 +844,8 @@ static struct clk_smd_rpm *msm8994_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_msm8994 = { .clks = msm8994_clks, .num_clks = ARRAY_SIZE(msm8994_clks), + .keepalive_clks = pnoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(pnoc_keepalive_clks), }; static struct clk_smd_rpm *msm8996_clks[] = { From patchwork Sat Mar 4 13:27:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64229 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp929571wrd; Sat, 4 Mar 2023 05:48:50 -0800 (PST) X-Google-Smtp-Source: AK7set8v6spINSwDDq/YjU6SBN9YQ72UduFZEAh3e6BSKIbyp+fPNFDOKCGpczoLz7or+VmCzmui X-Received: by 2002:a17:906:fe09:b0:8b1:2bde:5c70 with SMTP id wy9-20020a170906fe0900b008b12bde5c70mr6205849ejb.2.1677937730757; Sat, 04 Mar 2023 05:48:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677937730; cv=none; d=google.com; s=arc-20160816; b=0yk1JWBl0ya2lGyo2u+1sHutI4LoJoOJOXrEztj01Q2roOvWMFBnmG/w4mUDLY+iea 3aHiRyHz/CcBQXAOrsEnE32ucYaHAf9lGebD2XORZJmTSVzy2sAfOnKpf5yxHXsBbxa7 78stgNvjTT9H0lBe4aqFtmYtFl6ujnTbkvLWgbeRmWXpFFJQaj44m7RP7ilhhL03uQ2O o1ZOYDpLGPv+2dVwujDbNJ6XFdGrbgUGUF/WNmeeqK5hdXi+DxzMWESyXKQLHYBhWpe8 m5DndxsOQw8D8cCCVy0DXZdlTVa8jz0eFFYO0pQIko4TYxmQe3z7Jh+B+y7DOA7z1AlC gZ2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=2z9cnyQNCQrmi4E0sqYfd+FcDUKVN5myB1pDKOwRqq0=; b=Ml1gsqiZa0LiVHVCFbRhFhowRtVDK53kgXpHp+AkbD6T/g7in1S0ezUxkd6I+yMH13 taSRATB9MMRnoim8o05m1bWwrj9ZjvtV/3sFj/vPdrjXLbm7YBdq519Sfk7fEnquPcwa lxCYxb29Cn7Jwb+3Wy6zUFD2lpbACUgXWnfj7HB8VqVFl3Yq9X1/w+VpWMID5bk7/Id2 STT90eEjSvZN/MSzpm/9nGF1KsltAUlqZdQtl16DqQWvrMmZR15g3X01hykxnLNS6Z2F 9PlzsUF1wbmf5MbT++5iwLtvKKJER40rK5D6tns2UPEL3QUF+nyRR/HImYuQvS0/eyCo sKLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Seyq5ymC; 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 hp7-20020a1709073e0700b008f3f9f0fb1fsi5793805ejc.369.2023.03.04.05.48.27; Sat, 04 Mar 2023 05:48:50 -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=Seyq5ymC; 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 S229826AbjCDN2h (ORCPT + 99 others); Sat, 4 Mar 2023 08:28:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229883AbjCDN2Y (ORCPT ); Sat, 4 Mar 2023 08:28:24 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3275C55B7 for ; Sat, 4 Mar 2023 05:27:58 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id k14so7022740lfj.7 for ; Sat, 04 Mar 2023 05:27:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936477; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=2z9cnyQNCQrmi4E0sqYfd+FcDUKVN5myB1pDKOwRqq0=; b=Seyq5ymCozhGmol9HAv0dbvFf3QjsGfoJ4+0bWx7U8WSia9IJY85F7aWbb1MrLTC0o siS2WYlF5GWOZFXl03nbcuCzsvUsybB++DBXBJGI1h8VbYtsLmFjeu2yd0Ogr40dF+ba TkzAYNYbldxmx/KriTXOlQP2EJBlOFnqCtZkp7dc5zpTbfU0D6ADak+9jSsIUrw0VBkF krmCzm4JUCQDjzblwwGg0mvf1zMJMHG/c1A1FZ5NbtoBz5QQCWJaP7EtbGaRxtzjkyKA 9PqQAP0ywJBth4wk9WXOZdzCZVews6eA4e2pBwM+WbcJqBQLOexwBWz4bxS6+C6XRmqE JccQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936477; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2z9cnyQNCQrmi4E0sqYfd+FcDUKVN5myB1pDKOwRqq0=; b=qUMsitk1O72hlahr2lRtkiPt7n2TzAHpyIl4PNgSTkFYI6QJcTA7OeGVQeaIVXNoop 4PhXbbOGyjsicrl6hS9cKPLCXvDay6IESioU96QLwU9XvxOkB3h3hDgzEU435XA+8MrV DhP66sKONOTx8gP8vK63Zy2hnlW1Kdovq/fMESfx5RU5q4DsYDeIRMwhz7PLYvcRaybn 7+Wks0YfHpvQgwsTe3j8rN70GO1Ykc0RgYcjAlCOHIk7Qht/jZA/cS7Ocb3fuh/Gd8tD SR+Ual6f2z9EW3K5KznPRKi9+rbqEstQqWUNsRM7/RBog9g2X3W15/aJq2vWAh9G1W5G YrvA== X-Gm-Message-State: AO0yUKUMTyDOZSUHsBneNUZkH8HCJpNxEGU9ZJXlI9HNc1S1un4UqpOd A+Rv+oT+Ick0eldCcS3k6nEvWw== X-Received: by 2002:ac2:4472:0:b0:4cc:6f42:a097 with SMTP id y18-20020ac24472000000b004cc6f42a097mr1352769lfl.26.1677936477750; Sat, 04 Mar 2023 05:27:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:57 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:48 +0100 Subject: [PATCH RFT 13/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8998 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-13-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=1200; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=3gGCgHs8c+Krw+pfw3dUgzyqYnpnidbAElcU8AN3oB4=; b=X8YnLM1sy7ck0dlP/tPZD2CKK0+NpjftBIVbzUc2g/bbI4g44joY5jRyJ+pNvtXgpKW8Z4TYo0HQ BpMCpEevCmi2anmF2/iqXhqlyNEbx6iuN8KKRroGt5xcb9X+5ITt 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?1759445234191966200?= X-GMAIL-MSGID: =?utf-8?q?1759445234191966200?= MSM8998 requires that the PCNoC clock always gets an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 4b6037e804ae..6649f13c741f 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -521,6 +521,10 @@ DEFINE_CLK_SMD_RPM_XO_BUFFER(div_clk1, 11, 19200000); DEFINE_CLK_SMD_RPM_XO_BUFFER(div_clk2, 12, 19200000); DEFINE_CLK_SMD_RPM_XO_BUFFER(div_clk3, 13, 19200000); +static struct clk_hw *cnoc_keepalive_clks[] = { + &clk_smd_rpm_bus_2_cnoc_a_clk.hw, +}; + static struct clk_hw *cnoc_snoc_keepalive_clks[] = { &clk_smd_rpm_bus_1_cnoc_a_clk.hw, &clk_smd_rpm_bus_2_snoc_a_clk.hw, @@ -990,6 +994,8 @@ static struct clk_smd_rpm *msm8998_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_msm8998 = { .clks = msm8998_clks, .num_clks = ARRAY_SIZE(msm8998_clks), + .keepalive_clks = cnoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(cnoc_keepalive_clks), }; static struct clk_smd_rpm *sdm660_clks[] = { From patchwork Sat Mar 4 13:27:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64227 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp929292wrd; Sat, 4 Mar 2023 05:47:58 -0800 (PST) X-Google-Smtp-Source: AK7set+0kiPgxYXT0fXkW2xqdEqKiufxiHeukXhnlRODJa+XNoqG+gPf1fMmV5NXZiatbMba5ZTU X-Received: by 2002:a17:906:9f21:b0:88a:7037:855e with SMTP id fy33-20020a1709069f2100b0088a7037855emr5436561ejc.9.1677937678360; Sat, 04 Mar 2023 05:47:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677937678; cv=none; d=google.com; s=arc-20160816; b=mzCJbWfgOQf4xglKvdHo3U/OZo2Wm58oXnZ5Npsw9YYg1S1xw2ZcXtAqj4CEvvId0q O2XQz3ptCgYZRrgrm2E1Ti90YPcSQV9aKh9zY3SiMwXIT7RHA0Ghi39IZRZZqA79S2nD l0WtpUV9K2x1G2eLjzlys/Y0pAQyOvwL/wog00Npg4R+sO4gvzkFbnusjPJNdpoTQjhR Kdn1c+DOyBeWnAu1ROGFH4KN7H3JcfetuNR/nxHnaIvgX2rZPT8e37Zbd3FgAQqRl38m sWAerqmcB3Yzw1YsQaVz6bkJceudZf1RxlIN4XEsfh5Q3z8/3J9TPC0tfz2fMLl75pYo 9f+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=a/RYmnwCu18aIYaj6lw64sU1EXpG38sGCKjbpOsXfEA=; b=GF+XdLXLgPBnTtZpda4c27thS+kuHpVw5oNy+xOyig2tak9YbAuIT7G68VRCv7li7B E+wp2Ow0qfJ2bAn5o+70Z6kEGBQ1VOTl0XFmtLILJvAxSf+hFlU9jd1b8EPVCDWYqvd1 Be5pN3cxsKclj9lUShot2M2Y/537VxY9M537DztkBVVkkN4ONJ0MA8G1D2PHqUB9g6db nAfQ4kWrXk0w+sr4Yn34HVJnlYSnYG25XvRaLGTMd8oFGQ8VNhhW8AiBy+vqkDVd/Yeo bQWCcriBPxmUZ4W69C0Fzk7OKKnDAZR/UkOyZuDyH3TLOCIh+jRxeXYkGqjM62XMyA0q 6Dgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DZTO0TdS; 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 qk33-20020a1709077fa100b00906314690c0si3266641ejc.752.2023.03.04.05.47.35; Sat, 04 Mar 2023 05:47:58 -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=DZTO0TdS; 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 S229973AbjCDN2n (ORCPT + 99 others); Sat, 4 Mar 2023 08:28:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229842AbjCDN21 (ORCPT ); Sat, 4 Mar 2023 08:28:27 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 346B8CDFF for ; Sat, 4 Mar 2023 05:27:59 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id i9so7025511lfc.6 for ; Sat, 04 Mar 2023 05:27:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936478; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=a/RYmnwCu18aIYaj6lw64sU1EXpG38sGCKjbpOsXfEA=; b=DZTO0TdSK8N4lqRQPkMzpOAUbyTrVd+3pEjEh0goKTFyjr3MZdElLOB9+lOTBst7VP yJ47JxGV6P1solRa7I/ojx1P2B2P0FOKgZ6WRAN4mgC/XSgZOu7A0V/hbdMEB77gMxvy Kb1d/fIljOaxt8qBTo6BJuk4lWVlhn3hIz12T7Ljhte8zCK89DkJci4l1jMjD7ilOlah lXQTziHc1mNy1BjosRWvtCVibpU6dVnez04xdDyPq16l1o/8YLyJcV4zMbumRCmjttep aaKV3n6yty86JgA47q2+IGzLjtHyBuF45r79+ffPlwnxYMOCMLebD6vV6TqvjK50elrZ rVVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936478; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=a/RYmnwCu18aIYaj6lw64sU1EXpG38sGCKjbpOsXfEA=; b=Pqfe11y9W14v326r5bh+EyP+zq+E+CYziIAwCl7dPDtNmkekP/gx5LdnBLc1lgaQpb KmiZouB3BXayYeBP+JEde84cI7KlMBJ75nep6ENiUtgQMqIVkJQEmMjz2ian4oVnbGgR VY4Azc+vL5fLQhtBqYA7erZom9TCtq5xgMD2t7YhyjbSeD2yuzfY5VuQ0yZGeItllRbJ zU73pBuIt0HRMWNMSOFjKgfmV/7GbUrVLORiagLnUl9ywmhyeBn5pbycePrqFqMoznKp /K932XR+eCpnGpGKBhrHLruagRGl0eUlQ08FC8KYC5Z/3y5kxKOb167S6R5EUdwXOgF1 oIHg== X-Gm-Message-State: AO0yUKU9njd8T1D4y4GgrMOK7AO6e4Abl0t59ml4BKexayA8TnY/RG1w E+v07VkLwhqLQZHSx2zlvOyzng== X-Received: by 2002:a19:c209:0:b0:4dc:537c:9229 with SMTP id l9-20020a19c209000000b004dc537c9229mr1587929lfc.30.1677936478739; Sat, 04 Mar 2023 05:27:58 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:58 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:49 +0100 Subject: [PATCH RFT 14/20] clk: qcom: smd-rpm: Add keepalive_clks for SDM660 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-14-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=779; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=Rb3QVu+NO31acEP29f3lE6nekr2heNfaQYlZU4A+bEc=; b=9bPgW8Ir6yVRwUGSc/35oIyuUGCsCSDL2Idq3MSYvOrTOZPZGOUaZqnzw5AivwnTNJE43pP8OfLX cxob95m2CUtfKHkyqR0/hqK/0uKAKrS9ZRe7tXSSr7SON/Ga7lt0 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?1759445179219249781?= X-GMAIL-MSGID: =?utf-8?q?1759445179219249781?= SDM660 requires that the PCNoC clock always gets an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 6649f13c741f..7e1814f606e9 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -1042,6 +1042,8 @@ static struct clk_smd_rpm *sdm660_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_sdm660 = { .clks = sdm660_clks, .num_clks = ARRAY_SIZE(sdm660_clks), + .keepalive_clks = cnoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(cnoc_keepalive_clks), }; static struct clk_smd_rpm *mdm9607_clks[] = { From patchwork Sat Mar 4 13:27:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64216 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp922197wrd; Sat, 4 Mar 2023 05:29:49 -0800 (PST) X-Google-Smtp-Source: AK7set/aaU18mq7cFhp53D12ECsKDrwcnEVHF8MSrHX305VxF2NeeKJybhZa2HSosvslyyupnh/g X-Received: by 2002:a17:902:cec1:b0:19c:a86d:b34e with SMTP id d1-20020a170902cec100b0019ca86db34emr6701232plg.4.1677936588739; Sat, 04 Mar 2023 05:29:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677936588; cv=none; d=google.com; s=arc-20160816; b=J+QMrI9aZ1QQFaLo5U/4pDWI8JMMNn6tN3Aja1Q3zBq54YvLzJhYthF3YtjEvzHMcq JoyfRNcOprCFPx41DNjIcdQhrxfveYQnNF6OK4IBIhaBuHM4mcffP0iDvNhuyt1Zi5zx epmaaoU8xYcPi9XSHmIhwXj1B47PQlzcahQJgyRPcZo1WN08fiTIrcXbyE3bcDh36A/O G7xu7TXVlfoCpL3vgYHuISJDYEvllDNVyACt2SM+BWJ6Vzb4DesbN8vb2NVQRJPxSDUV oArjCGr2CzihfsB6MsO0LWH6UTql4kvZbl5CWB0XVQURu+decBLtCzdgFphh1VcWL3qw P9jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=+VfW1YYdXfqnKLGPvQBkrMfeqGIPI8djYtcQvRbIczk=; b=GeQrT9OYJ/g4RYSS03wzoaFwqd7tcIJQwZlbkvlzJW+04hjH5uhYCZzUKGIgxCQnXX xmwdpMNj0L/l/zF0LCdlmL0NaQV4o/MwfQyUdCgp4eZEBPdWMwJ2sDHjREAf53FLm1Sz xDv5WXz6x/DDkgxNXzRyh32O0m5GCopTJO1Q4kbaWer9NYfD9KSdmA0k3u/sAX+SBshb NuJqbeo1DErOIf0/lFC5dH5xZuG1iwbHf4yNlZkx7FsokdJJQkiFGcVrsy7QeGSTp0vu 1srskowTJIM7NVr/1j/Zc//k2BvXSuY0cYcGuaKRoRjAjT9k06z/6/haH4h4BQQLTx8J 5SAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CuHKcE6G; 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 x7-20020a1709029a4700b00189b36a5427si4726923plv.16.2023.03.04.05.29.36; Sat, 04 Mar 2023 05:29:48 -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=CuHKcE6G; 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 S229928AbjCDN2z (ORCPT + 99 others); Sat, 4 Mar 2023 08:28:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbjCDN2c (ORCPT ); Sat, 4 Mar 2023 08:28:32 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E23CEC46 for ; Sat, 4 Mar 2023 05:28:00 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id t11so7047295lfr.1 for ; Sat, 04 Mar 2023 05:28:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936479; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=+VfW1YYdXfqnKLGPvQBkrMfeqGIPI8djYtcQvRbIczk=; b=CuHKcE6GIYECPkggTmAyVhXgEZYVjQzqPZ+LEyC/UxyEz7jCvBfGAXnOPSbLoYWgIw 2mESFZjkWdBVSudqXLXwRMC3uoa7solX/3JTb+57xNK6B7cSfXhXaw3IAIp3MErdW9RB K6oO/o05IZlV3ggGGPfBP/XihsKNYpWqtBYJe2MbN+y6QixXAESM4pC0rNqWiMRYlvmH hN7BKS89kE5Z8kuXGNAfvPv6GIoSozqQjoVSa8jXOnDJLB1NyYJiqP4YNNfAGKLxRA1L XL7bND4/1mm1+N6LLyLrx6QKomhKfKd1SCsGeBIZpFy7B9/iXi0Kzo9scdIoNsIzZPSQ SE4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936479; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+VfW1YYdXfqnKLGPvQBkrMfeqGIPI8djYtcQvRbIczk=; b=ieQx04ZZcogB6FYyQvfs4VM0eDr/LowBYoT7huoN0DmCSCZxzKtP9Bs6DBvNmNfmxw bt24ExRmaXqUSctkG6fUZkjZ2ZS2W8BgKZ6zTfb1AsnsZ3q0iewuKmzBSIS4e1EEwKS/ tdKOnKn6cJJB2xmweDicVXAyH150WQMOLoVOdBklSH0JoA/fcXgaem7xO4eX4Rxn7aYM CUYRGpGpehGv8sVFg/JpLpI/5/7KE8HTtpi+szezX/O6VvOYih4Q0IVWgaIva/eGXwrC WY2KXI/A6rN3R6jExbmc08j3KJDs057182ARQTlfaB7EnT2ZQSnxnIS9vGkuATPQuHd+ YkNQ== X-Gm-Message-State: AO0yUKU6eLYaa9OMiGb+jwjIAE0q7lCC0hS2+7PXyiYckF6d0sv316U3 1CXUpnLcqRWmQnuuLofYgsEP4Q== X-Received: by 2002:a05:6512:408:b0:4de:8588:b57b with SMTP id u8-20020a056512040800b004de8588b57bmr1356654lfk.19.1677936479709; Sat, 04 Mar 2023 05:27:59 -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.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:27:59 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:50 +0100 Subject: [PATCH RFT 15/20] clk: qcom: smd-rpm: Add keepalive_clks for MDM9607 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-15-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=784; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=1ZJqkfkW4cuOQkRuGuBOVoeDkiqePtVAvw1z0RMFEyM=; b=nMrSzvl1dqVIXFXF9GBrlew6CQCWBNkgB10RxnN2SFC7MU/4L4jHAfgX+nRYs6web47uuptxDRDT +uRH87KzCXx3FawG8VzHL6yCcy9CI1O4QMO0ipHHfJdm1EZ/LJ91 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=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759444036314011226?= X-GMAIL-MSGID: =?utf-8?q?1759444036314011226?= MDM9607 requires that the PCNoC clock always gets an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 7e1814f606e9..a098327dc851 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -1066,6 +1066,8 @@ static struct clk_smd_rpm *mdm9607_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_mdm9607 = { .clks = mdm9607_clks, .num_clks = ARRAY_SIZE(mdm9607_clks), + .keepalive_clks = pnoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(pnoc_keepalive_clks), }; static struct clk_smd_rpm *msm8953_clks[] = { From patchwork Sat Mar 4 13:27:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64217 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp922378wrd; Sat, 4 Mar 2023 05:30:15 -0800 (PST) X-Google-Smtp-Source: AK7set/aHwM1gfmdSPc1Pt5MKShGZrPxDVj0uT/F04NICvnU0gZtx/SFrEFWstklhLEATSiQSIh0 X-Received: by 2002:a05:6a20:7d8b:b0:cc:9b29:f621 with SMTP id v11-20020a056a207d8b00b000cc9b29f621mr7461405pzj.42.1677936614761; Sat, 04 Mar 2023 05:30:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677936614; cv=none; d=google.com; s=arc-20160816; b=DNar5b0/+2AOSGBAoCEGvYdqfzbdDfTLsgF3+kxeJIdpkVcWIIXcMuOaSY6nLTeSgq tG09iLqfRRW4NqOc0/k+LhfcFWZj5rn6WTpU0TBOe1T1j+IGFhZuwZ9dBgLKKnd7g71E 4YeX4YktbN/HsIQVQlEGK4kVkS5nJWwdhZiB/YEGT3Da43wNA52Qm0Dg9NWSl8ljd2KX 4OR2DEw2Cw8T/sctJ/OqsXFEm6R4KfWBAPkZftqlOaUScCr1zp3vl8otfAqxNMz5yvxZ IZpdAlCGdxPDifwh+GEGm2xzoWA47M24fVdYEs+OK7i6mXD4Mwz0ctdU3ckJtaMmlGon f97Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=f4W0qLZoGn/Gqn60OVKnf/AngNaZtJaEGiMe1FryGsU=; b=PTaO5q5atC2lpUVYmp4E888yRxSLMeISoZBd5Ja9La3YwjWmW7b2RuWfoNp1UEbIsa 5L0PCaaFLNibwRMmZl2c8048N0RO5U0l36pAp8uUx8kKIyKf+kaMSwLyKxocDoi14wPM RChT8/SfNU0g7Nhm6D0uW7xDcU4vzbqbMBQ+a1PYpzT+DzDVb2EV5CWP6dvsDl3Tu/Nu CXDA1/BHPwdgSv042R2vTc11cnvgqge+CWDb+DWmXIsgQoPUz4k7ZggGeZKsyg42MuxB LUbs3hU0w//cztjJbCraKm9qTZX2mTIRLIJQ4vyDcJ9FgTbkV87dX/ZZhDcc4oe0hQco mWsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t7GDasSG; 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 b2-20020aa78ec2000000b005a919052520si4843392pfr.317.2023.03.04.05.30.02; Sat, 04 Mar 2023 05:30:14 -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=t7GDasSG; 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 S229941AbjCDN26 (ORCPT + 99 others); Sat, 4 Mar 2023 08:28:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbjCDN2c (ORCPT ); Sat, 4 Mar 2023 08:28:32 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 890817EEF for ; Sat, 4 Mar 2023 05:28:01 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id s22so6999371lfi.9 for ; Sat, 04 Mar 2023 05:28:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936480; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=f4W0qLZoGn/Gqn60OVKnf/AngNaZtJaEGiMe1FryGsU=; b=t7GDasSGmRW6/G6++NRMQTEai0gAR1Tr/HKAP410D3++4lhe2qTFz/0Js921sgPE86 oC8LkReLaXxo4D/7hBZdIAT1VojKs6GYqpq17hEwV/mcocn/0Vb9M0WImBWciUBoshG3 /k6k1kxobJeBjKTKFtUXPrh+vAck42t/YD1fuSdQ2chnx/CMvdIQOMDdSoKvh6z1vjOD x1vVjKX5Fy/1fCgB2pYbcOUESNPaY1cK6ooVmurMx4q6foNTuVcL2SXVL2IqVYcZTbCY 3Oe8vdRezkx5ZUvHqz929Ldq+vt1dbTwNpmuXBD42eKYVqvzujMR21Rp71MCwKN9kncg 9Z6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936480; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f4W0qLZoGn/Gqn60OVKnf/AngNaZtJaEGiMe1FryGsU=; b=u8iPsPEN0/EfMsWNdZ1hV5dB0tOWZGzyyJh3Xq9FzaJI8f563ZcqqULqUnpbH0rW2R I7+bgIFDhJC2axIfE7bFxFVFRyxMH8+CJUim1s8AQP+IL22D13NgHrhpOZuWYWzFLBEm GC6gt2E6OxMlOtRgaPI3uiCqtl5lFXPV8YLIPvL1T0Rsu7sNyPI88q5dK7kCZnNr7bmp KRZk9Alks8ZDumL9nVztyz3QZpJFRI1+N2CPtnEjI6fJGqv7MsOAnei3qAJbycTMUCMx vhUSTCxTQ8dKGPGd2UPOmcxPFO5hLmAww4/qUIr7I0cOdqKXOkpW28ZzWj5cr5UHqPUt FhNw== X-Gm-Message-State: AO0yUKUG9UShBpnercTAxu0c5OdbTr0/IN2znx3Knu0ERWg6nJDWjtLb aSiV9xQ3urKyBp5qBrOkJb5TQg== X-Received: by 2002:ac2:4ac3:0:b0:4b5:3505:d7f9 with SMTP id m3-20020ac24ac3000000b004b53505d7f9mr1549589lfp.35.1677936480693; Sat, 04 Mar 2023 05:28:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:28:00 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:51 +0100 Subject: [PATCH RFT 16/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8953 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-16-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=783; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=VYT274DWBTR4U05l1ygfBxvGIehUAolvPL5f0i6UxzU=; b=ME5iN2KCMx7f1jQnQ2cjWFVyYIXX7qjnWt3zmxT2ptfnWHFEcMZ5d4Lm5AjRC2WozwYUZifqxaMp 8FKc2cFFCTafSw/z8TtWgclbL6Uo1z0xCyW2/1rih3UpzElMYMDe 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?1759444063644207362?= X-GMAIL-MSGID: =?utf-8?q?1759444063644207362?= MSM8953 requires that the PCNoC clock always gets an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index a098327dc851..dfcb2020b7b1 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -1104,6 +1104,8 @@ static struct clk_smd_rpm *msm8953_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_msm8953 = { .clks = msm8953_clks, .num_clks = ARRAY_SIZE(msm8953_clks), + .keepalive_clks = pnoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(pnoc_keepalive_clks), }; static struct clk_smd_rpm *sm6125_clks[] = { From patchwork Sat Mar 4 13:27:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64221 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp928446wrd; Sat, 4 Mar 2023 05:45:32 -0800 (PST) X-Google-Smtp-Source: AK7set/Bp/T0S2cmoV8F1vF+S6da4SSIoiNdKrbG7z8VHA1jbR3t1ZrPFbhJUQlic1bpV7ROKwDC X-Received: by 2002:a17:906:fe09:b0:8b1:2bde:5c70 with SMTP id wy9-20020a170906fe0900b008b12bde5c70mr6196531ejb.2.1677937532118; Sat, 04 Mar 2023 05:45:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677937532; cv=none; d=google.com; s=arc-20160816; b=idK/5bxgBXcdLC8lx5GaBfOYPV8WAXIPd1X8GYpJ2WWuw3JR2fTCMhpf+ZlhUfF3Sw XN50HzFGSK1B4+NYU98Cnwlcc9ht4lW4ptcF2XG6xPnZaxL2ly/1mb05V7RZFyWxSMlG stekSj52e9BYpWJcg3jjBVts/ixgGJh3qxbxPfeKG4/pLhZ6ws9jOZcmR2ym/6sInJwh zIiwzdKDk3S+KI8X9hguFFgEDZT2l1Aam8ucLbEBLa4cz9qKaZLPVAO7DSRIpRzhmRq7 xegib25F+6D7/DGsioNscZOz3+O1MvWceSSQWVeFCgiik4lDjdXbhNJ4RjWNDc0aYURp dmlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=HOriah8CGt+wDocjqhLOrYXq452xc5Pi+fEeXp9fgS8=; b=pDdvhtaSJomN/CSS05gMFALWQrFDSjzKIhXr4u6f4tNlu/3Tv8KKgkiyl1jwfDVUHU Ozqh2hVsqtOUMbHWNEouXYPwHQqXusfVTAIxXLlioWKQ/oJIPfbRzBkbGWSTqIl54EeJ AoMGYfFbITbPJmk68ciqlFFmauQqICy1mqW4WfZnHIKFURpM42vmr+Qcz52cIO2DnCjp 3d2tS+UXBx8XdsppAd1ZaumJ0QNc/CP4PjILxGiwlP31FdfxNITZj0pfWXXt3vSBxVpG MPge/Hb5jxbvZdcm97SceMIOrSfcaiO7e5h21g0aOFaoZyKlWmBKO0qBF5fnshuJvsT0 dsmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tiYbTRQZ; 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 l4-20020a056402344400b004af70883594si1526669edc.244.2023.03.04.05.45.06; Sat, 04 Mar 2023 05:45:32 -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=tiYbTRQZ; 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 S229861AbjCDN3I (ORCPT + 99 others); Sat, 4 Mar 2023 08:29:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229846AbjCDN2p (ORCPT ); Sat, 4 Mar 2023 08:28:45 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A14DE1ACDE for ; Sat, 4 Mar 2023 05:28:05 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id bi9so7053150lfb.2 for ; Sat, 04 Mar 2023 05:28:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936481; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=HOriah8CGt+wDocjqhLOrYXq452xc5Pi+fEeXp9fgS8=; b=tiYbTRQZGVqm467Aj4oeega4VpkInq7di1idcSuPONWc20j9glNSC+zFMeMmrlQ2XS BcLH0v4VpcVq6jh9r9v3ryWItNx/IxiR9ZsGhDi8XgWaY0eLR6Db9lDKFo3u2SMuiWXI /bk4bEdC93sFqLxU0rupitkiShUgNpT1gJA1N3IEAAphdmYS1qVYy+a7dOhQYcU8c/nH tjAqELfRYFr6lVuZD3wgVwJhto6GpHF+Di2AK4qvrYbtd7R4mqd/GtNKdaJxD0Zimv8z CWHBVfiH+BHa/Q5WHsqgdMWAfUnHNqiH7kEuXY16ovV7n2YpX9kzlej2w2VFMIZtyalu z2Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936481; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HOriah8CGt+wDocjqhLOrYXq452xc5Pi+fEeXp9fgS8=; b=0Y9/XzuolViwc4ZtqDu6RWJDh6sxxrFpknmarr/99To5lNmXMZd9ELgmohHjwqL8T4 YWSxYfyTDO+Ij4lLP911XWJPRQgv5HeHaPeF0G5g1nPgRuNG4lISix7RjX6x8CFL5YOM bSSeE8Efp7IJPykQfmSa9ZPPY6XMFHIl/pcLZdBHo23u+uq6NbInu9kpR9d52bzle5rw 0TILq+pg26fXSQlXOsTWqGm0KfZvtccKi/Wc9KRJ20Epoy3a0FmpSSlyGuW6NIgRgMLc 8HE0KSt7S/EGQDOSSsk9GV/YeKGRY45eGe99eQcbKfioUCrwdllQjvfoUSRq9RxBB5SL 35qw== X-Gm-Message-State: AO0yUKXmojLuDKktl8XJ/y4TEZKGfhytC/3CwcsQFvrNtcgYylCBYa56 ZS9ckluDyQJ4RvkRrrzBqWPDPuOuaQiFqVGUUAI= X-Received: by 2002:ac2:4947:0:b0:4d5:96f3:61a with SMTP id o7-20020ac24947000000b004d596f3061amr1229303lfi.6.1677936481680; Sat, 04 Mar 2023 05:28:01 -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.28.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:28:01 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:52 +0100 Subject: [PATCH RFT 17/20] clk: qcom: smd-rpm: Add keepalive_clks for SM6125 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-17-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=760; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=VK4g3BsSe83Idt8jQ7iBMSR7RQiEu45t1paO0zX0Ibg=; b=fxaQkNzN1IN1hgxn/a6rWWWUjNjheLcEtdZnZdf5H2rj/V1dCTUzkXTVoCh5Lnxo+6s9B46zJoj2 vOj7reSSDDHPVHY0MCwkOmvV02kn+QUnfIKWPul51NcggBpedXnf 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=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759445025476793122?= X-GMAIL-MSGID: =?utf-8?q?1759445025476793122?= SM6125 requires that the CNoC&SNoC clocks always get an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index dfcb2020b7b1..a5171b818d15 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -1148,6 +1148,8 @@ static struct clk_smd_rpm *sm6125_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_sm6125 = { .clks = sm6125_clks, .num_clks = ARRAY_SIZE(sm6125_clks), + .keepalive_clks = cnoc_snoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(cnoc_snoc_keepalive_clks), }; /* SM6115 */ From patchwork Sat Mar 4 13:27:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64223 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp928449wrd; Sat, 4 Mar 2023 05:45:32 -0800 (PST) X-Google-Smtp-Source: AK7set83rhvQ6EXFBI2NTigcjyNc3mT/18rlerV+/cqcb8+Mnx/Jjt0OXP25p6v0s1f1tYKzceVM X-Received: by 2002:a17:907:6ea6:b0:8b1:7dea:cc40 with SMTP id sh38-20020a1709076ea600b008b17deacc40mr6332875ejc.9.1677937532123; Sat, 04 Mar 2023 05:45:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677937532; cv=none; d=google.com; s=arc-20160816; b=Aasm/9WPji0YaM3KS8Uixw6s1UjplLdhliaCTti6Brc0YoabXr6dil2+9MTZFue5yC HSjEV09fBRXf6xiZBuu+TrYYok4vd8/C5vkFCCNDqa9ls5/cZ1l8ok6m8VEtfAopdezm e1eOIF1wO4pLF92iixEps1J+imQTMB/GMKappLCZbx0qJvS4bQ4T4nqV3y/yCFrQKsgT mYWQiTjul7U8g01iNrRnnQgCS0Qzg5bKNBBuTbKjX5sp9ykRQCmmY3LVhzkXhfGJ1mY5 pUpklRWXCeciHqSt3JnHod1Vy1AYxb0MKEVjEeTNkXd3fK2+06Rb/qhYT9guxaxyPbRW kkOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=NwpdNKDF+NZllqTRGwjUJbvwc53G+1D/9QetVZeUhx8=; b=lHXGhOzxFVDDROGHO5/4rIKwsxilutA8fMa2hnL5ckpXGcpNWaD+vuNnvrE/jjqYRs gHm7VxD7yAmWeNRAZzyvktpnO1al1qpps3RaqqfGxxQXydMp0Xw6KEG9TRRFo7oXQt5w Ig71ZeRIJza2bLhuALyah6GPVc0cqCMV/2SEa6IiEYPUWpUp30R+N4ZzUgg9Hc18xdNJ HrPSG6m9/PkahpcPCf4OXONKZUzlnK4PuI6lmbmGPEP2LcHBUXxxC0g8OIIxVqhBq0fR 851mRGpQD3TGUX/d1EmU5vfLJUJuep+aDF2KRND1RGEjjhqa/Ty4A36BB+ZaVnUp4Orx kItA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kfBEf9VJ; 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 f23-20020a056402069700b004c1147e963esi733558edy.502.2023.03.04.05.45.06; Sat, 04 Mar 2023 05:45:32 -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=kfBEf9VJ; 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 S229912AbjCDN3N (ORCPT + 99 others); Sat, 4 Mar 2023 08:29:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbjCDN2r (ORCPT ); Sat, 4 Mar 2023 08:28:47 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C58D31ADE5 for ; Sat, 4 Mar 2023 05:28:05 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id d36so3868353lfv.8 for ; Sat, 04 Mar 2023 05:28:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936482; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=NwpdNKDF+NZllqTRGwjUJbvwc53G+1D/9QetVZeUhx8=; b=kfBEf9VJHTFaNDMvnQRTXIO1B0LeU/XrM2oD2JTWWo4rG3N9NTkDxVTzXmfpw2guwu Bzs6hgAT2aN1l5vuv0viUpchEdWQjGkOFxvZRWJ8e81BtShZNIt2v/b5eny7PD1IaPe1 BBlBov58NGvVbxK/pM1uaBrPrrY+Een2xG7KIP5kGdrq+isL/MCJJEYvdWRaViCbNqKY 7WIcth1ZbZxX+vUdmXCn/LHEL8wJ9qqr8fsBN2eHsHzybgnkOvRGaoHU7TdlW8gUy+/0 /IdAnFEPjgiHW6U2P/wfp9p5h3CdN6GWO77BAUinBQ/Q6sPmo0TQ5TUj1zDKBC+BJqLu BVYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936482; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NwpdNKDF+NZllqTRGwjUJbvwc53G+1D/9QetVZeUhx8=; b=7XtDjAyx5287a6BU4Zg9kPD94ysj3nddzmvMmHez3xdwI3yzN+2VfS8Gw5HgEfJWaI nU12YzJ5C1ANsIMIMl1dMlxs+tOHw3pjquiMDaVC9l3TTZYLhUpzqChh5wR6dKHlOGK7 j+SyPmoskPolqf8r0g79+74Nq7oEVb+lcSyBebzvHVCgUZLYQicuyHKJm/XFtaxqVZnZ LpMuq6Hjq8DQk0a4Sf6Dy42HaIVjMUAHuSMBJDNZbu4f1zyjDhSDdK/HX8IpVrXGZiS8 pW+5lpZcR4NpOJ8Ov9EHWyeJYcz0qZvqdow1OHgNvEr9X8DfFQmvQg8Gji2z6ccTP3o4 T29g== X-Gm-Message-State: AO0yUKVUfG4ta1636Fe1HUCgnjOA2kEzT1EGWoQEAqRpYtaGjMpwcVgf qi3gWmn7jgVVH1W6+pDWKoW5uQ== X-Received: by 2002:ac2:518e:0:b0:4b7:2a7:1241 with SMTP id u14-20020ac2518e000000b004b702a71241mr1427849lfi.64.1677936482814; Sat, 04 Mar 2023 05:28:02 -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.28.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:28:02 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:53 +0100 Subject: [PATCH RFT 18/20] clk: qcom: smd-rpm: Add keepalive_clks for SM6115 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-18-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=792; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=9IYygSv7WyUS2mTDxWuyuom5yDq7gjXSU2vpknvMF+E=; b=bq+/ReILwYadLeCOWmzOuXbedMdRZAszg/pNUCgkUTbBA4cndH+eBM81EfJPwvN7t43o1nkmOfVK 3tJQizn2AAyHgW0e6WR5fFELV3OJh01zfTIKK7ellMNWzcH0uuJu 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=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759445025819258166?= X-GMAIL-MSGID: =?utf-8?q?1759445025819258166?= SM6115 requires that the CNoC&SNoC clocks always get an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index a5171b818d15..c3ab882de7ff 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -1191,6 +1191,8 @@ static struct clk_smd_rpm *sm6115_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_sm6115 = { .clks = sm6115_clks, .num_clks = ARRAY_SIZE(sm6115_clks), + .keepalive_clks = cnoc_snoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(cnoc_snoc_keepalive_clks), }; static struct clk_smd_rpm *sm6375_clks[] = { From patchwork Sat Mar 4 13:27:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64218 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp923812wrd; Sat, 4 Mar 2023 05:33:32 -0800 (PST) X-Google-Smtp-Source: AK7set8jDZ8Ac6sqoZzVPHir72uRtLsQroJjTjTEOYkO8oeNV6hYDuqa6xNZjMIEaSnDHm6rrDWR X-Received: by 2002:a17:902:e801:b0:19a:b4a9:9df7 with SMTP id u1-20020a170902e80100b0019ab4a99df7mr6123105plg.53.1677936812584; Sat, 04 Mar 2023 05:33:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677936812; cv=none; d=google.com; s=arc-20160816; b=MWvkJi3hMBhkM2ydjs2k/PPOtdyCP11niM+KeyQiR1d/+EBhbyecu09H1IVadG4Lu0 sEJhM7mePIue4RIFUIV8IYyYORTGYTxFqRZ9+TmOT5o90oHvi3hCXTcgpAfmKC8vZCfM Gsj9pQr/oHinoGzUuqk7Yv25f7BaBrikzVhQsDU46G/iipEfFj+kU+TgxoGxpGmhQ/7s FzqNfg4bsZSA5NXS9sjp0dmisgVwNcYVDI2HpDkdv+hU1AYE7BuDpzjqoIcWcsimNLDE lDEomOR621m9vf3jn0qg+i+dWEeqkkQPa0BXanUvpgXqTULNy6obnk4h7dqEp5rFYU05 /a5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=uCdcLmpO8Goo5antdKGZz8iakSfWM1kJytihOCcOfRQ=; b=lsqybYPTD6QHiWsEbQrxo2bjObo62nVjEYsTv6ULaOG1e/tML13IghNq15o7hbXUsu FFiwDPGBkLPsZKxm6l9zFj8BKNw4tBJQnKga3QY/uEeCV/T+5NNwBj0gsHR2UXJgeqxW 1JLCgTjXfPd8svSq2Vt+P/C8wvoPLZledmD6iXnvJxpqezY+jGw6o8EUG4rdHyuiuMAn 6fQ7emFT2ZAsuiqdR4Zi7uut62k2ReRSa/8WdApgEKfyb+6/57xJeU8BaNc77zmqzwj7 3MO9KB3V9jl/uur1k0bmGUWF6OtTse8HGlONLBjiJaoE5DXJ3X9+5EwMKmiINPSrpubo SiZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DOmDM9/f"; 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 f18-20020a170902ce9200b0019e4154578esi5296073plg.76.2023.03.04.05.33.19; Sat, 04 Mar 2023 05:33:32 -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="DOmDM9/f"; 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 S230012AbjCDN3G (ORCPT + 99 others); Sat, 4 Mar 2023 08:29:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbjCDN2k (ORCPT ); Sat, 4 Mar 2023 08:28:40 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FF197AA1 for ; Sat, 4 Mar 2023 05:28:04 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id s22so6999478lfi.9 for ; Sat, 04 Mar 2023 05:28:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936483; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=uCdcLmpO8Goo5antdKGZz8iakSfWM1kJytihOCcOfRQ=; b=DOmDM9/fyLhGzRVp1KKPof75BpVZrrV9KAjfRqZPHf8qDcPhz0Esu1aTYdI3cDjtFD zq9nK7XbZ32EyWSlRQ5sUnXn/qJaiQtHwstmAcSKcDjCH13gf+ov1Kdz+PE6Zjjuq/bz wMGQ8JO2Goq/t34EwkpTg4UBNz7rMM5GaSXG7zvb9h5LUBSv0luC8yP+NIHFilwtCASP ykXlOF4ZLg309/jpnDATp8OYMMoK0uquz2R8+GaI3zs2iQSluaWcCmZgukh6TVR44BD9 LleEEqs8oPpPOVZjNLD9eKeIFmrYNMC13tRYfWVYEKnlkAaEZqZo5A9P1CAdpknhDKYe CkYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936483; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uCdcLmpO8Goo5antdKGZz8iakSfWM1kJytihOCcOfRQ=; b=pKTM38iwTa87nIhBBoEO36DGMI8/aSWWQJMFz1U+HuHj6TEhiuYxdVyc0Xs7bfpuPD GDhz2wHjc5oREEZgU5aOPzTFgxc07HTn4n2YlCExSJRCUuV/3LoQYXf1OkPzRM6unOWW MDCBu1FRrwDvITnuxmkBNHRkbXgpVB6C/D1eIsHsZbCfOWVT1M6LqvRpGzPhw86ruCXS zKlFLiu319pmUMz/8EywiqSrW/hMS8SAaB3evZS0t3FMAY55NhR+dHtXpXWLdZRqD5PE YZ+Z4BihD6grsIGfSXr5n1mLOxQ6OUzL4/eV7dfibkCp42LlqNzeud+KC7wpCQwdX+uh XolQ== X-Gm-Message-State: AO0yUKUvferd/HAS/cO11DgmCf06qOosX1Twv9/VzhQgPAhWfz4SWGnE wB4iI9YOHiiQyZya/hePjPOZXw== X-Received: by 2002:a19:7406:0:b0:4d8:5e8e:b138 with SMTP id v6-20020a197406000000b004d85e8eb138mr1424745lfe.14.1677936483796; Sat, 04 Mar 2023 05:28:03 -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.28.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:28:03 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:54 +0100 Subject: [PATCH RFT 19/20] clk: qcom: smd-rpm: Add keepalive_clks for QCM2290 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-19-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=815; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=8naJyecqQklf10++bIijL/ZoCGk8UDKNEUfnObmFBi4=; b=4Jh2Uh7XT953o0LPAYr592Sss349Om2Ubjzd+BJSR0KFRot2Om2JqQftiChbwDlsUej8sRYyrajE 8jw1K7fZCNu0uv26MLk3lN4DKcVBhMq5H7l06wsoxjI3Yp4dtZr7 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=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759444271591465103?= X-GMAIL-MSGID: =?utf-8?q?1759444271591465103?= QCM2290 requires that the CNoC&SNoC clocks always get an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index c3ab882de7ff..2d0efe2cb1f5 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -1278,6 +1278,8 @@ static struct clk_smd_rpm *qcm2290_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_qcm2290 = { .clks = qcm2290_clks, .num_clks = ARRAY_SIZE(qcm2290_clks), + .keepalive_clks = cnoc_snoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(cnoc_snoc_keepalive_clks), }; static const struct of_device_id rpm_smd_clk_match_table[] = { From patchwork Sat Mar 4 13:27:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64226 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp928692wrd; Sat, 4 Mar 2023 05:46:11 -0800 (PST) X-Google-Smtp-Source: AK7set/xVQFnyfQooO++yuUhqSV8aGRwPZvxVfaECyv0oPVhgEOirX1cL91hkfXmwp7MnyKOv5QX X-Received: by 2002:a17:907:1b1e:b0:7c4:fa17:7203 with SMTP id mp30-20020a1709071b1e00b007c4fa177203mr6287197ejc.63.1677937571242; Sat, 04 Mar 2023 05:46:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677937571; cv=none; d=google.com; s=arc-20160816; b=UOskqA8Igpcf7pPFKN6lO4PmOOBkw7WCWrVuNqp1FJ0BT6IZmNG2F7d4BJq4xC8H2e 65WCzpTqoO2M0IcOYvYYhxC8ocD2Zmf/mq2AzUFbGsOvdgvPHyoU10meNidIIpi3/mj0 0RKsaaqQyT1Qkw3/yG7OBiIziR/V1UnRpIMqJ00Xz1EffsGv9f83UBJTyUP9G66z4htV ILSxH7pl14aCeEt7/ZTP/+kif47oPXkuoIMMHLDsQ4K/vVn6iVITAFdvbyp6nU3+beJT p/6LXHv3D9tblzTGJ4YqNeZmwPQIF2aHZl03LgHIk22Dzp1FmfhKxSaNcVCfpmkZ638c u8oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=8DK+DHJSy2xBUh4Vr8/3y2ODv7He3a8h/4QGwZUApeI=; b=xAyOY/JU48jY1wqUcUJuyUVzDNgCXThPxHpAuA7cTx+kcEwrhFW3rxc5ixzMRaux93 4BB0r3R/rTePQ2IeQ5QPeFAPeRfnfO1oG8kzVyPZ6Q08CmhDTO9cwex4Abc8nyqe7dEf zk3/bgEtserWOUYIUzADAKwVZWr8yMod3My5b8EMgkkCVh6Gsibs3neRo29yP6mWYYJu SDqp9fNTrXB8J2OGxEHqFQms2vYI00oXQ9GjyAQq0YMD41GQE+TfZvf17imAQDtqj2UH imQ/HRGwayXxm8KAGBZVDWLAEQWYQSE4aAqA6arozxaIxUBA95s9rNkkWwn838OPImw4 aE6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mRPq98te; 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 ja11-20020a170907988b00b008d7fab1c562si4987627ejc.115.2023.03.04.05.45.47; Sat, 04 Mar 2023 05:46:11 -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=mRPq98te; 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 S229899AbjCDN3K (ORCPT + 99 others); Sat, 4 Mar 2023 08:29:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229976AbjCDN2p (ORCPT ); Sat, 4 Mar 2023 08:28:45 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0E5A1ACD6 for ; Sat, 4 Mar 2023 05:28:05 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id i9so7025693lfc.6 for ; Sat, 04 Mar 2023 05:28:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677936484; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=8DK+DHJSy2xBUh4Vr8/3y2ODv7He3a8h/4QGwZUApeI=; b=mRPq98teuJUqn1DsSyenBZ25dQ+EQZd1E8Jer+5bbm42Z2bV78WQTWozwodo1HtuAX LWKwetK7sptG4EBNjfp/NydEtpcVOwb+p4WvdSYnBUQoBj/3kqfJ86kTzdd8rFXEvxwu 7Jqn58pIcYTA6pkGruymAeh1CGZ6PSo3vx7iLGW56eBWzmERxgRm5Mshu/nfLkUQPx5r Y/yiTXoYUmzTCloWM7y5+iasJMbB62ygqrK79O4psOMfV0Bid7O/4uJEursgHBbD32iR bT9t+1JRuMcIk82r1LqGj6d89Z5EzX6p9qoJ5ami7xviVt95qk9F75wu08oX7PwDUVFC Viww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677936484; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8DK+DHJSy2xBUh4Vr8/3y2ODv7He3a8h/4QGwZUApeI=; b=7wQgYe1EuMuBljTByAR+Dm48LPqhTFn3Dnr8NmxqHHAs/TiC8+UzgIfkAS6Xi/wQW1 cHqWqZAxZGERGiR7hlJE3picEZmZ7hqM5QHqMvf+s/3QWi2uPvX+UI8lfj0zs8wfIfyu d1ufUQewNj/rH1ydqZL/vwSUKWQ1KmNpUMGiIU3t04iPkbezOroRjFwuDvyBXNsn/hos DlyF9q8Pn/7XTIv9CunUUWyEQHlK5xbx1FjYzJgQ45xJEc9qsnu2c+Iwj0KiQz7iVZN8 a/6E1pk6Tsrpi1gIjcqs+c2LOdgH/pUUWwHnZAB2ZfVb+rV4D97HvDAVd66KGhU3ksMQ k1xg== X-Gm-Message-State: AO0yUKWDrMoGLkfUFOSWV2urBCtf1nMASd6yT7r4Qt6dzAqAvKGPV/PF LqerHfAhqvcb1Do8OmRfQ/kxGA== X-Received: by 2002:ac2:4a90:0:b0:4cb:d3:3b99 with SMTP id l16-20020ac24a90000000b004cb00d33b99mr1375577lfp.36.1677936484771; Sat, 04 Mar 2023 05:28:04 -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.28.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:28:04 -0800 (PST) From: Konrad Dybcio Date: Sat, 04 Mar 2023 14:27:55 +0100 Subject: [PATCH RFT 20/20] clk: qcom: smd-rpm: Add keepalive_clks for QCS404 MIME-Version: 1.0 Message-Id: <20230303-topic-rpmcc_sleep-v1-20-d9cfaf9b27a7@linaro.org> References: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v1-0-d9cfaf9b27a7@linaro.org> 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 X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677936461; l=777; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=7QPqo1GGgCEJKo/s3JptnfQVu+vbrWF3+vXEnhyWs3g=; b=jtPxDC2HrczqJjFmn93XT4HDRLpY4unqhpYlyqESg494bkZUTgJ0eQCc1+aKQodnCXYW7RUOIBIS xychouPNCaltqNJBMf666A4jpGuiqOm2EIBI4T1OM6pMw66XV2q6 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?1759445066689855170?= X-GMAIL-MSGID: =?utf-8?q?1759445066689855170?= QCS404 requires that the PCNoC clock always gets an active vote. Guarantee that. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-smd-rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 2d0efe2cb1f5..af8a43394349 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -934,6 +934,8 @@ static struct clk_smd_rpm *qcs404_clks[] = { static const struct rpm_smd_clk_desc rpm_clk_qcs404 = { .clks = qcs404_clks, .num_clks = ARRAY_SIZE(qcs404_clks), + .keepalive_clks = pnoc_keepalive_clks, + .num_keepalive_clks = ARRAY_SIZE(pnoc_keepalive_clks), }; static struct clk_smd_rpm *msm8998_clks[] = {