All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Refactor the PRCI driver to reduce the complexity
@ 2022-03-04 10:03 ` Zong Li
  0 siblings, 0 replies; 28+ messages in thread
From: Zong Li @ 2022-03-04 10:03 UTC (permalink / raw)
  To: mturquette, sboyd, palmer, paul.walmsley, lee.jones, robh+dt,
	devicetree, linux-riscv, linux-clk, linux-kernel
  Cc: Zong Li

This patch set tries to improve the PRCI driver to reduce the
complexity, we remove the SoCs C files by putting putting all stuff in
each SoCs header file, and include these SoCs-specific header files in
core of PRCI. It can also avoid the W=1 kernel build warnings about
variable defined but not used [-Wunused-const-variable=], like 'commit
487dc7bb6a0c ("clk: sifive:fu540-prci: Declare static const variable
'prci_clk_fu540' where it's used")' does.

This patch set also contains the dt-bindings and dts change, because
we change the macro name for fu540 and fu740 by adding the prefix
respectively.

Thanks all for your review and suggestions.

Changed in v2:
 - Rebase on v5.17-rc6
 - Add a temporary patch for avoiding breaking git bisect

Zong Li (5):
  clk: sifive: duplicate the macro definitions for the time being
  dt-bindings: change the macro name of prci in header files and example
  riscv: dts: Change the macro name of prci in each device node
  clk: sifive: Add SoCs prefix in each SoCs-dependent data
  clk: sifive: Move all stuff into SoCs header files from C files

 .../devicetree/bindings/gpio/sifive,gpio.yaml |   2 +-
 .../bindings/pci/sifive,fu740-pcie.yaml       |   2 +-
 .../bindings/serial/sifive-serial.yaml        |   2 +-
 arch/riscv/boot/dts/sifive/fu540-c000.dtsi    |  22 +--
 arch/riscv/boot/dts/sifive/fu740-c000.dtsi    |  26 ++--
 drivers/clk/sifive/Makefile                   |   2 +-
 drivers/clk/sifive/fu540-prci.c               |  89 ------------
 drivers/clk/sifive/fu540-prci.h               |  91 +++++++++++-
 drivers/clk/sifive/fu740-prci.c               | 134 ------------------
 drivers/clk/sifive/fu740-prci.h               | 130 ++++++++++++++++-
 drivers/clk/sifive/sifive-prci.c              |   5 -
 include/dt-bindings/clock/sifive-fu540-prci.h |   8 +-
 include/dt-bindings/clock/sifive-fu740-prci.h |  18 +--
 13 files changed, 254 insertions(+), 277 deletions(-)
 delete mode 100644 drivers/clk/sifive/fu540-prci.c
 delete mode 100644 drivers/clk/sifive/fu740-prci.c

-- 
2.31.1


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

end of thread, other threads:[~2022-03-16  1:54 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-04 10:03 [PATCH v2 0/5] Refactor the PRCI driver to reduce the complexity Zong Li
2022-03-04 10:03 ` Zong Li
2022-03-04 10:03 ` [PATCH v2 1/5] clk: sifive: duplicate the macro definitions for the time being Zong Li
2022-03-04 10:03   ` Zong Li
2022-03-15 23:59   ` Stephen Boyd
2022-03-15 23:59     ` Stephen Boyd
2022-03-04 10:03 ` [PATCH v2 2/5] dt-bindings: change the macro name of prci in header files and example Zong Li
2022-03-04 10:03   ` Zong Li
2022-03-15 23:59   ` Stephen Boyd
2022-03-15 23:59     ` Stephen Boyd
2022-03-04 10:03 ` [PATCH v2 3/5] riscv: dts: Change the macro name of prci in each device node Zong Li
2022-03-04 10:03   ` Zong Li
2022-03-15 22:54   ` Stephen Boyd
2022-03-15 22:54     ` Stephen Boyd
2022-03-15 22:56     ` Stephen Boyd
2022-03-15 22:56       ` Stephen Boyd
2022-03-16  1:53       ` Zong Li
2022-03-16  1:53         ` Zong Li
2022-03-16  0:02   ` Stephen Boyd
2022-03-16  0:02     ` Stephen Boyd
2022-03-04 10:03 ` [PATCH v2 4/5] clk: sifive: Add SoCs prefix in each SoCs-dependent data Zong Li
2022-03-04 10:03   ` Zong Li
2022-03-16  0:02   ` Stephen Boyd
2022-03-16  0:02     ` Stephen Boyd
2022-03-04 10:03 ` [PATCH v2 5/5] clk: sifive: Move all stuff into SoCs header files from C files Zong Li
2022-03-04 10:03   ` Zong Li
2022-03-16  0:02   ` Stephen Boyd
2022-03-16  0:02     ` Stephen Boyd

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.