From patchwork Tue May 30 10:20:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 100736 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2075629vqr; Tue, 30 May 2023 03:27:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Lu6mmQepXiDCTC+g0MShLqK0t41BNrXMhQyKbEyrtYq7gHI+VoPL22QFEG5NXKW8PWgnf X-Received: by 2002:a05:6a20:c704:b0:10e:e891:534 with SMTP id hi4-20020a056a20c70400b0010ee8910534mr1949928pzb.58.1685442425620; Tue, 30 May 2023 03:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685442425; cv=none; d=google.com; s=arc-20160816; b=M1pbtjMK1aJKUkItuC7pXzv7pZ7OF2UqMEHhE+dI5DJfzkAvq89fPXgaCIagkXGTuj z+lIEMT2vprtV6pTZGn99VuU7LW7aQ8EiiwbaxEdNQJm4BRSoEiWN1grbzc+cxmlwNco FP3U0dC+Gb9i9pT3d41vt13APS4gvComkrtsago00wDH65lyfwqDp/NS7KmBS45JddPD MN3ZY3WN7hph7qeLTPXXyGwpkW6KAHQQ9MOC5jXWGaNA+vD8Mu97akgjD0nfcrZfBTG+ Ymeon+7OM1MCvWvbJmyD471SwE2LeGVaHesSLRDTl2kPJYDyCmxFSYWRykGMhJ0SdNLz ByAw== 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=uPsObl2eYSl57hf5e5vm23MgLVAf+ptSP7UWMFS0yPo=; b=G++cbQwlOeIJq3XIWktWq0iZ+2S64jxshqbH4F+v3AUcvEXGM/AFZHEy0q87LacxhG dgOjQ40BSzwdyrN/QxqFs8wx/W62ouapJYWFC5GpKjUttwkCXlVA2J4hNuWgER28ihKR nOlu7KkqCy6fyZhoIe/It2RAoSU97dPaPuI83PBNmJMme3kz0OAXgkY3lf0JGUCzUGi2 BXZRoRZBI389TFCaRuHuKo8nclSKbr1SS+WfjN2n3pgWYAd4BugK8u0nLBH8VSwilB5H Iu+GYpsmbbOv9IS0UYgFzFIsGfC/Wc/CVd6a1O/RPrY1SC0Rxw6Fi/mRd9ncUlp47q8m BfXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GCk1DfL2; 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 o25-20020a637319000000b0050bea5bf413si11314429pgc.705.2023.05.30.03.26.35; Tue, 30 May 2023 03:27: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=GCk1DfL2; 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 S231547AbjE3KWN (ORCPT + 99 others); Tue, 30 May 2023 06:22:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230024AbjE3KVG (ORCPT ); Tue, 30 May 2023 06:21:06 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53EB9E45 for ; Tue, 30 May 2023 03:20:26 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f50470d77cso1929872e87.0 for ; Tue, 30 May 2023 03:20:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685442024; x=1688034024; 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=uPsObl2eYSl57hf5e5vm23MgLVAf+ptSP7UWMFS0yPo=; b=GCk1DfL2fR9t/b7umBJBdnOvjrJ/TffAQUWuIHBKjt/DjKcu112buWgxQ/LJqezHLg F46c/5aNA8YqUo2xe/0V8OWlIJwXxvgoOisTYJ+Uzbv/GCs1uY3h0GfJgP5LdyhhGyml Y+ZdhuaZZPZgnRrpEqT17+VWDqYxRSEphbkQHOnAT/dzR774ShybNVqr37UIkOIXeE4S +U9hlTTAcKgIwFvjOau/FV54KDT0ceqw5MDRnOKDiPoJ7kcM2dQq0JAlbzIk/g7+pTVI w2tlAjfp6aqPJKeuR+EqgYYiAJM2DqL435PKRDZ0Hy2FOCC4j3UTeuTXrVtMvSq5gXqI aSSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685442024; x=1688034024; 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=uPsObl2eYSl57hf5e5vm23MgLVAf+ptSP7UWMFS0yPo=; b=T2p8LOaPNkFn1m9N7xfO8KSCGJiaea2A7JCXGVIt36PJpAoUAXoHGA+iNbQ+ycKhJi xC1sAmr0n54ICHdVwuRJvfU30pMwur4cfTdgGh/6zmPYvgVJkN3nHwRId3oQRy229acp eT/x2S6DhVIkb0EGGpjOEfwg7dxEHiUXTm/Rjnbm05rN5COg/9atvk6hoiGgRH7dKUST h3+0tSM411yYgU/tn7VKrofWS0y7uGa4gb3YjGmIDM5pXB0u5mTUz4SwO5yRFH2q99Zk 2RiWgvB7AQAqqOKWr6rZZYSvuAvn8T82xpjl99puwGX7DgQdBhBd2LcLbnr/0FcFbsSJ 8oOw== X-Gm-Message-State: AC+VfDyvH16ZgtU0szLj+zH/iqnGqVtGLdx4y0ioH1Wuomf02n+V1SoQ ZhrXDa8COuKq6Yldgfz2eYKPhA== X-Received: by 2002:ac2:5ec8:0:b0:4f1:496a:de8e with SMTP id d8-20020ac25ec8000000b004f1496ade8emr545614lfq.27.1685442024386; Tue, 30 May 2023 03:20:24 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id c25-20020ac24159000000b004cc8196a308sm290902lfi.98.2023.05.30.03.20.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 03:20:24 -0700 (PDT) From: Konrad Dybcio Date: Tue, 30 May 2023 12:20:15 +0200 Subject: [PATCH 16/20] interconnect: qcom: qcm2290: Hook up RPM bus clk definitions MIME-Version: 1.0 Message-Id: <20230526-topic-smd_icc-v1-16-1bf8e6663c4e@linaro.org> References: <20230526-topic-smd_icc-v1-0-1bf8e6663c4e@linaro.org> In-Reply-To: <20230526-topic-smd_icc-v1-0-1bf8e6663c4e@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Georgi Djakov , Leo Yan , Evan Green Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685442001; l=2327; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=AUnOBPS3NkcXCeAuiWAp3wlQXXz7ZJbGDI1WK0MkbBw=; b=mLVX0sFuQDPC2wh7J2YOL5ld7fn2UowkaahJmgkTbqaWoLJxCQZDC0Fla4quzPPDLOJp4TM90 Y3vaMNbw5x6C1yknb9hhIeXRjjCD50gwSrF5PLDrDmqUwmqXl7BZQRK 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=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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767314476802633178?= X-GMAIL-MSGID: =?utf-8?q?1767314476802633178?= Assign the necessary definitions to migrate to the new bus clock handling mechanism. Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- drivers/interconnect/qcom/qcm2290.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/interconnect/qcom/qcm2290.c b/drivers/interconnect/qcom/qcm2290.c index cb636e67a5a4..2c7a76fab83c 100644 --- a/drivers/interconnect/qcom/qcm2290.c +++ b/drivers/interconnect/qcom/qcm2290.c @@ -1196,6 +1196,7 @@ static const struct qcom_icc_desc qcm2290_bimc = { .type = QCOM_ICC_BIMC, .nodes = qcm2290_bimc_nodes, .num_nodes = ARRAY_SIZE(qcm2290_bimc_nodes), + .bus_clk_desc = &bimc_clk, .regmap_cfg = &qcm2290_bimc_regmap_config, /* M_REG_BASE() in vendor msm_bus_bimc_adhoc driver */ .qos_offset = 0x8000, @@ -1251,6 +1252,7 @@ static const struct qcom_icc_desc qcm2290_cnoc = { .type = QCOM_ICC_NOC, .nodes = qcm2290_cnoc_nodes, .num_nodes = ARRAY_SIZE(qcm2290_cnoc_nodes), + .bus_clk_desc = &bus_1_clk, .regmap_cfg = &qcm2290_cnoc_regmap_config, }; @@ -1292,6 +1294,7 @@ static const struct qcom_icc_desc qcm2290_snoc = { .type = QCOM_ICC_QNOC, .nodes = qcm2290_snoc_nodes, .num_nodes = ARRAY_SIZE(qcm2290_snoc_nodes), + .bus_clk_desc = &bus_2_clk, .regmap_cfg = &qcm2290_snoc_regmap_config, /* Vendor DT node fab-sys_noc property 'qcom,base-offset' */ .qos_offset = 0x15000, @@ -1306,6 +1309,7 @@ static const struct qcom_icc_desc qcm2290_qup_virt = { .type = QCOM_ICC_QNOC, .nodes = qcm2290_qup_virt_nodes, .num_nodes = ARRAY_SIZE(qcm2290_qup_virt_nodes), + .bus_clk_desc = &qup_clk, }; static struct qcom_icc_node * const qcm2290_mmnrt_virt_nodes[] = { @@ -1319,6 +1323,7 @@ static const struct qcom_icc_desc qcm2290_mmnrt_virt = { .type = QCOM_ICC_QNOC, .nodes = qcm2290_mmnrt_virt_nodes, .num_nodes = ARRAY_SIZE(qcm2290_mmnrt_virt_nodes), + .bus_clk_desc = &mmaxi_0_clk, .regmap_cfg = &qcm2290_snoc_regmap_config, .qos_offset = 0x15000, }; @@ -1333,6 +1338,7 @@ static const struct qcom_icc_desc qcm2290_mmrt_virt = { .type = QCOM_ICC_QNOC, .nodes = qcm2290_mmrt_virt_nodes, .num_nodes = ARRAY_SIZE(qcm2290_mmrt_virt_nodes), + .bus_clk_desc = &mmaxi_1_clk, .regmap_cfg = &qcm2290_snoc_regmap_config, .qos_offset = 0x15000, };