]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: qcom: camcc-sm6350: Fix PLL config of PLL2
authorLuca Weiss <luca.weiss@fairphone.com>
Tue, 21 Oct 2025 18:08:54 +0000 (20:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 12:54:46 +0000 (13:54 +0100)
commit01b20bb5313d762221ae692d4a702ad5aa1c859d
tree8cb0410de5a23e73c19a7f39819a04a7fbbb43ab
parentd55e7dec3c2f7b75e0cd352ed48e9084882c9467
clk: qcom: camcc-sm6350: Fix PLL config of PLL2

[ Upstream commit ab0e13141d679fdffdd3463a272c5c1b10be1794 ]

The 'Agera' PLLs (with clk_agera_pll_configure) do not take some of the
parameters that are provided in the vendor driver. Instead the upstream
configuration should provide the final user_ctl value that is written to
the USER_CTL register.

Fix the config so that the PLL is configured correctly, and fixes
CAMCC_MCLK* being stuck off.

Fixes: 80f5451d9a7c ("clk: qcom: Add camera clock controller driver for SM6350")
Suggested-by: Taniya Das <taniya.das@oss.qualcomm.com>
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251021-agera-pll-fixups-v1-1-8c1d8aff4afc@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/qcom/camcc-sm6350.c