Skip to contentSkip to conversation

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

GIT PULL Brian Masney 1 participant 2 messages Jan 21 – Jan 22

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Stephen,

Here's a PULL for this large series that continues the work to remove some deprecated round_rate APIs. I used the following b4 command to collect up this series:

    b4 am --cherry-pick 1-13,17-23 \
        [email protected]

I skipped some of the patches that have already been picked up by others. The last two patches in that series that actually remove the deprecated functions will need to go in during the next dev cycle.

One thing that I want to call out in this pull is the change to drivers/rtc/rtc-ac100.c, which is all clk related.

The following changes since commit 8f0b4cce4481fb22653697cced8d0d04027cb1e8:

Linux 6.19-rc1 (2025-12-14 16:05:07 +1200)

are available in the Git repository at:

https://github.com/masneyb/linux tags/clk-divider-round-rate-v6.20

for you to fetch changes up to 533162201ebcc478739235c6d002971f02f42f19:

clk: zynqmp: divider: convert from divider_round_rate() to divider_determine_rate() (2026-01-21 16:32:09 -0500)

----------------------------------------------------------------
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.

----------------------------------------------------------------
Brian Masney (20):
clk: sophgo: cv18xx-ip: convert from divider_round_rate() to divider_determine_rate()
clk: sunxi-ng: convert from divider_round_rate_parent() to divider_determine_rate()
rtc: ac100: 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: actions: owl-divider: convert from divider_round_rate() to divider_determine_rate()
clk: bm1880: convert from divider_ro_round_rate() to divider_ro_determine_rate()
clk: bm1880: convert from divider_round_rate() to divider_determine_rate()
clk: hisilicon: clkdivider-hi6220: convert from divider_round_rate() to divider_determine_rate()
clk: loongson1: convert from divider_round_rate() to divider_determine_rate()
clk: milbeaut: convert from divider_ro_round_rate() to divider_ro_determine_rate()
clk: milbeaut: convert from divider_round_rate() to divider_determine_rate()
clk: nuvoton: ma35d1-divider: convert from divider_round_rate() to divider_determine_rate()
clk: nxp: lpc32xx: convert from divider_round_rate() to divider_determine_rate()
clk: sophgo: sg2042-clkgen: convert from divider_round_rate() to divider_determine_rate()
clk: sprd: div: convert from divider_round_rate() to divider_determine_rate()
clk: stm32: stm32-core: convert from divider_ro_round_rate() to divider_ro_determine_rate()
clk: stm32: stm32-core: convert from divider_round_rate_parent() to divider_determine_rate()
clk: versaclock3: convert from divider_round_rate() to divider_determine_rate()
clk: x86: cgu: convert from divider_round_rate() to divider_determine_rate()
clk: zynqmp: divider: convert from divider_round_rate() to divider_determine_rate()

 drivers/clk/actions/owl-composite.c       |  11 +--
 drivers/clk/actions/owl-divider.c         |  17 +---
 drivers/clk/actions/owl-divider.h         |   5 -
 drivers/clk/clk-bm1880.c                  |  13 +--
 drivers/clk/clk-loongson1.c               |   5 +-
 drivers/clk/clk-milbeaut.c                |  15 +--
 drivers/clk/clk-versaclock3.c             |   7 +-
 drivers/clk/hisilicon/clkdivider-hi6220.c |   6 +-
 drivers/clk/nuvoton/clk-ma35d1-divider.c  |   7 +-
 drivers/clk/nxp/clk-lpc32xx.c             |   6 +-
 drivers/clk/sophgo/clk-cv18xx-ip.c        | 154 +++++++++++++++++-------------
 drivers/clk/sophgo/clk-sg2042-clkgen.c    |  15 +--
 drivers/clk/sprd/div.c                    |   6 +-
 drivers/clk/stm32/clk-stm32-core.c        |  42 +++-----
 drivers/clk/sunxi-ng/ccu_div.c            |  25 +++--
 drivers/clk/sunxi-ng/ccu_mp.c             |  26 ++---
 drivers/clk/sunxi-ng/ccu_mult.c           |  16 ++--
 drivers/clk/sunxi-ng/ccu_mux.c            |  49 ++++++----
 drivers/clk/sunxi-ng/ccu_mux.h            |   8 +-
 drivers/clk/sunxi-ng/ccu_nkm.c            |  25 ++---
 drivers/clk/x86/clk-cgu.c                 |   6 +-
 drivers/clk/zynqmp/divider.c              |   5 +-
 drivers/rtc/rtc-ac100.c                   |  75 ++++++++-------
 23 files changed, 245 insertions(+), 299 deletions(-)
#1 lore raw

Hi Stephen,

Quoted 7 lines · Brian Masney

Here's a PULL for this large series that continues the work to remove some deprecated round_rate APIs. I used the following b4 command to collect up this series:

    b4 am --cherry-pick 1-13,17-23 \
        [email protected]
Quoted 6 lines

I skipped some of the patches that have already been picked up by others. The last two patches in that series that actually remove the deprecated functions will need to go in during the next dev cycle.

One thing that I want to call out in this pull is the change to drivers/rtc/rtc-ac100.c, which is all clk related.

Alexandre requested a minor change with the rtc patch, so I'll send you a v2 pull tomorrow without that.

Brian