[v2,14/22] interconnect: qcom: msm8939: Hook up RPM bus clk definitions

Message ID 20230526-topic-smd_icc-v2-14-e5934b07d813@linaro.org
State New
Headers
Series Restructure RPM SMD ICC |

Commit Message

Konrad Dybcio June 9, 2023, 8:19 p.m. UTC
  Assign the necessary definitions to migrate to the new bus clock
handling mechanism.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 drivers/interconnect/qcom/msm8939.c | 4 ++++
 1 file changed, 4 insertions(+)
  

Comments

Stephan Gerhold June 10, 2023, 12:02 p.m. UTC | #1
On Fri, Jun 09, 2023 at 10:19:19PM +0200, Konrad Dybcio wrote:
> Assign the necessary definitions to migrate to the new bus clock
> handling mechanism.
> 
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Reviewed-by: Stephan Gerhold <stephan@gerhold.net>

> ---
>  drivers/interconnect/qcom/msm8939.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/interconnect/qcom/msm8939.c b/drivers/interconnect/qcom/msm8939.c
> index 639566dce45a..94b11b590a8e 100644
> --- a/drivers/interconnect/qcom/msm8939.c
> +++ b/drivers/interconnect/qcom/msm8939.c
> @@ -1284,6 +1284,7 @@ static const struct qcom_icc_desc msm8939_snoc = {
>  	.type = QCOM_ICC_NOC,
>  	.nodes = msm8939_snoc_nodes,
>  	.num_nodes = ARRAY_SIZE(msm8939_snoc_nodes),
> +	.bus_clk_desc = &bus_1_clk,
>  	.regmap_cfg = &msm8939_snoc_regmap_config,
>  	.qos_offset = 0x7000,
>  };
> @@ -1304,6 +1305,7 @@ static const struct qcom_icc_desc msm8939_snoc_mm = {
>  	.type = QCOM_ICC_NOC,
>  	.nodes = msm8939_snoc_mm_nodes,
>  	.num_nodes = ARRAY_SIZE(msm8939_snoc_mm_nodes),
> +	.bus_clk_desc = &bus_2_clk,
>  	.regmap_cfg = &msm8939_snoc_regmap_config,
>  	.qos_offset = 0x7000,
>  };
> @@ -1332,6 +1334,7 @@ static const struct qcom_icc_desc msm8939_bimc = {
>  	.type = QCOM_ICC_BIMC,
>  	.nodes = msm8939_bimc_nodes,
>  	.num_nodes = ARRAY_SIZE(msm8939_bimc_nodes),
> +	.bus_clk_desc = &bimc_clk,
>  	.regmap_cfg = &msm8939_bimc_regmap_config,
>  	.qos_offset = 0x8000,
>  };
> @@ -1403,6 +1406,7 @@ static const struct qcom_icc_desc msm8939_pcnoc = {
>  	.type = QCOM_ICC_NOC,
>  	.nodes = msm8939_pcnoc_nodes,
>  	.num_nodes = ARRAY_SIZE(msm8939_pcnoc_nodes),
> +	.bus_clk_desc = &bus_0_clk,
>  	.regmap_cfg = &msm8939_pcnoc_regmap_config,
>  	.qos_offset = 0x7000,
>  };
> 
> -- 
> 2.41.0
>
  

Patch

diff --git a/drivers/interconnect/qcom/msm8939.c b/drivers/interconnect/qcom/msm8939.c
index 639566dce45a..94b11b590a8e 100644
--- a/drivers/interconnect/qcom/msm8939.c
+++ b/drivers/interconnect/qcom/msm8939.c
@@ -1284,6 +1284,7 @@  static const struct qcom_icc_desc msm8939_snoc = {
 	.type = QCOM_ICC_NOC,
 	.nodes = msm8939_snoc_nodes,
 	.num_nodes = ARRAY_SIZE(msm8939_snoc_nodes),
+	.bus_clk_desc = &bus_1_clk,
 	.regmap_cfg = &msm8939_snoc_regmap_config,
 	.qos_offset = 0x7000,
 };
@@ -1304,6 +1305,7 @@  static const struct qcom_icc_desc msm8939_snoc_mm = {
 	.type = QCOM_ICC_NOC,
 	.nodes = msm8939_snoc_mm_nodes,
 	.num_nodes = ARRAY_SIZE(msm8939_snoc_mm_nodes),
+	.bus_clk_desc = &bus_2_clk,
 	.regmap_cfg = &msm8939_snoc_regmap_config,
 	.qos_offset = 0x7000,
 };
@@ -1332,6 +1334,7 @@  static const struct qcom_icc_desc msm8939_bimc = {
 	.type = QCOM_ICC_BIMC,
 	.nodes = msm8939_bimc_nodes,
 	.num_nodes = ARRAY_SIZE(msm8939_bimc_nodes),
+	.bus_clk_desc = &bimc_clk,
 	.regmap_cfg = &msm8939_bimc_regmap_config,
 	.qos_offset = 0x8000,
 };
@@ -1403,6 +1406,7 @@  static const struct qcom_icc_desc msm8939_pcnoc = {
 	.type = QCOM_ICC_NOC,
 	.nodes = msm8939_pcnoc_nodes,
 	.num_nodes = ARRAY_SIZE(msm8939_pcnoc_nodes),
+	.bus_clk_desc = &bus_0_clk,
 	.regmap_cfg = &msm8939_pcnoc_regmap_config,
 	.qos_offset = 0x7000,
 };