From patchwork Tue Aug 8 09:44: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: 132980 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2462622vqr; Tue, 8 Aug 2023 16:48:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHHDStMhq3WGeDjpRHZ6Is1xs5ylSZnvmPOeKX4aV4D30fkMwVEm0u0jrGvkkj5gSU1UA9e X-Received: by 2002:a17:906:3102:b0:982:c69c:8c30 with SMTP id 2-20020a170906310200b00982c69c8c30mr760876ejx.55.1691538511557; Tue, 08 Aug 2023 16:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691538511; cv=none; d=google.com; s=arc-20160816; b=wd3xC5K6ho/ap2EW+fy3elv2eS+SZ6HDhiBdsV9n2IRWEND8W06ywQuksUFVY7thKY TMti/luPz60MzwtVGd+kT05xk37k1l5UADEizhLCJcvHcESaFiThzk8vSzr2UAMBpTwE 9teN0WePtYC2nTx5b+qTPUScdtmpWe8TC1ySFMo/HsEnqmIV3nlxBpB2PGrfT/CyuPai 2Yc1guux1gn/EbAY+yJeqywgMTn3KiEqCAxlXK8TZAWYrKD0tP5rMC31ska0LJ+DUCq6 5/OA/zB0Q7WbkcAcAnVLo0pwegY0/PmKrJJn3M76uHDiVTS9rnTE+yMOWqdYt7m/W89G StVg== 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=TJRcX7l83GzG4nljjiXsSgTVORkCZorOu6CVVdtQF3E=; fh=VohwHOOqzSlyJV69dvs7BsalUDFtNFz6jeRDBhhLiNI=; b=fK0H7GEcBvZ2F1dMlz6MSvq2FIkve/Lp5zK0kqCU/NETFpoFgyXjJd5NpttkjGHnu9 N3hySBp+Ewio0+jTfJSzp5zruulmucceU4jLtAeEJwjD7lnr3Gu6QiDBMKt8mF3EgdKL LDdOLFbFawyvzTcebQSd2rgnq0+XB2wx2aSaLSleSI5uyMR2tLtTTSwv2SBez/b12D2n rkxJWEYIGzwWl0nwlOmm8WNHloS2vUYHD+60GFta3Tb7T6ZmHRCwtUr2eADpGI9VWQFG Mx9qm3GM9hhBcbCqAg07hgN1WNtx7JTh4ND3ZVhvniCQp/pJEh0Oizx26D7dpEGRn7v2 r4SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lhP8jaID; 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 c25-20020a170906529900b0099ce38da75csi3064401ejm.1002.2023.08.08.16.47.57; Tue, 08 Aug 2023 16:48:31 -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=lhP8jaID; 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 S232725AbjHHTo6 (ORCPT + 99 others); Tue, 8 Aug 2023 15:44:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236513AbjHHToi (ORCPT ); Tue, 8 Aug 2023 15:44:38 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AACC116B2E for ; Tue, 8 Aug 2023 09:48:26 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4fe15bfb1adso9799287e87.0 for ; Tue, 08 Aug 2023 09:48:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691513304; x=1692118104; 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=TJRcX7l83GzG4nljjiXsSgTVORkCZorOu6CVVdtQF3E=; b=lhP8jaID/32H118Cq0phMy24SFxRTSvvSLxdnpi45ud1vWWqGs2G1wYKPFtGcs24M9 PKZIxBdXtssstD/lUFVmt/f+jDHMgQ/uZ3aEe5Q2IW0m1IbSX0vtwCg2wgka/WsHWVRG lLRvag2OuLkFJ0HsYtFqYai55/teKxg6n7PsdKAX7fPBq2F6MB8FhCaRiD/XgTGhBLlz 5wYJJfCdcm6RT4ahT8CH7ETkqqoF5rQliwnYnHiyEKQb+gRVUF4XsxOMhdFG+dhoI//V nqVSQU1qazf9QBNdnjMZbLTgXrCqr//iRbSBu484rtrDbJ4VifeJzBOsKexRXRuazUII qhOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691513304; x=1692118104; 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=TJRcX7l83GzG4nljjiXsSgTVORkCZorOu6CVVdtQF3E=; b=ZqLM9+MrKxTqQaQEjTLxKurtJT7B0rIxO+a5Azkmdf3CFaeUhdeEFwAZsMmV71waaT HXSglac/hlAzXBOFyOvoV8/aPTDsEr2L25hzq34x3S8+yP2fgB7GsGE5O31S6oM30OFP tAIWn7CQ1nj6TfG8btXaZfwY5H5HAJilKZGXiRc6FQ0ptEYnQX4G0N1qu8Dcw9OlqzlM wbolq1rqGHFMHBhv/ZoppKwHrXY2VzMcnMwIUTs6R8aPdSXcRvgZYIhDFMSg5ptv+U21 qAnXUU49SPEYnc9VZUuzyYyH4sk4wydwAs3gp48LoUCl9s2KSekg8qQ5su2gGZMaWmX2 fIsA== X-Gm-Message-State: AOJu0YxfAEL8+32sm3RCp73cOZpA/7nNq1szZa7nlSIao+UnsKccJ29C +k4Zvy8IpjLTY89bdxBZmvyO2YaQjZO/O6Oi5Rg= X-Received: by 2002:a05:6512:39c3:b0:4fb:89e3:5ac6 with SMTP id k3-20020a05651239c300b004fb89e35ac6mr9893926lfu.62.1691487893637; Tue, 08 Aug 2023 02:44:53 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id i6-20020a056512006600b004fdba93b92asm1818884lfo.252.2023.08.08.02.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 02:44:53 -0700 (PDT) From: Konrad Dybcio Date: Tue, 08 Aug 2023 11:44:43 +0200 Subject: [PATCH v2 3/6] clk: qcom: gcc-msm8998: Don't check halt bit on some branch clks MIME-Version: 1.0 Message-Id: <20230531-topic-8998_mmssclk-v2-3-34273e275c51@linaro.org> References: <20230531-topic-8998_mmssclk-v2-0-34273e275c51@linaro.org> In-Reply-To: <20230531-topic-8998_mmssclk-v2-0-34273e275c51@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , AngeloGioacchino Del Regno , Michael Turquette , Stephen Boyd , Jeffrey Hugo , Imran Khan , Rajendra Nayak , Joonwoo Park , Jeffrey Hugo , Will Deacon , Robin Murphy , Joerg Roedel , Jeffrey Hugo Cc: Marijn Suijten , Dmitry Baryshkov , Jami Kettunen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691487885; l=1627; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=4vcJD39xmmwGxR16do/vEynX3nfOkYLGbzSw65dGFMA=; b=t/2b5DxWk6eOZxBSMoG1WvSgfjtXnl9wcFAwd+sra0DiGErD9S3YZpkCbKjr1qwJdtT7FY3gv IJZo/StB+T4CsgBs40j0+BPJSYBAKHNwSKgL7MrSPgapI+FCbOr3UJU 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,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773706686139694132 X-GMAIL-MSGID: 1773706686139694132 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: db2c7c0a04b1 ("clk: qcom: Add missing msm8998 gcc_bimc_gfx_clk") Fixes: b5f5f525c547 ("clk: qcom: Add MSM8998 Global Clock Control (GCC) driver") 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 1ba516a0c0f3..257b27d8eeb6 100644 --- a/drivers/clk/qcom/gcc-msm8998.c +++ b/drivers/clk/qcom/gcc-msm8998.c @@ -2060,7 +2060,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), @@ -2073,7 +2073,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), @@ -2099,7 +2099,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),