clk: qcom: branch: Add clk_branch2_prepare_ops
authorLuo Jie <quic_luoj@quicinc.com>
Wed, 5 Jun 2024 12:45:38 +0000 (20:45 +0800)
committerBjorn Andersson <andersson@kernel.org>
Thu, 13 Jun 2024 04:04:26 +0000 (23:04 -0500)
commit7311bbfff31c4961c57d94c165fa843f155f8236
tree7213606ddb082c4ec102f9ee366483f3455491d1
parent7e828d77d202f59d4f9b59c1930b82433cce1356
clk: qcom: branch: Add clk_branch2_prepare_ops

Add the clk_branch2_prepare_ops for supporting clock controller
where the hardware register is accessed by MDIO bus, and the
spin lock can't be used because of sleep during the MDIO
operation.

The clock is enabled by the .prepare instead of .enable when
the clk_branch2_prepare_ops is used.

Acked-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Luo Jie <quic_luoj@quicinc.com>
Link: https://lore.kernel.org/r/20240605124541.2711467-2-quic_luoj@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/clk-branch.c
drivers/clk/qcom/clk-branch.h