Skip to content

Commit

Permalink
interconnect: qcom: sc7180: Init BCMs before creating the nodes
Browse files Browse the repository at this point in the history
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 <saravanak@google.com>
Link: https://lore.kernel.org/r/20201013135913.29059-3-georgi.djakov@linaro.org
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
  • Loading branch information
Georgi Djakov committed Oct 15, 2020
1 parent 0f221a7 commit 5998095
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/interconnect/qcom/sc7180.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,9 @@ static int qnoc_probe(struct platform_device *pdev)
return ret;
}

for (i = 0; i < qp->num_bcms; i++)
qcom_icc_bcm_init(qp->bcms[i], &pdev->dev);

for (i = 0; i < num_nodes; i++) {
size_t j;

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

for (i = 0; i < qp->num_bcms; i++)
qcom_icc_bcm_init(qp->bcms[i], &pdev->dev);

platform_set_drvdata(pdev, qp);

return 0;
Expand Down

0 comments on commit 5998095

Please sign in to comment.