linux/drivers/clk/stm32
Brian Masney c632744ff0 clk: stm32: stm32-core: convert from divider_round_rate_parent() to divider_determine_rate()
[ Upstream commit 2532795a6d ]

The divider_round_rate_parent() function is now deprecated, so let's
migrate to divider_determine_rate() instead so that this deprecated API
can be removed.

Note that when the main function itself was migrated to use
determine_rate, this was mistakenly converted to:

    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.

Fixes: cd1cb38836 ("clk: stm32: stm32-core: convert from round_rate() to determine_rate()")
Signed-off-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-02-26 14:59:31 -08:00
..
clk-stm32-core.c clk: stm32: stm32-core: convert from divider_round_rate_parent() to divider_determine_rate() 2026-02-26 14:59:31 -08:00
clk-stm32-core.h clk: stm32mp2: use of STM32 access controller 2024-06-03 14:10:46 -07:00
clk-stm32mp1.c clk: stm32: stm32mp1: convert from round_rate() to determine_rate() 2025-09-08 09:41:28 -04:00
clk-stm32mp13.c clk: stm32mp2: use of STM32 access controller 2024-06-03 14:10:46 -07:00
clk-stm32mp21.c clk: stm32: introduce clocks for STM32MP21 platform 2025-09-21 10:31:56 -07:00
clk-stm32mp25.c clk: stm32mp25: add security clocks 2024-06-03 14:10:46 -07:00
Kconfig clk: stm32: introduce clocks for STM32MP21 platform 2025-09-21 10:31:56 -07:00
Makefile clk: stm32: introduce clocks for STM32MP21 platform 2025-09-21 10:31:56 -07:00
reset-stm32.c clk: stm32: introduce clocks for STM32MP257 platform 2024-04-11 23:20:27 -07:00
reset-stm32.h clk: stm32: introduce clocks for STM32MP257 platform 2024-04-11 23:20:27 -07:00
stm32mp13_rcc.h clk: stm32: Introduce STM32MP13 RCC drivers (Reset Clock Controller) 2022-05-20 21:07:48 -07:00
stm32mp21_rcc.h clk: stm32: introduce clocks for STM32MP21 platform 2025-09-21 10:31:56 -07:00
stm32mp25_rcc.h clk: stm32: introduce clocks for STM32MP257 platform 2024-04-11 23:20:27 -07:00