From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C7EA21B9D9; Wed, 19 Mar 2025 14:38:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742395123; cv=none; b=GWDsjPWaBHV6bRfMbw8+ScGq2rmf+xruL0AS+XDMKI+r0HU88tKLDbeVY0L4AVwtkFE8cJt1wrA6FUEYcO74UP+PRdulZxrLJCVkXLEUKDVuPWFIqda38NtCr7R7ux1hwDD6IocScFS2awRuFKHeyUB5aO4ZUOgiCPg5nD0bNbI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742395123; c=relaxed/simple; bh=2iST6pOLZR8JZT3BI38RMgjURTx0i5hhb1Rq8pNXMDs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SObojknMXVDlO3WGG/lFFpeHYqfClj1PfzgjuGhELB0mZgr5joOTY/a4+CMIcUitUOEa29XR8DcNgOz6iIWqr6bm164/QuqbGc1pcX/ve0DuMYUfobtEqKidO1lNZN52bHgOKKvOHQuP01CKuAWClELG+oS3J26j5K/0SxjI7wc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eoaES6Mg; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="eoaES6Mg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B1EBC4CEE4; Wed, 19 Mar 2025 14:38:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1742395123; bh=2iST6pOLZR8JZT3BI38RMgjURTx0i5hhb1Rq8pNXMDs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eoaES6Mg/kL3CSo78Z2EEgbAzHQs/uCWsqqw9QfcPzTIIIigGSodEXGyO5iTk4eEe R0k+B1CpwizoTl+muSOW7dZMYBrXkEafLFv/pTGERXz1IaOXbqwfe7+hd6BijHCGhz KanbPmhsy+UcwzZiNG5drFGc1icO5qWd1DqdjepQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Varada Pavani , Krzysztof Kozlowski Subject: [PATCH 6.12 185/231] clk: samsung: update PLL locktime for PLL142XX used on FSD platform Date: Wed, 19 Mar 2025 07:31:18 -0700 Message-ID: <20250319143031.401985960@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250319143026.865956961@linuxfoundation.org> References: <20250319143026.865956961@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Varada Pavani commit 53517a70873c7a91675f7244768aad5006cc45de upstream. Currently PLL142XX locktime is 270. As per spec, it should be 150. Hence update PLL142XX controller locktime to 150. Cc: stable@vger.kernel.org Fixes: 4f346005aaed ("clk: samsung: fsd: Add initial clock support") Signed-off-by: Varada Pavani Link: https://lore.kernel.org/r/20250225131918.50925-3-v.pavani@samsung.com Signed-off-by: Krzysztof Kozlowski Signed-off-by: Greg Kroah-Hartman --- drivers/clk/samsung/clk-pll.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- a/drivers/clk/samsung/clk-pll.c +++ b/drivers/clk/samsung/clk-pll.c @@ -206,6 +206,7 @@ static const struct clk_ops samsung_pll3 */ /* Maximum lock time can be 270 * PDIV cycles */ #define PLL35XX_LOCK_FACTOR (270) +#define PLL142XX_LOCK_FACTOR (150) #define PLL35XX_MDIV_MASK (0x3FF) #define PLL35XX_PDIV_MASK (0x3F) @@ -272,7 +273,11 @@ static int samsung_pll35xx_set_rate(stru } /* Set PLL lock time. */ - writel_relaxed(rate->pdiv * PLL35XX_LOCK_FACTOR, + if (pll->type == pll_142xx) + writel_relaxed(rate->pdiv * PLL142XX_LOCK_FACTOR, + pll->lock_reg); + else + writel_relaxed(rate->pdiv * PLL35XX_LOCK_FACTOR, pll->lock_reg); /* Change PLL PMS values */