* [PATCH] clk: clocking-wizard: Fix the round rate handling for versal
@ 2025-06-25 5:41 Shubhrajyoti Datta
2025-07-27 6:52 ` Stephen Boyd
0 siblings, 1 reply; 2+ messages in thread
From: Shubhrajyoti Datta @ 2025-06-25 5:41 UTC (permalink / raw)
To: linux-clk, linux-kernel
Cc: git, Michael Turquette, Stephen Boyd, Michal Simek,
Shubhrajyoti Datta
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 <shubhrajyoti.datta@amd.com>
---
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 9a35031b0afd..3efce7b88906 100644
--- a/drivers/clk/xilinx/clk-xlnx-clock-wizard.c
+++ b/drivers/clk/xilinx/clk-xlnx-clock-wizard.c
@@ -673,7 +673,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.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] clk: clocking-wizard: Fix the round rate handling for versal
2025-06-25 5:41 [PATCH] clk: clocking-wizard: Fix the round rate handling for versal Shubhrajyoti Datta
@ 2025-07-27 6:52 ` Stephen Boyd
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2025-07-27 6:52 UTC (permalink / raw)
To: Shubhrajyoti Datta, linux-clk, linux-kernel
Cc: git, Michael Turquette, Michal Simek, Shubhrajyoti Datta
Quoting Shubhrajyoti Datta (2025-06-24 22:41:14)
> 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 <shubhrajyoti.datta@amd.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-07-27 6:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-25 5:41 [PATCH] clk: clocking-wizard: Fix the round rate handling for versal Shubhrajyoti Datta
2025-07-27 6:52 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox