public inbox for u-boot-amlogic@groups.io
 help / color / mirror / Atom feed
* [PATCH 00/24] clk: Remove passing of negative errors through unsigned return
@ 2025-10-15 14:32 Andrew Goodbody
  2025-10-15 14:32 ` [PATCH 01/24] clk: meson: Remove negative error returns from clk_get_rate Andrew Goodbody
                   ` (16 more replies)
  0 siblings, 17 replies; 27+ messages in thread
From: Andrew Goodbody @ 2025-10-15 14:32 UTC (permalink / raw)
  To: u-boot-amlogic, u-boot, Paul Barker, uboot-snps-arc, Dai Okamura,
	Aspeed BMC SW team, Joel Stanley, GSS_MTK_Uboot_upstream,
	adsp-linux, uboot-stm32
  Cc: Lukasz Majewski, Sean Anderson, Neil Armstrong, Tom Rini,
	Stefan Roese, Yao Zi, Leo Yu-Chi Liang, Nobuhiro Iwamatsu,
	Marek Vasut, Simon Glass, Philipp Tomsich, Kever Yang,
	Quentin Schulz, Lukasz Czechowski, Jonas Karlman, Finley Xiao,
	Joseph Chen, Elaine Zhang, Heiko Stuebner, Eugeniy Paltsev,
	Peng Fan, Liviu Dudau, Michal Simek, Patrice Chotard,
	Miquel Raynal, Patrick Delaunay, Ye Li, Sam Protsenko,
	Marek Vasut, Alice Guo, Valentin Caron, Padmarao Begari,
	Minda Chen, Hal Feng, Sumit Garg, Tien Fong Chee,
	Alif Zakuan Yuslaimi, Naresh Kumar Ravulapalli,
	Muhammad Hazim Izzat Zamri, Tingting Meng, Kunihiko Hayashi,
	Ryan Chen, Chia-Wei Wang, Minkyu Kang, Heiko Schocher,
	Jonathan Currier, Ryder Lee, Weijie Gao, Chunfeng Yun, Sam Shih,
	Manivannan Sadhasivam, Thierry Reding, Svyatoslav Ryhel,
	Nathan Barrett-Morrison, Greg Malysa, Ian Roberts,
	Vasileios Bimpikas, Utsav Agarwal, Arturs Artamonovs,
	Gabriel Fernandez, Marek Vasut, Dario Binacchi, Andrew Goodbody

This series removes the passing of negative errors through the .get_rate
function in the clk_ops struct. This function returns an unsigned long.
The only value guaranteed to not be a valid clock rate is 0. This will
also bring the drivers more in sync with Linux to allow for easier code
porting and other maintenance in the future.
Another series will address the calling of clk_get_rate and associated
error handling.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
---
Andrew Goodbody (24):
      clk: meson: Remove negative error returns from clk_get_rate
      clk: sifive: Remove negative error returns from clk_get_rate
      clk: armada-37xx: Remove negative error returns from clk_get_rate
      clk: thead: th1520-ap: Remove negative error returns from clk_get_rate
      clk: ccf: Remove negative error returns from clk_get_rate
      clk: at91: Remove negative error returns from clk_get_rate
      clk: renesas: Remove negative error returns from clk_get_rate
      clk: rockchip: Remove negative error returns from clk_get_rate
      clk: Remove negative error returns from clk_get_rate
      clk: starfive: Remove negative error returns from clk_get_rate
      clk: altera: Remove negative error returns from clk_get_rate
      clk: uniphier: Remove negative error returns from clk_get_rate
      clk: aspeed: Remove negative error returns from clk_get_rate
      clk: nuvoton: Remove negative error returns from clk_get_rate
      clk: exynos: Remove negative error returns from clk_get_rate
      clk: imx: Remove negative error returns from clk_get_rate
      clk: ti: Remove negative error returns from clk_get_rate
      clk: mediatek: Remove negative error returns from clk_get_rate
      clk: owl: Remove negative error returns from clk_get_rate
      clk: tegra: Remove negative error returns from clk_get_rate
      clk: adi: Remove negative error returns from clk_get_rate
      clk: sophgo: Remove negative error returns from clk_get_rate
      clk: stm32: Remove negative error returns from clk_get_rate
      clk: x86: Remove negative error returns from clk_get_rate

 drivers/clk/adi/clk-shared.c             |  2 +-
 drivers/clk/altera/clk-agilex.c          |  2 +-
 drivers/clk/altera/clk-agilex5.c         |  2 +-
 drivers/clk/altera/clk-n5x.c             |  2 +-
 drivers/clk/aspeed/clk_ast2500.c         |  2 +-
 drivers/clk/aspeed/clk_ast2600.c         |  2 +-
 drivers/clk/at91/compat.c                |  6 ++--
 drivers/clk/clk-hsdk-cgu.c               |  2 +-
 drivers/clk/clk-uclass.c                 |  4 +--
 drivers/clk/clk.c                        |  2 +-
 drivers/clk/clk_fixed_factor.c           |  4 +--
 drivers/clk/clk_k210.c                   |  6 ++--
 drivers/clk/clk_sandbox.c                |  4 +--
 drivers/clk/clk_scmi.c                   |  4 +--
 drivers/clk/clk_vexpress_osc.c           |  2 +-
 drivers/clk/clk_zynq.c                   |  4 +--
 drivers/clk/clk_zynqmp.c                 | 40 ++++++++++-----------
 drivers/clk/exynos/clk-exynos7420.c      |  2 +-
 drivers/clk/imx/clk-imx8qm.c             |  6 ++--
 drivers/clk/imx/clk-imx8qxp.c            |  6 ++--
 drivers/clk/imx/clk-imxrt1170.c          |  2 +-
 drivers/clk/imx/clk-pllv3.c              |  2 +-
 drivers/clk/intel/clk_intel.c            |  2 +-
 drivers/clk/mediatek/clk-mtk.c           |  2 +-
 drivers/clk/meson/a1.c                   | 10 +++---
 drivers/clk/meson/axg.c                  | 10 +++---
 drivers/clk/meson/g12a.c                 | 36 +++++++++----------
 drivers/clk/meson/gxbb.c                 | 20 +++++------
 drivers/clk/mvebu/armada-37xx-periph.c   |  2 +-
 drivers/clk/mvebu/armada-37xx-tbg.c      |  2 +-
 drivers/clk/nuvoton/clk_npcm.c           | 10 +++---
 drivers/clk/owl/clk_owl.c                |  2 +-
 drivers/clk/renesas/clk-rcar-gen2.c      |  8 ++---
 drivers/clk/renesas/rzg2l-cpg.c          |  8 ++---
 drivers/clk/rockchip/clk_px30.c          | 24 ++++++-------
 drivers/clk/rockchip/clk_rk3036.c        |  2 +-
 drivers/clk/rockchip/clk_rk3066.c        |  8 ++---
 drivers/clk/rockchip/clk_rk3128.c        |  6 ++--
 drivers/clk/rockchip/clk_rk3188.c        |  6 ++--
 drivers/clk/rockchip/clk_rk322x.c        |  4 +--
 drivers/clk/rockchip/clk_rk3288.c        |  6 ++--
 drivers/clk/rockchip/clk_rk3308.c        | 26 +++++++-------
 drivers/clk/rockchip/clk_rk3328.c        |  6 ++--
 drivers/clk/rockchip/clk_rk3368.c        |  8 ++---
 drivers/clk/rockchip/clk_rk3399.c        | 12 +++----
 drivers/clk/rockchip/clk_rk3528.c        | 20 +++++------
 drivers/clk/rockchip/clk_rk3568.c        | 62 ++++++++++++++++----------------
 drivers/clk/rockchip/clk_rk3576.c        | 36 +++++++++----------
 drivers/clk/rockchip/clk_rk3588.c        | 32 ++++++++---------
 drivers/clk/rockchip/clk_rv1108.c        |  4 +--
 drivers/clk/rockchip/clk_rv1126.c        | 52 +++++++++++++--------------
 drivers/clk/sifive/sifive-prci.c         |  8 ++---
 drivers/clk/sophgo/clk-cv1800b.c         |  2 +-
 drivers/clk/starfive/clk-jh7110-pll.c    |  2 +-
 drivers/clk/stm32/clk-stm32-core.c       |  4 +--
 drivers/clk/stm32/clk-stm32f.c           |  6 ++--
 drivers/clk/stm32/clk-stm32h7.c          |  4 +--
 drivers/clk/tegra/tegra-car-clk.c        |  2 +-
 drivers/clk/tegra/tegra186-clk.c         |  2 +-
 drivers/clk/thead/clk-th1520-ap.c        |  2 +-
 drivers/clk/ti/clk-am3-dpll-x2.c         |  4 +--
 drivers/clk/ti/clk-divider.c             |  4 +--
 drivers/clk/ti/clk-mux.c                 |  2 +-
 drivers/clk/ti/clk-sci.c                 |  2 +-
 drivers/clk/uniphier/clk-uniphier-core.c |  2 +-
 65 files changed, 290 insertions(+), 290 deletions(-)
---
base-commit: ecdc3872a767fb045be3296d4317ae978a14b022
change-id: 20251010-clk_ops-3b7cc9ccd070

Best regards,
-- 
Andrew Goodbody <andrew.goodbody@linaro.org>



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

end of thread, other threads:[~2025-10-20  7:41 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-15 14:32 [PATCH 00/24] clk: Remove passing of negative errors through unsigned return Andrew Goodbody
2025-10-15 14:32 ` [PATCH 01/24] clk: meson: Remove negative error returns from clk_get_rate Andrew Goodbody
2025-10-18  8:34   ` Simon Glass
2025-10-15 14:32 ` [PATCH 02/24] clk: sifive: " Andrew Goodbody
2025-10-15 14:32 ` [PATCH 03/24] clk: armada-37xx: " Andrew Goodbody
2025-10-15 14:32 ` [PATCH 04/24] clk: thead: th1520-ap: " Andrew Goodbody
2025-10-16  4:53   ` Yao Zi
2025-10-15 14:32 ` [PATCH 05/24] clk: ccf: " Andrew Goodbody
2025-10-15 14:32 ` [PATCH 06/24] clk: at91: " Andrew Goodbody
2025-10-15 14:32 ` [PATCH 07/24] clk: renesas: " Andrew Goodbody
2025-10-15 14:32 ` [PATCH 08/24] clk: rockchip: " Andrew Goodbody
2025-10-15 14:32 ` [PATCH 10/24] clk: starfive: " Andrew Goodbody
2025-10-17  6:16   ` Hal Feng
2025-10-15 14:32 ` [PATCH 12/24] clk: uniphier: " Andrew Goodbody
2025-10-15 14:32 ` [PATCH 14/24] clk: nuvoton: " Andrew Goodbody
2025-10-15 14:32 ` [PATCH 15/24] clk: exynos: " Andrew Goodbody
2025-10-15 14:32 ` [PATCH 20/24] clk: tegra: " Andrew Goodbody
2025-10-15 14:32 ` [PATCH 24/24] clk: x86: " Andrew Goodbody
     [not found] ` <20251015-clk_ops-v1-23-5f80f827407e@linaro.org>
2025-10-16  7:37   ` [PATCH 23/24] clk: stm32: " Patrice CHOTARD
     [not found] ` <20251015-clk_ops-v1-21-5f80f827407e@linaro.org>
2025-10-17  4:02   ` [PATCH 21/24] clk: adi: " Greg Malysa
2025-10-18  8:34 ` [PATCH 00/24] clk: Remove passing of negative errors through unsigned return Simon Glass
2025-10-18 14:04   ` Tom Rini
2025-10-18 18:16     ` Philipp Tomsich
2025-10-19 13:05     ` Simon Glass
2025-10-19 13:45       ` Svyatoslav Ryhel
2025-10-19 16:21         ` Tom Rini
2025-10-19 18:28           ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox