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 B7BC221ABD0; Tue, 12 Aug 2025 19:19:07 +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=1755026347; cv=none; b=XMUkPq/Oz4qz0N3QSQ3jH1czW3HUmB0afqPi6vwSaq8dSgGNHOX8n/d/vP1qdftPeCNALPgC5AbkldB62fs4zcKl6uVDknoiXDkrDsfjwdE8hgX1zf7rHEQ2FrVa1WzhSwWyfZTLuPnnA+2ZHTpzGFYeoJJy15dRa+rrLQXrgS4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755026347; c=relaxed/simple; bh=ehVL5FcpeCvmTMuNchgkNWQpDrq/yRW6VkQ2Uoht4Gs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fWdlcbj6RXeIjISca0IMPVdMguoU7BMGGiK8TxRmgpN3gdIWficABr8IWQWcoO1zxBAhGPifDSxTZxhekCATjUyuV1PfREi4AyLEMW1ATQFfQUXV3ylrnz3PQ7ghr87lQQBuHYCzE63VfgSdQux0NjpoetogdOo7/UTWsFqBg98= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iaJbhh5t; 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="iaJbhh5t" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DE54C4CEF0; Tue, 12 Aug 2025 19:19:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755026347; bh=ehVL5FcpeCvmTMuNchgkNWQpDrq/yRW6VkQ2Uoht4Gs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iaJbhh5tDyg0/MjopQl2Ji023A4CUlD5IPwe5DL5x4BJ2kRnDfbszMVp7TN9TJqfm 2Gna5aCJwqMVzPjG7PlzGXjPsY/zQMLr389HoyKwOv9+qFiE6k9steCcYqHm6/h0se gzkrBpM4RhBhaMvERrIW/2nTZ2qBfEzsEaix3hK8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Shubhrajyoti Datta , Stephen Boyd , Sasha Levin Subject: [PATCH 6.15 311/480] clk: clocking-wizard: Fix the round rate handling for versal Date: Tue, 12 Aug 2025 19:48:39 +0200 Message-ID: <20250812174410.260363574@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250812174357.281828096@linuxfoundation.org> References: <20250812174357.281828096@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.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shubhrajyoti Datta [ Upstream commit 7f5e9ca0a424af44a708bb4727624d56f83ecffa ] Fix the `clk_round_rate` implementation for Versal platforms by calling the Versal-specific divider calculation helper. The existing code used the generic divider routine, which results in incorrect round rate. Fixes: 7681f64e6404 ("clk: clocking-wizard: calculate dividers fractional parts") Signed-off-by: Shubhrajyoti Datta Link: https://lore.kernel.org/r/20250625054114.28273-1-shubhrajyoti.datta@amd.com Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/xilinx/clk-xlnx-clock-wizard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/xilinx/clk-xlnx-clock-wizard.c b/drivers/clk/xilinx/clk-xlnx-clock-wizard.c index bbf7714480e7..0295a13a811c 100644 --- a/drivers/clk/xilinx/clk-xlnx-clock-wizard.c +++ b/drivers/clk/xilinx/clk-xlnx-clock-wizard.c @@ -669,7 +669,7 @@ static long clk_wzrd_ver_round_rate_all(struct clk_hw *hw, unsigned long rate, u32 m, d, o, div, f; int err; - err = clk_wzrd_get_divisors(hw, rate, *prate); + err = clk_wzrd_get_divisors_ver(hw, rate, *prate); if (err) return err; -- 2.39.5