Message ID | 20230303-topic-rpmcc_sleep-v2-10-ae80a325fe94@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp585271wrd; Wed, 8 Mar 2023 13:38:06 -0800 (PST) X-Google-Smtp-Source: AK7set/dJAVd4m1mjwpvwHMbz+dvtrLq46LF6Eu6aKsSYFkoAeS9qXjek0Qu2iDD0s6p1l/T2GOy X-Received: by 2002:a17:903:1103:b0:19e:6c02:801c with SMTP id n3-20020a170903110300b0019e6c02801cmr23193243plh.14.1678311485813; Wed, 08 Mar 2023 13:38:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678311485; cv=none; d=google.com; s=arc-20160816; b=T2M30/MqoURLSim1nb1vikc9PWrG3qZd+RaWhk1ZJNbLr+MkOdjCphTtqML8TQSbRd 3bly0cqMe5PjqcC+R4uA9cYEXvc6zqezyxBVe7bI4CrviWyDzZvSMcW7aqrR1c153sa8 N5z1Gg103hSSIz/C5zi3z7KR/M9ojFifdP5NpES1Dc1M6wiZ2PIQzTP2Ak7jDRTmEnOL PGdLF5cj8NhkGwT9c5Y3h+4e25T87w6kelQkKhLBdppe4/BakOnvfJ5V7btVgjPyk5DE c7bmzl1b6YGXUm4NM1LjSIFgnYOB2l1/WRPExBnfH/HXy7DJlTuJAW9NwtI8Bfc9YEQf qzwg== 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=tTT9T3ZA8o58JTVSfKP4mFmGSY9L0FD5ME/SSc1VeoA=; b=ignU+8dUN/XskTVbx8IMxkP1NvSnv+jS/awvjzQOqFEXY+2a4Zov4ivb8JaQvYKgVi WsYIiUecgCvOkk57ZgeU6jDy6QDr6nKyMMOKjJPW2KtCXdWjsLsiNmG9DlJeF5bGUObO dB86CO0OBbAEJBqDoQ7+1B2s8ztuLUZ/8NHc8Zmy7hV+tqgpcTvevZrrk7BX8SmayABH we5TR83d/kCUsKYHK39T6xe8BPuj0xFdBGd2Yowdo3CR6IOoLtDMF5cHdQip05SQ1mEz oeR59PDVacZGvNhjw72ZXjewU3OUY/u41aVHpmjKVppOrfZYSvLYt4uBstIb2wK6szv7 C6Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vDB0yPgj; 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 je6-20020a170903264600b0019d20f88171si14999700plb.54.2023.03.08.13.37.50; Wed, 08 Mar 2023 13:38:05 -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=vDB0yPgj; 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 S230221AbjCHVgl (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Wed, 8 Mar 2023 16:36:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230205AbjCHVgP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Mar 2023 16:36:15 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84CE8D309C for <linux-kernel@vger.kernel.org>; Wed, 8 Mar 2023 13:35:55 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id i9so23108028lfc.6 for <linux-kernel@vger.kernel.org>; Wed, 08 Mar 2023 13:35:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678311353; 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=tTT9T3ZA8o58JTVSfKP4mFmGSY9L0FD5ME/SSc1VeoA=; b=vDB0yPgjLPPWoTfMKifxuDN4HA99g3FORK5nE8C+hMr23QT6TbTSkc93JcR4QJQJXo xMy6pMK1XQF3QCwSt20pIVEDfCojiR89iEAfcYrCoNfxoA2Uds6l16egXmaVEZ+qhrHx HeLIVr09bSo/s5T8qCGIG0x1ySnvTj8lGAd0Gp9lBbmMab/qKlDDMXFQdnyHph5PvSli 2BqFj9mx9yUF55GRgi98PM//GKYe2jAFboQxvgxSfESsP+VeA9+9oAEl38SywOZXP94i r+RWaDCKPwmI/Fr7Kj5qVV9gAehpAJ34H73pcqSAyzzog0lvH6Nq2G9m3vXy17xE9AJs Tocg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678311353; 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=tTT9T3ZA8o58JTVSfKP4mFmGSY9L0FD5ME/SSc1VeoA=; b=RKK6OuTZlZNykwMXC1/kDVZFgGhVrVtfpln+E2y3eZFvihmaPq73KjddgtOeubw8G1 x3pRTAk5wSgiE30BDUGX6jx/xYVwYPkN/VzRNXSnsBoXzpOYdlLvAzJPx2geNH1zTkol uoa5Jr2pVZJI8OkHONzBp2jxLPpTE6mhPkdD936Dt4AavLxAGzNqiYt9wuoo9SB6jaCx yGh48Db2aBlETy43Lyp8R63IS0ILukWYoX0qIyCUvSPISQ6SbBPHeJJQkq0p/t39katS MSY0Rbd8467kLW/xp59xm5KxzpNY17qXBbPaXTAETEjKviftAgn8S15yxlPlpQI7/+rj frgQ== X-Gm-Message-State: AO0yUKXVU3F4G0VGxRfyN4I7thW9b0g5MAUajqCCdL46Bu7Ok9Ittg32 qF4VrGJvcyYKPiaPW4viVLnxEw== X-Received: by 2002:ac2:599b:0:b0:4dd:98c6:ee1 with SMTP id w27-20020ac2599b000000b004dd98c60ee1mr5249370lfn.61.1678311353641; Wed, 08 Mar 2023 13:35:53 -0800 (PST) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id u7-20020ac243c7000000b004dc4d26c324sm2467479lfl.143.2023.03.08.13.35.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 13:35:52 -0800 (PST) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Wed, 08 Mar 2023 22:35:26 +0100 Subject: [PATCH RFT v2 10/14] clk: qcom: smd-rpm: Introduce DEFINE_CLK_SMD_RPM_BUS_KEEPALIVE MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230303-topic-rpmcc_sleep-v2-10-ae80a325fe94@linaro.org> References: <20230303-topic-rpmcc_sleep-v2-0-ae80a325fe94@linaro.org> In-Reply-To: <20230303-topic-rpmcc_sleep-v2-0-ae80a325fe94@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, devicetree@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org> X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678311334; l=1045; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=nCVLU2bNG/XRlQstVOXJbHVfkx/oThdOe+b2OVKuu+k=; b=B6Pkn3UBt2p7iNXjBVL9wZ8vkQaA5HPLUlt+T/OKBYmMnH6RlhWe8h/cFssu4XFxmJLlBJ7CH7O2 xSMGSQqQB2wzWwXbOGfExpBIxd25+iI8Q6c3zWdHhSZstBUckuKw X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_HTTP,RCVD_IN_SORBS_SOCKS,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759837144264096777?= X-GMAIL-MSGID: =?utf-8?q?1759837144264096777?= |
Series |
SMD RPMCC sleep preparations
|
|
Commit Message
Konrad Dybcio
March 8, 2023, 9:35 p.m. UTC
In preparation for supporting keepalive clocks which can never be shut off
(as the platform would fall apart otherwise), add a macro for defining
such clocks.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
drivers/clk/qcom/clk-smd-rpm.c | 5 +++++
1 file changed, 5 insertions(+)
Comments
On 08/03/2023 23:35, Konrad Dybcio wrote: > In preparation for supporting keepalive clocks which can never be shut off > (as the platform would fall apart otherwise), add a macro for defining > such clocks. > > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > drivers/clk/qcom/clk-smd-rpm.c | 5 +++++ > 1 file changed, 5 insertions(+) Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index d89918f9ae60..8e25b3d7d30c 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -127,6 +127,11 @@ _name##_clk, _name##_a_clk, QCOM_SMD_RPM_BUS_CLK, r_id, \ QCOM_RPM_SMD_KEY_RATE, 0) +#define DEFINE_CLK_SMD_RPM_BUS_KEEP_ALIVE(_name, r_id) \ + __DEFINE_CLK_SMD_RPM_AO_PREFIX(bus_##r_id##_, \ + _name##_clk, _name##_a_keep_alive_clk, QCOM_SMD_RPM_BUS_CLK, \ + r_id, QCOM_RPM_SMD_KEY_RATE, CLK_IS_CRITICAL, true) + #define DEFINE_CLK_SMD_RPM_CLK_SRC(_name, type, r_id) \ __DEFINE_CLK_SMD_RPM( \ _name##_clk_src, _name##_a_clk_src, \