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: 13159864 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 6C219C6FA8E for ; Sat, 4 Mar 2023 13:28:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229818AbjCDN2S (ORCPT ); Sat, 4 Mar 2023 08:28:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229822AbjCDN2C (ORCPT ); Sat, 4 Mar 2023 08:28:02 -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 276581F912 for ; Sat, 4 Mar 2023 05:27:53 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id m6so7032271lfq.5 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=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=ZinxkLNJ/WnFoWnzaur9+ot3sWMgPdJtNr7eQ1GjetjpotZdolvVZMYflAQ+M7kAYT 9SfldRbQLdLWZ9YPhyR9YAV2asF2yNjMB/sqzeDwpGH+GFBeF+HXrBusKwYFkoP6yBop tli8HEXDfmbGAnT5qu48F1sFqAwFnyY86ZEFZlEr3i4WW18lelu8BW3EuA0rPyVDNNgH 9ilJNENLo/McSJDEEGXZ4tAWmcjQDr2LsBkrNOQdDtWXeI0GtTJE48NU09KBVWc6TmC7 59cLwDgoGY1lWG5EXjx1YKRndhYlmLxw41o1cgBlPxZKfHK10SlcoKobmYVweWhf8qb9 2I2g== X-Gm-Message-State: AO0yUKUkAmmQqJAv33SoScxgzigppUEZvfCvVxUEE9BSGBIk+Z25/BGb rYZ6SZ5AeaKGtX4S0KUV61nFRw== X-Google-Smtp-Source: AK7set+pAeXIBpSaR7RrWnLwuNr9xay+jAiWwaq4uSm4u+GC8qYsYJOuYmOtSZBQ3BWIWHzr/q9f8A== 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= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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[] = {