clk: remove deprecated API divider_round_rate() and friends for v6.20

Here's a series that lays the groundwork to rid of the deprecated APIs
 divider_round_rate(), divider_round_rate_parent(), and
 divider_ro_round_rate_parent() since these functions are just wrappers
 for the determine_rate variant.
 
 We need to wait for some other changes to land in Linus's tree via the
 phy tree before we can actually remove these functions. We should be
 able to do that during the next development cycle.
 
 Note that when I converted some of these drivers from round_rate to
 determine_rate, this was mistakenly converted to the following in some
 cases:
 
     req->rate = divider_round_rate(...)
 
 This is invalid in the case when an error occurs since it can set the
 rate to a negative value. So this series fixes those bugs and removes
 the deprecated APIs all in one go.
 
 Note that this also contains a clk-specific change to
 drivers/rtc/rtc-ac100.c, and that patch carrys an Acked-by from
 Alexandre.
 -----BEGIN PGP SIGNATURE-----
 
 iIwEABYKADQWIQSkbTJwWGWqPd7cKQS30t0nXX7AhwUCaXJHmxYcbWFzbmV5YkBv
 bnN0YXRpb24ub3JnAAoJELfS3SddfsCHHd0A/0NmZNN2x2J8nQ21yLPXRWFP0Wt2
 HfAKQ7O1K8PBYC9uAQDpeXy+IAIMES/eUWmV+hM/xSMok4vjaNXG+BDyfoClDg==
 =G5GN
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJIBAABCAAyFiEE9L57QeeUxqYDyoaDrQKIl8bklSUFAmly4vUUHHN3Ym95ZEBj
 aHJvbWl1bS5vcmcACgkQrQKIl8bklSX6UhAA1S8fJwKOwGcS/DLsqX9vEsWTUeKX
 ee9v+CL//JCKokqvF5ZR9RHoX9REI9KBmWCbhvutndPXpQFF4TFQ+JoiNZYyERUF
 6sblTuAWBf9ExyS9E8qzUhtzJSLwxRAr97H5kYmH28F0298CHvUOfyWobP26JhQN
 sB0Qs1g6xQ76n0MWVkEZ1cCohWiZuhhOqxq7p0epgekFOUDEB+nNZA0gPUeurmAp
 j+prZPfwGyojb+FsiPmCAP0OtI5jB0n7iaQC4y/rzwbCioach5PWjjrBS+qjqytn
 OhMjB6j1vNfs/FpQq5XX8sQ2nAz+ijQ6BBcm/wPW4ECfod3PahP1YvS9gPTpWnGj
 r/5CRbteenOqL/Sl5H5lv2Kr6ZuQoN0DoR7YTbsNDIzF6T9eGwI0r+SHNjbJtUMK
 g4Zj9uSz0Ah2uDkgrhKGNGim8rG9WN0F6X4xbh1g/U2aiPaUGCEHjcFMccRRtgiG
 i/A0Iko7iINISnFPxd/zeRMTfGtbHReURX+DDNmJK2CQyi6DTNTLI5VFdLfBUnFi
 pBcpqCt6bqNWO/y71HaxTWHzEhwY3gJp5YklTXvWgFfeXRHXcdTiRICxhNShzdvv
 Y9guBri6zMB+oh82s6A/0TW4hXJ6slcjA+7ddLNULJBkH57212crDhm0gC3EMBfK
 OAD1JDk4uFw5x7M=
 =jYp6
 -----END PGP SIGNATURE-----

Merge tag 'clk-divider-round-rate-v6.20-v2' of https://github.com/masneyb/linux into clk-divider

Pull divider_round_rate() and friends removal series from Brian Masney:

Here's a series that lays the groundwork to rid of the deprecated APIs
divider_round_rate(), divider_round_rate_parent(), and
divider_ro_round_rate_parent() since these functions are just wrappers
for the determine_rate variant.

We need to wait for some other changes to land in Linus's tree via the
phy tree before we can actually remove these functions. We should be
able to do that during the next development cycle.

Note that when I converted some of these drivers from round_rate to
determine_rate, this was mistakenly converted to the following in some
cases:

    req->rate = divider_round_rate(...)

This is invalid in the case when an error occurs since it can set the
rate to a negative value. So this series fixes those bugs and removes
the deprecated APIs all in one go.

Note that this also contains a clk-specific change to
drivers/rtc/rtc-ac100.c, and that patch carrys an Acked-by from
Alexandre.

* tag 'clk-divider-round-rate-v6.20-v2' of https://github.com/masneyb/linux:
  rtc: ac100: convert from divider_round_rate() to divider_determine_rate()
  clk: zynqmp: divider: convert from divider_round_rate() to divider_determine_rate()
  clk: x86: cgu: convert from divider_round_rate() to divider_determine_rate()
  clk: versaclock3: convert from divider_round_rate() to divider_determine_rate()
  clk: stm32: stm32-core: convert from divider_round_rate_parent() to divider_determine_rate()
  clk: stm32: stm32-core: convert from divider_ro_round_rate() to divider_ro_determine_rate()
  clk: sprd: div: convert from divider_round_rate() to divider_determine_rate()
  clk: sophgo: sg2042-clkgen: convert from divider_round_rate() to divider_determine_rate()
  clk: nxp: lpc32xx: convert from divider_round_rate() to divider_determine_rate()
  clk: nuvoton: ma35d1-divider: convert from divider_round_rate() to divider_determine_rate()
  clk: milbeaut: convert from divider_round_rate() to divider_determine_rate()
  clk: milbeaut: convert from divider_ro_round_rate() to divider_ro_determine_rate()
  clk: loongson1: convert from divider_round_rate() to divider_determine_rate()
  clk: hisilicon: clkdivider-hi6220: convert from divider_round_rate() to divider_determine_rate()
  clk: bm1880: convert from divider_round_rate() to divider_determine_rate()
  clk: bm1880: convert from divider_ro_round_rate() to divider_ro_determine_rate()
  clk: actions: owl-divider: convert from divider_round_rate() to divider_determine_rate()
  clk: actions: owl-composite: convert from owl_divider_helper_round_rate() to divider_determine_rate()
  clk: sunxi-ng: convert from divider_round_rate_parent() to divider_determine_rate()
  clk: sophgo: cv18xx-ip: convert from divider_round_rate() to divider_determine_rate()
This commit is contained in:
Stephen Boyd 2026-01-22 18:54:16 -08:00
commit 9160ca46d2
23 changed files with 245 additions and 299 deletions