]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: qcom: common: Add support for power-domain attachment
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Fri, 17 Jan 2025 13:54:09 +0000 (13:54 +0000)
committerBjorn Andersson <andersson@kernel.org>
Sat, 8 Feb 2025 05:20:55 +0000 (23:20 -0600)
commited5a0d065fe87d7f64e2aa67191bc73299b830bd
treec56d80fe4487c762e162885119aa7abf3d5d35fd
parent65a733464553ea192797b889d1533a1a37216f32
clk: qcom: common: Add support for power-domain attachment

Right now we support one power-domain per clock controller.
These single power-domains are switched on by the driver platform logic.

However when we have multiple power-domains attached to a clock-controller
that list of power-domains must be handled outside of driver platform
logic.

Use devm_pm_domain_attach_list() to automatically hook the list of given
power-domains in the dtsi for the clock-controller driver.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Link: https://lore.kernel.org/r/20250117-b4-linux-next-24-11-18-clock-multiple-power-domains-v10-3-13f2bb656dad@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/common.c