Commit 7d3b0b0d authored by Georgi Djakov's avatar Georgi Djakov

interconnect: qcom: Use icc_sync_state

Lowering the bandwidth on the bus might have negative consequences if
it's done before all consumers had a chance to cast their vote. Now by
default the framework sets the bandwidth to maximum during boot. We need
to use the icc_sync_state callback to notify the framework when all
consumers are probed and there is no need to keep the bandwidth set to
maximum anymore.

Link: https://lore.kernel.org/r/20200825170152.6434-4-georgi.djakov@linaro.orgReviewed-by: default avatarSaravana Kannan <saravanak@google.com>
Signed-off-by: default avatarGeorgi Djakov <georgi.djakov@linaro.org>
parent b1d681d8
...@@ -268,6 +268,7 @@ static struct platform_driver osm_l3_driver = { ...@@ -268,6 +268,7 @@ static struct platform_driver osm_l3_driver = {
.driver = { .driver = {
.name = "osm-l3", .name = "osm-l3",
.of_match_table = osm_l3_of_match, .of_match_table = osm_l3_of_match,
.sync_state = icc_sync_state,
}, },
}; };
module_platform_driver(osm_l3_driver); module_platform_driver(osm_l3_driver);
......
...@@ -633,6 +633,7 @@ static struct platform_driver qnoc_driver = { ...@@ -633,6 +633,7 @@ static struct platform_driver qnoc_driver = {
.driver = { .driver = {
.name = "qnoc-sc7180", .name = "qnoc-sc7180",
.of_match_table = qnoc_of_match, .of_match_table = qnoc_of_match,
.sync_state = icc_sync_state,
}, },
}; };
module_platform_driver(qnoc_driver); module_platform_driver(qnoc_driver);
......
...@@ -559,6 +559,7 @@ static struct platform_driver qnoc_driver = { ...@@ -559,6 +559,7 @@ static struct platform_driver qnoc_driver = {
.driver = { .driver = {
.name = "qnoc-sdm845", .name = "qnoc-sdm845",
.of_match_table = qnoc_of_match, .of_match_table = qnoc_of_match,
.sync_state = icc_sync_state,
}, },
}; };
module_platform_driver(qnoc_driver); module_platform_driver(qnoc_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment