clk: clocking-wizard: Fix the round rate handling for versal
authorShubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Wed, 25 Jun 2025 05:41:14 +0000 (11:11 +0530)
committerStephen Boyd <sboyd@kernel.org>
Sun, 27 Jul 2025 06:51:52 +0000 (23:51 -0700)
commit7f5e9ca0a424af44a708bb4727624d56f83ecffa
tree9630c130c3be6cd8e683d7171169783e6916a850
parent264200cc3a87d5c53bfa817227624fa2bae6b2c3
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: 7681f64e6404 ("clk: clocking-wizard: calculate dividers fractional parts")
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Link: https://lore.kernel.org/r/20250625054114.28273-1-shubhrajyoti.datta@amd.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/xilinx/clk-xlnx-clock-wizard.c