mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
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 9caf2d956c ("interconnect: qcom:
msm8974: Don't boost the NoC rate during boot").
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://msgid.link/20260324-msm8974-icc-v2-4-527280043ad8@oss.qualcomm.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>
This commit is contained in:
parent
b8498af901
commit
fba5454ef5
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user