Message ID | 20230731-topic-pcnoc-v1-0-452dd36d11d7@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2010312vqg; Mon, 31 Jul 2023 06:20:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlFNOhvhA9HTbuYd61k7HoPM3woocGRDJ06JZaXrAYgnKm1lzGfO1uT+lWFfzRvyMsRt5eJ9 X-Received: by 2002:a05:6a00:1146:b0:680:98c:c595 with SMTP id b6-20020a056a00114600b00680098cc595mr11313414pfm.13.1690809621175; Mon, 31 Jul 2023 06:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690809621; cv=none; d=google.com; s=arc-20160816; b=Dv9Xc7foBKVxitA4S6YwGn1AK/og1y+g8QqTCecGXu+iw+7q/JLmo+sQmYD81CBKld Lif1fxMBVJ+T99IkMlOj3+IqLFEOS9zAwIoYQbVggHHvnRJRqtWBcgi0XWV0BTmHv3Wd 8/iac3tg9c1KTo8ArGEr3DXd9vOXpYpbUHcAc7J1VZFnT7Q7SbKhrRhq2ZjbwmzKiXVv qDCYQiXEx7OMUSAUgEkINltq8WFJUbFGnByOFW5IiWNJRmEwfYr6c1GDeD0xKQPng7Jj SG9fpIggr2590ecJmT+OA+rD9z9D9GrKFuEsB1sJ5HW/JQbHaoMhg7D1K9R3Mrv4/mfX bTXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=Gf3LmmIWrMau5faq7nlMlPKiUzu+qP0dMuprgORcSfE=; fh=vWYGnuFLctBdglCyqozcLTMw1KFuiw/h6LBryKiHeLY=; b=Wt+KvQstdqX+Ej/NDDv3RivcbQ83dx5bQ/8C5mb6nOulb5vd6j2tQZkZbs/PuhkvcP e4nOqpJKdDIgUGQD/kZ+o+T4gplWkMPdS5WmDlivXAqH/XGQYd9AWztyHVF0xfketfNv IUAW3RzgqC6Sms7N8EMYw6ZCbr4yTdNt85M2hCWG7zgvYrArFunQq74yT9y800li3iO8 E5XwxtEQvUahZzH7zgjrXpUfZVUgyyZl5yPlVYaHA3AGuruXLW3SolefD0zEbMw3am8f lmpcslSpLY8lR7JdQDYou+YqqqALcIohIxvKHA0dcN65UaAOVjbIY+/a2xldLIsp9yv8 OOzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K0GOcdcU; 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 g192-20020a636bc9000000b00557622a044esi7013371pgc.805.2023.07.31.06.20.07; Mon, 31 Jul 2023 06:20:21 -0700 (PDT) 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=K0GOcdcU; 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 S232416AbjGaMUk (ORCPT <rfc822;dengxinlin2429@gmail.com> + 99 others); Mon, 31 Jul 2023 08:20:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232303AbjGaMUc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 31 Jul 2023 08:20:32 -0400 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 8612C199F for <linux-kernel@vger.kernel.org>; Mon, 31 Jul 2023 05:20:16 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4fe2de785e7so2226357e87.1 for <linux-kernel@vger.kernel.org>; Mon, 31 Jul 2023 05:20:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690806014; x=1691410814; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=Gf3LmmIWrMau5faq7nlMlPKiUzu+qP0dMuprgORcSfE=; b=K0GOcdcUPKkJCrwm9ic7QHRzs26pamIeLtNk5RCHei5D6USQDdlP0KDljYOLhYu6lF DJ8hXefNOSNr3LEO8N2cmvF4IZ4sUQS/NzgOw0aYkJSPXQRy3rtpcyr6hhqrzJqwelRF 528mDua7HxjToYrkIgrkhTwRPv0TlthGuWp1Mkk2+Uxbk1hgex/HtBwzOD4qNvNrhJal CBpY0jiu53MiCyXWs1v6xBV1mxUvq83QjdA2wAlxJmCXeXXA6O/6mbzz9pEEHkJ27Nxx nwlYvcr662OVpWcxN+AypwXcFKrrwAyRq6aFVLYprmIijv9yq2hyQPS46Q8pbdrdtHhC j/Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690806014; x=1691410814; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Gf3LmmIWrMau5faq7nlMlPKiUzu+qP0dMuprgORcSfE=; b=hTf6oWHyzOP3G/hjVzv+bYsc1aYWU/N1/zVGuQpnXewn/G45lJhm8af0+JHx4v7u9v EkHd3NWTvtAEMpc++Icl7G3vYbQRNZTe1kfADMhDs/GtCUxF7gPkcDaWs9m4i5AEohTO sPThMrMaUJ5ORpBrfr93z9l+XL0VGJKVtg2n+y+enbLdkJysBn+uUj/BA/mM9DyZt6Ap Xp71G870XikdbxTH87vSlg3caW+LPunRjQTTRQijbjcI26BIsiJ3Vp3NCVUCD9fL/exA OssO9PuBhXOZ2TvlCbfVvEhAYPzcdjWaMmcV0t4JA4uncjWttQcsADaJKIMp09eL5txv +HcQ== X-Gm-Message-State: ABy/qLa10BcyNuvEJ/v+95JGMKq5qro4KGOUk3rs1So0xsKf2UPBN8Ao i0Ye4H4cqx5MycL22dYNrCNMjjKxnOsHJuj5IVjQwQ== X-Received: by 2002:a05:6512:360a:b0:4fe:de3:9fd1 with SMTP id f10-20020a056512360a00b004fe0de39fd1mr4731653lfs.36.1690806014533; Mon, 31 Jul 2023 05:20:14 -0700 (PDT) Received: from [192.168.1.101] (abyk53.neoplus.adsl.tpnet.pl. [83.9.30.53]) by smtp.gmail.com with ESMTPSA id u9-20020a056512040900b004fe11366146sm2079096lfk.51.2023.07.31.05.20.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 05:20:13 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Subject: [PATCH 0/2] Set PCNoC clk always-on, with or without interconnect Date: Mon, 31 Jul 2023 14:20:11 +0200 Message-Id: <20230731-topic-pcnoc-v1-0-452dd36d11d7@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAPumx2QC/x2N0QqDMAwAf0XyvIBtHbr9yvChxkwDkpZWx0D89 4U93sFxJ1QuwhWezQmFP1IlqYG7NUBr1IVRZmPwrQ9tHxzuKQthJk2E8+Aesetd8PcOrJhiZZx KVFqt0WPbTObCb/n+F6/xun4pYsrrcgAAAA== To: Bjorn Andersson <andersson@kernel.org>, Andy Gross <agross@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org> Cc: Marijn Suijten <marijn.suijten@somainline.org>, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1690806013; l=885; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=DpM74YJFMGMq7VqXTxFkzlshoHNLJraxbS0yzf7ueLo=; b=P3thT/6NZIx2XNQm85ENg0Oe3UkQyRtif7N93V4ggDQwUhQWUuV7SJViO2+qU4A5UC0HyxOtR vKnaGz2QSSrAdzJQeV08VdXp++xFIjKTshmAF4KMIOWDv5du/o3pB+S 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772942389435990539 X-GMAIL-MSGID: 1772942389435990539 |
Series |
Set PCNoC clk always-on, with or without interconnect
|
|
Message
Konrad Dybcio
July 31, 2023, 12:20 p.m. UTC
The PCNoC clock needs to always have some sort of a vote hanging onto
it, so long as the AP is alive. Some platforms guarantee that through
the interconnect driver, while others (that register the PCNoC clk
with the clock framework) don't, which results in a big kaboom and
force reboot when trying to suspend that clock.
Solve the issue for the latter group.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
Konrad Dybcio (2):
clk: qcom: smd-rpm: Add a way to define bus clocks with rate and flags
clk: qcom: smd-rpm: Set XO rate and CLK_IS_CRITICAL on PCNoC
drivers/clk/qcom/clk-smd-rpm.c | 25 ++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)
---
base-commit: ec89391563792edd11d138a853901bce76d11f44
change-id: 20230731-topic-pcnoc-d819a4713254
Best regards,