Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26574508rwd; Mon, 3 Jul 2023 11:34:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlH6VSNvfrZj3Y1we49JOLhYiA5F1m+gQKgBLcjLZSexdbSJW6Bn4jWHl+HB+TkplOEvJtjM X-Received: by 2002:a05:6870:ab8d:b0:1aa:19fb:df64 with SMTP id gs13-20020a056870ab8d00b001aa19fbdf64mr11876854oab.54.1688409245884; Mon, 03 Jul 2023 11:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688409245; cv=none; d=google.com; s=arc-20160816; b=xwJ+RJ4rNPrGJiTYy5TYBt8zXMGeADyN1hNtBKgUk+LWfw5WA+RAYTfvzYWt6fDMst SzERxsAzKQS9Ww6wwrYipFVvYS1SZ3Vax38n87mJhWgPb/7xaMzT0dqil+h+/jzK0x1u Zi0qR1gDS+/fhyYQeJIKeDUEU6fcGNhnYXTIwMIVClfAtm0eAfz8288LKlhE5wmg6IVq B2man7xsNlo8SqU39tc3Mcv6wpMYJvLwGLWCYsAPdwlvwApzPwnuhDiOdwLmBcEqPVI7 5CzIWCHmND5qusdf0fFSxnPF9cir4zTgZJVeiDENgMPLhtmRzjlbmqKBANL6Q/UHtNyU 4f9w== 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=Qt7V3UlchNnOxeTA5rMeaxcrjkQGtjZo+XDYRU++2Ls=; fh=qlMPOal/Qkg2LQpocX7vYbzTtdVFSj3bgc1rELmt3A8=; b=AmfSp2Kzk4vNliRDAcOEgnaJTSCSewrT6tL+Gj9hs+1BstG79ubw2LSDuLedIBf+B8 WTjEIh9+vhHfSJHWmkA4jc4HAEMrjnK8yk9CdJlvNupRhlW3jqYXlJemlO5BJyDmC2uW 4yQaM/kKCbqaHN6snrxdLjvtTrdzkodBNFNKemrsG5n7ZuRcch+jvHoeydGIFHvZQEzR BX1g16Ck9GEiGjpUccx1O8j/jNlb3RpdoHj2YHOINxbLuXzw/803TIJq4m3b1MOUa/kl 8fUW6GXkkOexRWqGRHJq+CbHG33/t3SHbN3Y+kcB75im5rrcGKLEo46mnRBxfQpFTqSw uH5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vpv3etGn; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s61-20020a17090a2f4300b0025c02c13dfbsi21117393pjd.100.2023.07.03.11.33.50; Mon, 03 Jul 2023 11:34:05 -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=vpv3etGn; 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 S231211AbjGCSUh (ORCPT + 99 others); Mon, 3 Jul 2023 14:20:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231230AbjGCSUX (ORCPT ); Mon, 3 Jul 2023 14:20:23 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE0D7E6A for ; Mon, 3 Jul 2023 11:20:19 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b69f1570b2so79430141fa.0 for ; Mon, 03 Jul 2023 11:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688408418; x=1691000418; 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=Qt7V3UlchNnOxeTA5rMeaxcrjkQGtjZo+XDYRU++2Ls=; b=vpv3etGnXrrEh35dcbEHYW1nSyzFNZEy/767Pgh23Vnu80xCW8YURIg24i292S2E7I jrQ8RX+QYccHX+6ADW0dXKmvV/zz18cPkqaimQb/IPky3Xo7/HSbnbgrbdf46ZgbM0pa hD1BcT8M6RXz21wKPk21BEEGEMdd99Zx6Av+pp0LyAz/3I+2NrEcWZSEdrzPJhyKPeTy accz4U/BiVbEN2XG4TdertR42GI48Qyx5Yn7CN96aPz5uktTO/nPL/viWzIj5W9wACif PxfxXSslREtYASdLoEdSkMjFb0+rp4Xrp61Z45h2LyFPuMguxFEgdVQnisbWiWWJbbrB Rk1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688408418; x=1691000418; 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=Qt7V3UlchNnOxeTA5rMeaxcrjkQGtjZo+XDYRU++2Ls=; b=dARYf8hKsT3jyjzc2rGqbjaTjQ6mYd/AQrOexkNuzlRUDApfkgVBF9eBhGx4KWBf4+ L88krTAvqM6PvMNtHWjZaWgBSeVBprn8Tqw9vuom3cH7uhSRZvJB7/VZCK6oAqmQ1OR7 cOxTIlJi2O8OjsnuNZUOca55hRJkIyd4pMSn1KbMGz7tD1w7+CSdwPJno50kn72Fn7hy PQ2Kh0vVeJkE/DSC85YNsIWkjMLo7qnu95dqPQtn44YJ9D6l1HUjVKx0Hj9loDzAsjsA 6CtoOIlc+3v//5VXI4g1JTUnBHabm7lEzhhl8/inXlGOVNWYj3ONgcaqttPEmq4UCseM FIng== X-Gm-Message-State: ABy/qLb9usBfnY3dhQNj+eF5LxTyYQVfeLeLbW0uFtVyKyLeg20R/U6G 51IaQA7WsH00W+DmXvyxvVDBbw== X-Received: by 2002:a2e:9059:0:b0:2b6:9909:79cb with SMTP id n25-20020a2e9059000000b002b6990979cbmr8308978ljg.42.1688408417855; Mon, 03 Jul 2023 11:20:17 -0700 (PDT) Received: from [192.168.1.101] (abyj26.neoplus.adsl.tpnet.pl. [83.9.29.26]) by smtp.gmail.com with ESMTPSA id s9-20020a2e9c09000000b002b6995f38a2sm4946224lji.100.2023.07.03.11.20.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 11:20:17 -0700 (PDT) From: Konrad Dybcio Date: Mon, 03 Jul 2023 20:20:10 +0200 Subject: [PATCH v2 6/8] clk: qcom: gcc-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: <20230622-topic-8998clk-v2-6-6222fbc2916b@linaro.org> References: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> In-Reply-To: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jeffrey Hugo , Taniya Das Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688408407; l=1472; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=viesbfDPZKW9ahGiPob2JBLSqZxiLZQDZKyuYqbzZTo=; b=ISB50XHa+GvfrRMOqhYdMo/UVo1dJsdoFWkSeQP1LpOycDTxnSvD3Uk7LzgTPleZL750EOjEM wY5p0o2x5bFDrPaT2fUtoswPpgixUEuOBZ1XrhPD9XifJHjRvie6ZE+ 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 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: X-Mailing-List: linux-kernel@vger.kernel.org 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. Reviewed-by: Jeffrey Hugo Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-msm8998.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8998.c b/drivers/clk/qcom/gcc-msm8998.c index cccb19cae481..ef410f52f09f 100644 --- a/drivers/clk/qcom/gcc-msm8998.c +++ b/drivers/clk/qcom/gcc-msm8998.c @@ -2112,7 +2112,7 @@ static struct clk_branch gcc_gp3_clk = { static struct clk_branch gcc_bimc_gfx_clk = { .halt_reg = 0x46040, - .halt_check = BRANCH_HALT, + .halt_check = BRANCH_HALT_SKIP, .clkr = { .enable_reg = 0x46040, .enable_mask = BIT(0), @@ -2125,7 +2125,7 @@ static struct clk_branch gcc_bimc_gfx_clk = { static struct clk_branch gcc_gpu_bimc_gfx_clk = { .halt_reg = 0x71010, - .halt_check = BRANCH_HALT, + .halt_check = BRANCH_HALT_SKIP, .clkr = { .enable_reg = 0x71010, .enable_mask = BIT(0), @@ -2151,7 +2151,7 @@ static struct clk_branch gcc_gpu_bimc_gfx_src_clk = { static struct clk_branch gcc_gpu_cfg_ahb_clk = { .halt_reg = 0x71004, - .halt_check = BRANCH_HALT, + .halt_check = BRANCH_HALT_SKIP, .clkr = { .enable_reg = 0x71004, .enable_mask = BIT(0), -- 2.41.0