Message ID | 20230531-topic-8998_mmssclk-v1-3-2b5a8fc90991@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2735497vqr; Wed, 31 May 2023 02:07:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7xp/r82gehhABGkkRV9h0wdZm66/6QrP66YsHOtjMLS0R6UQ2DsH6N7jto+cfc/T1z512p X-Received: by 2002:a17:90a:e64d:b0:246:5968:43f0 with SMTP id ep13-20020a17090ae64d00b00246596843f0mr4213937pjb.10.1685524078924; Wed, 31 May 2023 02:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685524078; cv=none; d=google.com; s=arc-20160816; b=0W0lQUBD8YQ+t4nbbloS680LCiUUj7Jsq8WifEEg8Ba4R7YJttV5cVveFx+9gKQwuw pEMS+oechwgrCnUfwO7jPi8tRhK0ESWFaxVvbGpc0nysPLcNUkDNGJIvZMPeNNCtKFlP ny5zEQ2czrMZRL7skGZdbygD/IGGbU5UD1Z5SEWRsMCjyLhRmqDphJFGd5BwTCTDfQIw TQzFQIWl9dYK4tbgg5i85KthvZ+bo60MdIOpEkL+w+9lgeCe3P6lbzPUIpF9D2fOfXzA CSFVqdHBCeGOUqXihHcfYPPG+M6ileJBw0JSM+bWELhf5PWhkIa7NOmZsmNexzJIl032 ItmQ== 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=7aNVVNs8eqPTnK0Wd32QsSw3ccebDUPM7FkJjTlItZ0=; b=oMTm5zGGCx4fAX9Iw5DKFyOGSymWuqlnbIW4UnB9vaahcqGMPOpqzMS9WsHJrnifCr YdvCuQrFtF3nfbfXD8gnbMPrq8KZChE8npI2KwJXXH4Sd2B10BlD1x7schRaoI21hkp9 yQK8UeCoFij3UxuM1zIjCklbjDSK+TZu/cnnNHcTdGuqswLDcueOrs5BU05tuhYTh0sz q+Knr8i7u8VpOgp+5Z6gZlKZo4i8JSrc3S1QufwZE050tKaRGC2XUdjBjcrBiCusA3wM WIHSqhU2S8AgUj3tBWUBrsebVLDAcHmaJ7rOOO9WMQCrf0CgBnT5stJ/3KvfrU0uxM+R pz2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DFpSVbtQ; 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 li7-20020a17090b48c700b002555b4bbb1asi622814pjb.1.2023.05.31.02.07.45; Wed, 31 May 2023 02:07:58 -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=DFpSVbtQ; 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 S235279AbjEaJBt (ORCPT <rfc822;callmefire3@gmail.com> + 99 others); Wed, 31 May 2023 05:01:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234798AbjEaJBh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 31 May 2023 05:01:37 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE7D110B for <linux-kernel@vger.kernel.org>; Wed, 31 May 2023 02:01:34 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2af2602848aso57796261fa.2 for <linux-kernel@vger.kernel.org>; Wed, 31 May 2023 02:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685523693; x=1688115693; 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=7aNVVNs8eqPTnK0Wd32QsSw3ccebDUPM7FkJjTlItZ0=; b=DFpSVbtQAJdLS9L1Z4OqaYcq3z5wqP/Kjvjeuvb8W/UeZIZorQUgGLC+Ou6/dnQ1nM ohoLJ9zLgJkTWJAMxcSCaNpOZtWkeLgsiJNUs27ZJDu+rrINp1NXX/c6x6kIBc8XA/OC DfW0bMObEptzREw96ago+o/OQi8DEvQdFiNqEIViGG22BCVMn4bBFuVjQZ5g4ozTwMPz PPO+Dim+F2EMU/Jdj7XeYbPd78tSHTVVHCKITOnFcwMvYC+gTYbIFpQHzREtsoDUuIWd wXAKmCcHaC+WyJiE/wOXAhfHruz47163E9SSHYmZ8MGBWXgRdKAD+a6U5pGW0xYVhYVb KiFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685523693; x=1688115693; 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=7aNVVNs8eqPTnK0Wd32QsSw3ccebDUPM7FkJjTlItZ0=; b=Ug8z+BlahyxG3IlOmQrmKnlZ39xJnMCaFuvqdNfv0cz+XXIda3D6z5JdrolZ37vuI5 ZNIFNi/NDFAq4R690CQ43JIrBHIfLB1OMDjBzXJAKS3xIHAGManW9SR3nsEyU5I+xlNc uoj7KiCH3XkqirYAgLoQ7Yyw9MhS8FTKvbd96ytqMLuaXzNPKOXDxvuVfB8gipEde9MM qcP1GVDv5t5PrFzlkFw1qfbx0Pdo18Egdl79omg4NHd4U29vkfT6Tbd8l0NX4EKWw6cY cxFefQqv/jTrEToyGiIKSNt1O4T7zR/x7qigme+uIf5aK/P60PAvxmYAh7L4wSjihAl7 OjnA== X-Gm-Message-State: AC+VfDwaE8NLydkRMIYndpg+ltv07DMvtx7FU3eokNOe1S30gtTRmfr6 xmWEBBlvhXENAEIFR8KNYirkNg== X-Received: by 2002:a2e:9810:0:b0:2a7:853e:a43 with SMTP id a16-20020a2e9810000000b002a7853e0a43mr2078686ljj.40.1685523692380; Wed, 31 May 2023 02:01:32 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id f4-20020a2e9184000000b002adbe01cd69sm3217446ljg.9.2023.05.31.02.01.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 02:01:32 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Wed, 31 May 2023 11:01:22 +0200 Subject: [PATCH 3/4] clk: qcom: mmcc-msm8998: Don't check halt bit on some branch clks MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230531-topic-8998_mmssclk-v1-3-2b5a8fc90991@linaro.org> References: <20230531-topic-8998_mmssclk-v1-0-2b5a8fc90991@linaro.org> In-Reply-To: <20230531-topic-8998_mmssclk-v1-0-2b5a8fc90991@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Jeffrey Hugo <jeffrey.l.hugo@gmail.com>, Imran Khan <kimran@codeaurora.org>, Rajendra Nayak <quic_rjendra@quicinc.com>, Joonwoo Park <joonwoop@codeaurora.org>, Jeffrey Hugo <jhugo@codeaurora.org> Cc: Marijn Suijten <marijn.suijten@somainline.org>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Jami Kettunen <jami.kettunen@somainline.org>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685523686; l=1355; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=bXqrPCtrvBWn269gLXl5t9pRQrXP7UP5yO8wMS9RYTM=; b=25wVDjm0aFKb9J+/7hjzG1PYk8SUins5HpBOIMcmo9kgItzdowE+W0TmGB+9j6TP2q68ZYpA9 hSNCtDfJkB2DBdHtrip8T/GzVMUqVT6C5BxHs3AWbECJ60y0iYexcZc 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: <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?1767400096688172696?= X-GMAIL-MSGID: =?utf-8?q?1767400096688172696?= |
Series |
MMCC MSM8998 fixes
|
|
Commit Message
Konrad Dybcio
May 31, 2023, 9:01 a.m. UTC
Some branch clocks are governed externally and we're only supposed to
send a request concerning their shutdown, not actually ensure it happens.
Use the BRANCH_HALT_SKIP define to skip checking the halt bit.
Fixes: d14b15b5931c ("clk: qcom: Add MSM8998 Multimedia Clock Controller (MMCC) driver")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
drivers/clk/qcom/mmcc-msm8998.c | 3 +++
1 file changed, 3 insertions(+)
Comments
On 5/31/2023 3:01 AM, Konrad Dybcio wrote: > Some branch clocks are governed externally and we're only supposed to > send a request concerning their shutdown, not actually ensure it happens. > > Use the BRANCH_HALT_SKIP define to skip checking the halt bit. > > Fixes: d14b15b5931c ("clk: qcom: Add MSM8998 Multimedia Clock Controller (MMCC) driver") > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
diff --git a/drivers/clk/qcom/mmcc-msm8998.c b/drivers/clk/qcom/mmcc-msm8998.c index 4490594bde69..9b98e0fb8b91 100644 --- a/drivers/clk/qcom/mmcc-msm8998.c +++ b/drivers/clk/qcom/mmcc-msm8998.c @@ -2453,6 +2453,7 @@ static struct clk_branch fd_ahb_clk = { static struct clk_branch mnoc_ahb_clk = { .halt_reg = 0x5024, + .halt_check = BRANCH_HALT_SKIP, .clkr = { .enable_reg = 0x5024, .enable_mask = BIT(0), @@ -2468,6 +2469,7 @@ static struct clk_branch mnoc_ahb_clk = { static struct clk_branch bimc_smmu_ahb_clk = { .halt_reg = 0xe004, + .halt_check = BRANCH_HALT_SKIP, .hwcg_reg = 0xe004, .hwcg_bit = 1, .clkr = { @@ -2485,6 +2487,7 @@ static struct clk_branch bimc_smmu_ahb_clk = { static struct clk_branch bimc_smmu_axi_clk = { .halt_reg = 0xe008, + .halt_check = BRANCH_HALT_SKIP, .hwcg_reg = 0xe008, .hwcg_bit = 1, .clkr = {