[PATCH v1 0/3] clock-wizard fixups

Colin Foster posted 3 patches 6 days, 23 hours ago
drivers/clk/xilinx/clk-xlnx-clock-wizard.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
[PATCH v1 0/3] clock-wizard fixups
Posted by Colin Foster 6 days, 23 hours ago
The clock-wizard driver had a hard-coded 20KHz minimum accuracy. This
led to out-of-tree drivers silently failing to set clock rates instead
of dealing with the best-effort.

Remove this 20KHz restriction to match the Versal clock wizard driver.
There also was a bug in the difference calculation that is addressed in
the first patch.

The second patch optimizes the search if an exact match is found.

The third removes the restriction.

Colin Foster (3):
  clk: clocking-wizard: fix clock difference detection
  clk: clocking-wizard: optimize clock search
  clk: clocking-wizard: remove 20kHz restriction

 drivers/clk/xilinx/clk-xlnx-clock-wizard.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

-- 
2.43.0
Re: [PATCH v1 0/3] clock-wizard fixups
Posted by Datta, Shubhrajyoti 6 days, 7 hours ago
On 5/7/2026 1:35 AM, Colin Foster wrote:
> The clock-wizard driver had a hard-coded 20KHz minimum accuracy. This
> led to out-of-tree drivers silently failing to set clock rates instead
> of dealing with the best-effort.
>
> Remove this 20KHz restriction to match the Versal clock wizard driver.
> There also was a bug in the difference calculation that is addressed in
> the first patch.
>
> The second patch optimizes the search if an exact match is found.
>
> The third removes the restriction.

LGTM


Reviewed-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>


>
> Colin Foster (3):
>    clk: clocking-wizard: fix clock difference detection
>    clk: clocking-wizard: optimize clock search
>    clk: clocking-wizard: remove 20kHz restriction
>
>   drivers/clk/xilinx/clk-xlnx-clock-wizard.c | 8 +++++---
>   1 file changed, 5 insertions(+), 3 deletions(-)
>
> --
> 2.43.0
>