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: 13159869 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6CA45C6FA8E for ; Sat, 4 Mar 2023 13:28:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229950AbjCDN2e (ORCPT ); Sat, 4 Mar 2023 08:28:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbjCDN2Z (ORCPT ); Sat, 4 Mar 2023 08:28:25 -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 3297959C1 for ; Sat, 4 Mar 2023 05:27:58 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id j11so6959069lfg.13 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=yvL6/8fPSlUKy6NhCUEyOrpARXz7qFAc1ky9uVK35hP/5QiheBOCpP34fP2202ZyI/ bOu5ysX2OkoUVcADKXiW4mr3RDugP3J5mguA/tm76waUGLl+7ovNRUlbWiOyObv69jZ/ Gjb+xwPhbYG4j3XJtKpLLiCYuMR0iZcLGciBwY+AOs5YpQYQuiAZBXiO6+1p+Ria6aQL wTCH4xCTeSYlIkU14fudzMAknoidW9wUP+KyjCBvaFHC32Ykp3v7KVyxrKQL2rgoeMJm qXrL41sbdigG8NsJgVRxZ1ig8NySrAMzOpJyT8OKYGmRm18Bwz/rRtOFG3tss+D1SfHj J/TQ== X-Gm-Message-State: AO0yUKVUTwlXZsN84oFEL8ky5sbmM9sftxD3OSFfdon3CpB9PPQ64NcN 8IAP9BBBEcmf1nNzMh3lFmG3cmR3xA7sfV+sNk8= X-Google-Smtp-Source: AK7set//QMUXLq7je7zm/ERtuM7uMA+XVfgTIlDnUrmkF2DSbBcDGir2BunllLBvjEhnbuWQKDwHyQ== 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= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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[] = {