clk: qcom: sdm845: Use generic clk_sync_state_disable_unused callback
By adding the newly added clk_sync_state_disable_unused as sync_state callback to all sdm845 clock providers, we make sure that no clock belonging to these providers gets disabled on clk_disable_unused, but rather they are disabled on sync_state, when it is safe, since all the consumers build as modules have had their chance of enabling their own clocks. Signed-off-by: Abel Vesa <abel.vesa@linaro.org> Reviewed-by: Bjorn Andersson <andersson@kernel.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20221227204528.1899863-2-abel.vesa@linaro.org
This commit is contained in:
parent
26b36df751
commit
99c0f7d35c
@ -1743,6 +1743,7 @@ static struct platform_driver cam_cc_sdm845_driver = {
|
||||
.driver = {
|
||||
.name = "sdm845-camcc",
|
||||
.of_match_table = cam_cc_sdm845_match_table,
|
||||
.sync_state = clk_sync_state_disable_unused,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -869,6 +869,7 @@ static struct platform_driver disp_cc_sdm845_driver = {
|
||||
.driver = {
|
||||
.name = "disp_cc-sdm845",
|
||||
.of_match_table = disp_cc_sdm845_match_table,
|
||||
.sync_state = clk_sync_state_disable_unused,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -4020,6 +4020,7 @@ static struct platform_driver gcc_sdm845_driver = {
|
||||
.driver = {
|
||||
.name = "gcc-sdm845",
|
||||
.of_match_table = gcc_sdm845_match_table,
|
||||
.sync_state = clk_sync_state_disable_unused,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -205,6 +205,7 @@ static struct platform_driver gpu_cc_sdm845_driver = {
|
||||
.driver = {
|
||||
.name = "sdm845-gpucc",
|
||||
.of_match_table = gpu_cc_sdm845_match_table,
|
||||
.sync_state = clk_sync_state_disable_unused,
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user