OSDN Git Service

clk: qcom: sdm845: Use generic clk_sync_state_disable_unused callback
authorAbel Vesa <abel.vesa@linaro.org>
Tue, 27 Dec 2022 20:45:28 +0000 (22:45 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 10 Jan 2023 17:04:50 +0000 (11:04 -0600)
commit99c0f7d35c4b204dd95ba50e155f32c99695b445
treebabefa5ab39b5188b6de53579d0548d9ee31fae9
parent26b36df7516692292312063ca6fd19e73c06d4e7
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
drivers/clk/qcom/camcc-sdm845.c
drivers/clk/qcom/dispcc-sdm845.c
drivers/clk/qcom/gcc-sdm845.c
drivers/clk/qcom/gpucc-sdm845.c