]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: ipq8074: SW workaround for UBI32 PLL lock
authorRobert Marko <robimarko@gmail.com>
Sun, 15 May 2022 21:00:39 +0000 (23:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:46 +0000 (14:23 +0200)
commit9434a8d6343841797c7136406540da444567cf0b
tree5d77c82b300f944daa0e625474b933fb1ecdf8c8
parent40afe8aa6c445c2a9f4abea20cd14c5028ddb375
clk: qcom: ipq8074: SW workaround for UBI32 PLL lock

[ Upstream commit 1a5dce61d8348f2588cbe8aab861d27785f9cfa3 ]

UBI32 Huayra PLL fails to lock in 5 us in some SoC silicon and thus it
will cause the wait_for_pll() to timeout and thus return the error
indicating that the PLL failed to lock.

This is bug in Huayra PLL HW for which SW workaround
is to set bit 26 of TEST_CTL register.

This is ported from the QCA 5.4 based downstream kernel.

Fixes: 12b17706734f ("clk: qcom: ipq8074: add remaining PLL’s")
Signed-off-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220515210048.483898-2-robimarko@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/qcom/gcc-ipq8074.c