diff mbox series

[v2,1/5] clk: qcom: clk-alpha-pll: Increase PLL lock detect poll time

Message ID 1640018638-19436-2-git-send-email-tdas@codeaurora.org
State Accepted
Commit a5273ed2fed221317203c120670fc9a09488be3b
Headers show
Series [v2,1/5] clk: qcom: clk-alpha-pll: Increase PLL lock detect poll time | expand

Commit Message

Taniya Das Dec. 20, 2021, 4:43 p.m. UTC
PLL poll for lock detection can take more than 100us for certain type
of Lucid PLLs and also the new PLLs types(Lucid EVO), thus update to 200us.

Signed-off-by: Taniya Das <tdas@codeaurora.org>
---
 drivers/clk/qcom/clk-alpha-pll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member
of the Code Aurora Forum, hosted by the  Linux Foundation.

Comments

Stephen Boyd Jan. 5, 2022, 11:56 p.m. UTC | #1
Quoting Taniya Das (2021-12-20 08:43:54)
> PLL poll for lock detection can take more than 100us for certain type
> of Lucid PLLs and also the new PLLs types(Lucid EVO), thus update to 200us.
> 
> Signed-off-by: Taniya Das <tdas@codeaurora.org>
> ---

Any Fixes tag?
diff mbox series

Patch

diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-alpha-pll.c
index 0bbfc4d..4406cf6 100644
--- a/drivers/clk/qcom/clk-alpha-pll.c
+++ b/drivers/clk/qcom/clk-alpha-pll.c
@@ -223,7 +223,7 @@  static int wait_for_pll(struct clk_alpha_pll *pll, u32 mask, bool inverse,
 	if (ret)
 		return ret;

-	for (count = 100; count > 0; count--) {
+	for (count = 200; count > 0; count--) {
 		ret = regmap_read(pll->clkr.regmap, PLL_MODE(pll), &val);
 		if (ret)
 			return ret;