Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7781117rwl; Tue, 10 Jan 2023 05:26:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXus/olrMXsx1TnnEdZm7Opsb68WUZo/TVESxEzcDi1Znrt7CSRxz6nyyyYaDsnwL9edUMYm X-Received: by 2002:aa7:d646:0:b0:499:b4e4:8a83 with SMTP id v6-20020aa7d646000000b00499b4e48a83mr6393278edr.21.1673357210956; Tue, 10 Jan 2023 05:26:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673357210; cv=none; d=google.com; s=arc-20160816; b=qK63Wllp5V+APNzGWIFzCQ9YwiFMDGWTeJCjr4uwu65yDXyyuLd6UG9dA8FGQ/gjuR 9TEnEn91nQlH7DQnhcLYjPMTGQw7T7kgDbLWkA2qAqqIXiXWeIBj5ol6rgXWXAXlWkzQ DS/Hg0PdwWHUNy49S4BdMDWF7G3GNd+4Bg+bJcLRGOWI4EK6Xg2rZre0qlL/QoJwV7YN waqBgQZ+gnRLoAarQU39zBiRG8bnMGwHTEkQ90kHK3Tg0v1iNAFYnTYjPRBuEuCtfpL6 8iYlLtvoOd1LcssqmcPkaDDn7NrQZFlyJca1NTM29MEiR89vAIOLC1mW8jKmUaNOtFf/ DkVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eZfYbZm1wXQAsPKGM8KADSR1+axbDrBtf4PVKMnqTCU=; b=vKaP0cXB152C02WuZ5X+002KSI3m/aaj8Z+DZ46nPxtzCw+InEZk6TOLUjq8iR6ZSa clQFSiW/EsoRxvNP1lmjqi1+EKx2TFwZDqnO6WAG+wv185R8OwY+oCNfxYL1o4ekQHC5 Co8wJ3c1+ZJXHXsxau7qhiO2lZxVTWNIM+fNYCZpQDhzXgwSgAvMTYxuMwYND/r5N40+ pziqLLXH74J1S8/bsDJKfit5C9/dysy7Tk2YNLQOhMWCfmG2uBGUte7CUtZnU4PflVYl 7B33ZPVkiQIz5Y3LbE1iRtyHunKg2OU5M7sHnhY1wbvsBnIs7GbTpSixo3QJHP7WAeC+ +rQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m7nDLkP4; 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 n13-20020a05640205cd00b0048024f3aec4si1726330edx.617.2023.01.10.05.26.38; Tue, 10 Jan 2023 05:26:50 -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=m7nDLkP4; 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 S238396AbjAJNWl (ORCPT + 53 others); Tue, 10 Jan 2023 08:22:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233203AbjAJNWT (ORCPT ); Tue, 10 Jan 2023 08:22:19 -0500 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 EC0E21B9C9 for ; Tue, 10 Jan 2023 05:22:17 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id j17so18391812lfr.3 for ; Tue, 10 Jan 2023 05:22:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eZfYbZm1wXQAsPKGM8KADSR1+axbDrBtf4PVKMnqTCU=; b=m7nDLkP4C3gD5KGGjgopBy8GcD8SL/W+cN0LBtAdj5LW4o5iWGFhIW4839Db31Gqmh no1vUdMGC3k/RRUZOrNNFY0VQpH8CaGWd+9vXtPX90yRjBsWv3kRXAjDIy6KeATSWSoD fFjrsRol6YTRHc2czoR+N3IemqSkaOrP6qKdnHiYXfAuGN0zXpqnQfCTtrUdu2jb5L3o TqVCjFmVazUGSLM94QPAKEH3VM2tcrF1FWRNhd+1Ec4Ty4MKx2S9XKLKapijuiad0jAT hYEVAJKyOMgMHQaObomtEd8HCMV9aanfXehGWgDIzHfirXnOIeH3ZX7BIbSx9b0JCB9B FaLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eZfYbZm1wXQAsPKGM8KADSR1+axbDrBtf4PVKMnqTCU=; b=xoF9wB/ul8SmMDamVclR486JiVOk3/EOopogacuxAb6AW42oFNRCN2ACY6fJ44/Yc9 DaVG/tUvu3cFUNZGXLDnxCLYtBpQYqItH+ilIBySkcYnp7Swhw7k7vb3G6i/B6aKicId oBQmTSckj+Pm2oMRhPYjv1SAuvJvx0BNaYcw/xlYut+fpSoCZb9PEJJ6Emk0g0LB3YcP 9DEWx24mKqn/kny3J7y9IZXFkygXG9SAWbpLyKOrfUQA2kOLCkUFo3xabyrbE62Mg4Q+ TF//pg7n9HkvDmkPCc1HMOAU1i/vm3jIPDbpLEB1/GgnG1ghXAwpyoObC2L6Ay6xDsaH uOkg== X-Gm-Message-State: AFqh2kohhLEJdeTQHyMcafUQTL1MAK9hiZlfbGQCgmRlgxOnr/lZpxuL 5IzqxDQcdItDgANwRNKGV7lbzA== X-Received: by 2002:a05:6512:3f9c:b0:4b6:e4e7:624c with SMTP id x28-20020a0565123f9c00b004b6e4e7624cmr21336228lfa.0.1673356936310; Tue, 10 Jan 2023 05:22:16 -0800 (PST) Received: from localhost.localdomain (abxi45.neoplus.adsl.tpnet.pl. [83.9.2.45]) by smtp.gmail.com with ESMTPSA id w4-20020a19c504000000b004b5812207dbsm2183000lfe.201.2023.01.10.05.22.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 05:22:15 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, bryan.odonoghue@linaro.org, Konrad Dybcio , Georgi Djakov , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 06/10] interconnect: qcom: rpm: Rename icc desc clocks to bus_blocks Date: Tue, 10 Jan 2023 14:21:58 +0100 Message-Id: <20230110132202.956619-7-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230110132202.956619-1-konrad.dybcio@linaro.org> References: <20230110132202.956619-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 Rename the "clocks" (and _names) fields of qcom_icc_desc to "bus_clocks" in preparation for introducing handling of clocks that need to be enabled but not voted on with aggregate frequency. Signed-off-by: Konrad Dybcio --- drivers/interconnect/qcom/icc-rpm.c | 6 +++--- drivers/interconnect/qcom/icc-rpm.h | 4 ++-- drivers/interconnect/qcom/msm8996.c | 12 ++++++------ drivers/interconnect/qcom/sdm660.c | 8 ++++---- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/interconnect/qcom/icc-rpm.c b/drivers/interconnect/qcom/icc-rpm.c index 3207b4c99d04..80b5008c8b43 100644 --- a/drivers/interconnect/qcom/icc-rpm.c +++ b/drivers/interconnect/qcom/icc-rpm.c @@ -460,9 +460,9 @@ int qnoc_probe(struct platform_device *pdev) qnodes = desc->nodes; num_nodes = desc->num_nodes; - if (desc->num_clocks) { - cds = desc->clocks; - cd_num = desc->num_clocks; + if (desc->num_bus_clocks) { + cds = desc->bus_clocks; + cd_num = desc->num_bus_clocks; } else { cds = bus_clocks; cd_num = ARRAY_SIZE(bus_clocks); diff --git a/drivers/interconnect/qcom/icc-rpm.h b/drivers/interconnect/qcom/icc-rpm.h index b75e99fa08b8..206a7f8dab0c 100644 --- a/drivers/interconnect/qcom/icc-rpm.h +++ b/drivers/interconnect/qcom/icc-rpm.h @@ -91,8 +91,8 @@ struct qcom_icc_node { struct qcom_icc_desc { struct qcom_icc_node * const *nodes; size_t num_nodes; - const char * const *clocks; - size_t num_clocks; + const char * const *bus_clocks; + size_t num_bus_clocks; bool has_bus_pd; enum qcom_icc_type type; const struct regmap_config *regmap_cfg; diff --git a/drivers/interconnect/qcom/msm8996.c b/drivers/interconnect/qcom/msm8996.c index 25a1a32bc611..69fc50a6fa5c 100644 --- a/drivers/interconnect/qcom/msm8996.c +++ b/drivers/interconnect/qcom/msm8996.c @@ -1821,8 +1821,8 @@ static const struct qcom_icc_desc msm8996_a0noc = { .type = QCOM_ICC_NOC, .nodes = a0noc_nodes, .num_nodes = ARRAY_SIZE(a0noc_nodes), - .clocks = bus_a0noc_clocks, - .num_clocks = ARRAY_SIZE(bus_a0noc_clocks), + .bus_clocks = bus_a0noc_clocks, + .num_bus_clocks = ARRAY_SIZE(bus_a0noc_clocks), .has_bus_pd = true, .regmap_cfg = &msm8996_a0noc_regmap_config }; @@ -1866,8 +1866,8 @@ static const struct qcom_icc_desc msm8996_a2noc = { .type = QCOM_ICC_NOC, .nodes = a2noc_nodes, .num_nodes = ARRAY_SIZE(a2noc_nodes), - .clocks = bus_a2noc_clocks, - .num_clocks = ARRAY_SIZE(bus_a2noc_clocks), + .bus_clocks = bus_a2noc_clocks, + .num_bus_clocks = ARRAY_SIZE(bus_a2noc_clocks), .regmap_cfg = &msm8996_a2noc_regmap_config }; @@ -2005,8 +2005,8 @@ static const struct qcom_icc_desc msm8996_mnoc = { .type = QCOM_ICC_NOC, .nodes = mnoc_nodes, .num_nodes = ARRAY_SIZE(mnoc_nodes), - .clocks = bus_mm_clocks, - .num_clocks = ARRAY_SIZE(bus_mm_clocks), + .bus_clocks = bus_mm_clocks, + .num_bus_clocks = ARRAY_SIZE(bus_mm_clocks), .regmap_cfg = &msm8996_mnoc_regmap_config }; diff --git a/drivers/interconnect/qcom/sdm660.c b/drivers/interconnect/qcom/sdm660.c index 8d879b0bcabc..a22ba821efbf 100644 --- a/drivers/interconnect/qcom/sdm660.c +++ b/drivers/interconnect/qcom/sdm660.c @@ -1516,8 +1516,8 @@ static const struct qcom_icc_desc sdm660_a2noc = { .type = QCOM_ICC_NOC, .nodes = sdm660_a2noc_nodes, .num_nodes = ARRAY_SIZE(sdm660_a2noc_nodes), - .clocks = bus_a2noc_clocks, - .num_clocks = ARRAY_SIZE(bus_a2noc_clocks), + .bus_clocks = bus_a2noc_clocks, + .num_bus_clocks = ARRAY_SIZE(bus_a2noc_clocks), .regmap_cfg = &sdm660_a2noc_regmap_config, }; @@ -1659,8 +1659,8 @@ static const struct qcom_icc_desc sdm660_mnoc = { .type = QCOM_ICC_NOC, .nodes = sdm660_mnoc_nodes, .num_nodes = ARRAY_SIZE(sdm660_mnoc_nodes), - .clocks = bus_mm_clocks, - .num_clocks = ARRAY_SIZE(bus_mm_clocks), + .bus_clocks = bus_mm_clocks, + .num_bus_clocks = ARRAY_SIZE(bus_mm_clocks), .regmap_cfg = &sdm660_mnoc_regmap_config, }; -- 2.39.0