public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [RFC PATCH v1 0/7] clk: Switch from soc_clk_dump to clk_ops function
@ 2023-04-27 20:37 Igor Prusov
  2023-04-27 20:37 ` [RFC PATCH v1 1/7] clk: zynq: Move soc_clk_dump to Zynq clock driver Igor Prusov
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Igor Prusov @ 2023-04-27 20:37 UTC (permalink / raw)
  To: Michal Simek, Daniel Schwierzeck, Lukasz Majewski, Sean Anderson,
	Ryan Chen, Chia-Wei Wang, Aspeed BMC SW team, Joel Stanley,
	Stefan Roese, Patrick Delaunay, Patrice Chotard
  Cc: prusovigor, kernel, Igor Prusov, u-boot, uboot-stm32

Currently clock providers may override default implementation of
soc_clk_dump function to replace clk dump command output. This causes
confusing behaviour when u-boot is built with one of such drivers
enabled but still has clocks defined using CCF. For example, enabling
CMD_CLK and using clk dump on sandbox target will not show CCF clocks
because k210 driver overrides common soc_clk_dump.

Igor Prusov (7):
  clk: zynq: Move soc_clk_dump to Zynq clock driver
  clk: ast2600: Move soc_clk_dump function
  clk: k210: Move soc_clk_dump function
  clk: Add dump operation to clk_ops
  cmd: clk: Use dump function from clk_ops
  clk: treewide: switch to clock dump from clk_ops
  cmd: clk: Remove __weak from soc_clk_dump

 arch/arm/mach-zynq/clk.c               |  57 --------------
 arch/mips/mach-pic32/cpu.c             |  23 ------
 cmd/clk.c                              |  13 +++-
 drivers/clk/aspeed/clk_ast2600.c       |  83 ++++++++++----------
 drivers/clk/clk_k210.c                 | 103 ++++++++++++-------------
 drivers/clk/clk_pic32.c                |  39 ++++++++++
 drivers/clk/clk_versal.c               |   7 +-
 drivers/clk/clk_zynq.c                 |  51 ++++++++++++
 drivers/clk/clk_zynqmp.c               |  13 ++--
 drivers/clk/imx/clk-imx8.c             |  11 +--
 drivers/clk/mvebu/armada-37xx-periph.c |   5 +-
 drivers/clk/stm32/clk-stm32mp1.c       |  29 ++-----
 include/clk-uclass.h                   |   3 +
 13 files changed, 223 insertions(+), 214 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2023-05-02 19:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-27 20:37 [RFC PATCH v1 0/7] clk: Switch from soc_clk_dump to clk_ops function Igor Prusov
2023-04-27 20:37 ` [RFC PATCH v1 1/7] clk: zynq: Move soc_clk_dump to Zynq clock driver Igor Prusov
2023-04-27 20:37 ` [RFC PATCH v1 2/7] clk: ast2600: Move soc_clk_dump function Igor Prusov
2023-04-27 20:37 ` [RFC PATCH v1 3/7] clk: k210: " Igor Prusov
2023-04-27 20:37 ` [RFC PATCH v1 4/7] clk: Add dump operation to clk_ops Igor Prusov
2023-04-27 20:37 ` [RFC PATCH v1 5/7] cmd: clk: Use dump function from clk_ops Igor Prusov
2023-04-27 20:37 ` [RFC PATCH v1 6/7] clk: treewide: switch to clock dump " Igor Prusov
2023-05-02 14:02   ` Michal Simek
2023-05-02 18:40     ` Igor Prusov
2023-04-27 20:37 ` [RFC PATCH v1 7/7] cmd: clk: Remove __weak from soc_clk_dump Igor Prusov

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