Skip to content

Commit 7f5e9ca

Browse files
shubhraamdbebarino
authored andcommitted
clk: clocking-wizard: Fix the round rate handling for versal
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: 7681f64 ("clk: clocking-wizard: calculate dividers fractional parts") Signed-off-by: Shubhrajyoti Datta <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 264200c commit 7f5e9ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/xilinx/clk-xlnx-clock-wizard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ static long clk_wzrd_ver_round_rate_all(struct clk_hw *hw, unsigned long rate,
669669
u32 m, d, o, div, f;
670670
int err;
671671

672-
err = clk_wzrd_get_divisors(hw, rate, *prate);
672+
err = clk_wzrd_get_divisors_ver(hw, rate, *prate);
673673
if (err)
674674
return err;
675675

0 commit comments

Comments
 (0)