[PATCH v2 0/2] clk: fractional-divider: Improve approximation when zero based

From: Frank Oltmanns
Date: Tue Jun 13 2023 - 04:36:56 EST


I stumpled upon this, when familiarizing myself with clk drivers. Unfortunately,
I have no boards to test this patch. It seems the only user of this flag in
mainline is drivers/clk/imx/clk-composite-7ulp.c, therefore I'm cc-ing
get_maintainers.pl --git-blame -f drivers/clk/imx/clk-composite-7ulp.c
in the hopes of a wider audience.

V1: https://lore.kernel.org/lkml/20230529133433.56215-1-frank@xxxxxxxxxxxx/

Changes since V1:
- Added test case as requested by Stephen Boyd
- Fixed commit message as the Cc: was missing a closing bracket, so that the
original mail unfortunately did not go out to A. s. Dong.

Thank you for considering this contribution,
Frank

Frank Oltmanns (2):
clk: fractional-divider: Improve approximation when zero based
clk: tests: Add tests for fractional divisor approximation

drivers/clk/clk-fractional-divider.c | 26 ++++++++---
drivers/clk/clk_test.c | 69 +++++++++++++++++++++++++++-
2 files changed, 87 insertions(+), 8 deletions(-)

--
2.41.0