]> git.ipfire.org Git - thirdparty/u-boot.git/commit
clk: stm32: fix clock counter
authorGabriel Fernandez <gabriel.fernandez@foss.st.com>
Tue, 27 May 2025 13:27:52 +0000 (15:27 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 11 Jun 2025 07:42:55 +0000 (09:42 +0200)
commit901e0d95df3b351ca66695eb507b1f35f5eb2143
tree2d194f336a90324455123a2572553ded8508e096
parent51954665a7dac2fd9e4385c0f7a96f3cc959829d
clk: stm32: fix clock counter

In RCC the ops of the CCF registered CLK device can be called directly,
this patch avoid recursive call of clk_ function done by CCF clock
framework which update the clock information, for example
clk_enable is called 2 times, clkp->enable_count is increased 2 times.

Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Lukasz Majewski <lukma@denx.de>
Cc: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/clk/stm32/clk-stm32-core.c