phy: qcom: qmp-pcie: refactor clock register code
authorNeil Armstrong <neil.armstrong@linaro.org>
Fri, 22 Mar 2024 09:42:39 +0000 (10:42 +0100)
committerVinod Koul <vkoul@kernel.org>
Fri, 5 Apr 2024 17:04:00 +0000 (22:34 +0530)
commit677b45114b4430a43d2602296617efc4d3f2ab7a
tree06d9a88d158a72816da828c67b1578e389bcbcf2
parent72bea132f3680ee51e7ed2cee62892b6f5121909
phy: qcom: qmp-pcie: refactor clock register code

The PCIe Gen4x2 PHY found in the SM8[456]50 SoCs have a second clock,
in order to expose it, split the current clock registering in two parts:
- CCF clock registering
- DT clock registering

Keep the of_clk_add_hw_provider/devm_add_action_or_reset to keep
compatibility with the legacy subnode bindings.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240322-topic-sm8x50-upstream-pcie-1-phy-aux-clk-v2-2-3ec0a966d52f@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c