Commit fba5454e authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Georgi Djakov
Browse files

interconnect: qcom: icc-rpm: allow overwriting get_bw callback



MSM8974 requires a separate get_bw callback, since on that platform
increasing the clock rate for some of the NoCs during boot may lead to
hangs. For the details see commit 9caf2d95 ("interconnect: qcom:
msm8974: Don't boost the NoC rate during boot").

Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://msgid.link/20260324-msm8974-icc-v2-4-527280043ad8@oss.qualcomm.com


Signed-off-by: default avatarGeorgi Djakov <djakov@kernel.org>
parent b8498af9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -553,6 +553,7 @@ int qnoc_probe(struct platform_device *pdev)
	provider->aggregate = qcom_icc_bw_aggregate;
	provider->xlate_extended = qcom_icc_xlate_extended;
	provider->data = data;
	provider->get_bw = desc->get_bw;

	icc_provider_init(provider);

+1 −0
Original line number Diff line number Diff line
@@ -135,6 +135,7 @@ struct qcom_icc_desc {
	unsigned int qos_offset;
	u16 ab_coeff;
	u16 ib_coeff;
	int (*get_bw)(struct icc_node *node, u32 *avg, u32 *peak);
};

/* Valid for all bus types */