]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: qcom: clk-alpha-pll: Fix zonda set_rate failure when PLL is disabled
authorSatya Priya Kakitapalli <quic_skakitap@quicinc.com>
Wed, 31 Jul 2024 06:29:11 +0000 (11:59 +0530)
committerBjorn Andersson <andersson@kernel.org>
Thu, 1 Aug 2024 02:56:09 +0000 (21:56 -0500)
commit85e8ee59dfde1a7b847fbed0778391392cd985cb
tree764d81c51193af833fc5b30da615b0463d584f85
parent4ad1ed6ef27cab94888bb3c740c14042d5c0dff2
clk: qcom: clk-alpha-pll: Fix zonda set_rate failure when PLL is disabled

Currently, clk_zonda_pll_set_rate polls for the PLL to lock even if the
PLL is disabled. However, if the PLL is disabled then LOCK_DET will
never assert and we'll return an error. There is no reason to poll
LOCK_DET if the PLL is already disabled, so skip polling in this case.

Fixes: f21b6bfecc27 ("clk: qcom: clk-alpha-pll: add support for zonda pll")
Cc: stable@vger.kernel.org
Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240731062916.2680823-4-quic_skakitap@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/clk-alpha-pll.c