Skip to content

Commit 0f221a7

Browse files
author
Georgi Djakov
committed
interconnect: qcom: sdm845: Init BCMs before creating the nodes
Currently if we use sync_state, by default the bandwidth is maxed out, but in order to set this in hardware, the BCMs (Bus Clock Managers) need to be initialized first. Move the BCM initialization before creating the nodes to fix this. Fixes: 7d3b0b0 ("interconnect: qcom: Use icc_sync_state") Acked-by: Saravana Kannan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Georgi Djakov <[email protected]>
1 parent d3703b3 commit 0f221a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/interconnect/qcom/sdm845.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,9 @@ static int qnoc_probe(struct platform_device *pdev)
489489
return ret;
490490
}
491491

492+
for (i = 0; i < qp->num_bcms; i++)
493+
qcom_icc_bcm_init(qp->bcms[i], &pdev->dev);
494+
492495
for (i = 0; i < num_nodes; i++) {
493496
size_t j;
494497

@@ -512,9 +515,6 @@ static int qnoc_probe(struct platform_device *pdev)
512515
}
513516
data->num_nodes = num_nodes;
514517

515-
for (i = 0; i < qp->num_bcms; i++)
516-
qcom_icc_bcm_init(qp->bcms[i], &pdev->dev);
517-
518518
platform_set_drvdata(pdev, qp);
519519

520520
return 0;

0 commit comments

Comments
 (0)