interconnect: qcom: Use icc_sync_state
authorGeorgi Djakov <georgi.djakov@linaro.org>
Tue, 25 Aug 2020 17:01:52 +0000 (20:01 +0300)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Fri, 18 Sep 2020 05:57:18 +0000 (08:57 +0300)
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.org
Reviewed-by: Saravana Kannan <saravanak@google.com>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/interconnect/qcom/osm-l3.c
drivers/interconnect/qcom/sc7180.c
drivers/interconnect/qcom/sdm845.c

index 96fb9ff5ff2e85c58cd140f28b1553a85e2e729f..ae955f164442bbb355a2be105a4e605f2214fd9c 100644 (file)
@@ -268,6 +268,7 @@ static struct platform_driver osm_l3_driver = {
        .driver = {
                .name = "osm-l3",
                .of_match_table = osm_l3_of_match,
+               .sync_state = icc_sync_state,
        },
 };
 module_platform_driver(osm_l3_driver);
index dcf493d07928709c396e4a22fb5f799ede1998f2..4c5d38649220189a42f98f1ee626d022d1272f20 100644 (file)
@@ -633,6 +633,7 @@ static struct platform_driver qnoc_driver = {
        .driver = {
                .name = "qnoc-sc7180",
                .of_match_table = qnoc_of_match,
+               .sync_state = icc_sync_state,
        },
 };
 module_platform_driver(qnoc_driver);
index f6c7b969520d0a0434461e35c81f6e6cf00a493b..6aa39aad2555761a80441eaed009063f9e9f97b6 100644 (file)
@@ -559,6 +559,7 @@ static struct platform_driver qnoc_driver = {
        .driver = {
                .name = "qnoc-sdm845",
                .of_match_table = qnoc_of_match,
+               .sync_state = icc_sync_state,
        },
 };
 module_platform_driver(qnoc_driver);