linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] clk: fractional-divider: Improve approximation when zero based
@ 2023-06-14 18:55 Frank Oltmanns
  2023-06-14 18:55 ` [PATCH v3 1/2] " Frank Oltmanns
  2023-06-14 18:55 ` [PATCH v3 2/2] clk: fractional-divider: tests: Add test suite for edge cases Frank Oltmanns
  0 siblings, 2 replies; 3+ messages in thread
From: Frank Oltmanns @ 2023-06-14 18:55 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: Frank Oltmanns, A.s. Dong, Abel Vesa, Fabio Estevam,
	linux-arm-kernel, linux-clk, linux-kernel, NXP Linux Team,
	Peng Fan, Pengutronix Kernel Team, Sascha Hauer, Shawn Guo

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.

V2: https://lore.kernel.org/lkml/20230613083626.227476-1-frank@oltmanns.dev/
V1: https://lore.kernel.org/lkml/20230529133433.56215-1-frank@oltmanns.dev/

Changes since V2:
 - Completely reworked the test cases
   - Moved tests to separate file as per Stephen's request
   - Move each edge case into their individual test case as per
     Stephen's request
   - Test clk_fd_round_rate instead of
     clk_fractional_divider_general_approximation as testing the latter
     broke builds

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: fractional-divider: tests: Add test suite for edge cases

 drivers/clk/.kunitconfig                  |   1 +
 drivers/clk/Kconfig                       |   7 +
 drivers/clk/Makefile                      |   1 +
 drivers/clk/clk-fractional-divider.c      |  26 ++-
 drivers/clk/clk-fractional-divider_test.c | 196 ++++++++++++++++++++++
 5 files changed, 224 insertions(+), 7 deletions(-)
 create mode 100644 drivers/clk/clk-fractional-divider_test.c

-- 
2.41.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-14 18:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-14 18:55 [PATCH v3 0/2] clk: fractional-divider: Improve approximation when zero based Frank Oltmanns
2023-06-14 18:55 ` [PATCH v3 1/2] " Frank Oltmanns
2023-06-14 18:55 ` [PATCH v3 2/2] clk: fractional-divider: tests: Add test suite for edge cases Frank Oltmanns

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).