Skip to content

Commit 5998095

Browse files
author
Georgi Djakov
committed
interconnect: qcom: sc7180: 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 0f221a7 commit 5998095

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/interconnect/qcom/sc7180.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,9 @@ static int qnoc_probe(struct platform_device *pdev)
553553
return ret;
554554
}
555555

556+
for (i = 0; i < qp->num_bcms; i++)
557+
qcom_icc_bcm_init(qp->bcms[i], &pdev->dev);
558+
556559
for (i = 0; i < num_nodes; i++) {
557560
size_t j;
558561

@@ -576,9 +579,6 @@ static int qnoc_probe(struct platform_device *pdev)
576579
}
577580
data->num_nodes = num_nodes;
578581

579-
for (i = 0; i < qp->num_bcms; i++)
580-
qcom_icc_bcm_init(qp->bcms[i], &pdev->dev);
581-
582582
platform_set_drvdata(pdev, qp);
583583

584584
return 0;

0 commit comments

Comments
 (0)