Skip to content

RFC Unify implementation of cleanup_before_linux() for RISC-V ports

Yao Zi u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3riscv: add a generic implementation for cleanup_before_linux()arch/riscv/cpu/cpu.c+17 -01 reply
2/3riscv: cpu: generic: fallback to generic cleanup_before_linux()arch/riscv/cpu/generic/Makefile arch/riscv/cpu/generic/cpu.c+0 -231 reply
3/3riscv: cpu: jh7110: fallback to generic cleanup_before_linux()arch/riscv/cpu/jh7110/Makefile arch/riscv/cpu/jh7110/cpu.c+0 -241 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchLeo Yu-Chi Liang
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/3] Unify implementation of cleanup_before_linux() for RISC-V ports

This series introduces a generic version of cleanup_before_linux(), because most RISC-V SoCs have similar implementation. Ports for generic platforms and JH7110 are converted to use it for now: these devices are available to me and I have verified that Linux boots with these changes.

With a quick look at the codebase, I think this could be done for all RISC-V ports ultimately. Thanks for your feedback and review.

Yao Zi (3):
riscv: add a generic implementation for cleanup_before_linux()
riscv: cpu: generic: fallback to generic cleanup_before_linux()
riscv: cpu: jh7110: fallback to generic cleanup_before_linux()

 arch/riscv/cpu/cpu.c            | 17 +++++++++++++++++
 arch/riscv/cpu/generic/Makefile |  1 -
 arch/riscv/cpu/generic/cpu.c    | 22 ----------------------
 arch/riscv/cpu/jh7110/Makefile  |  1 -
 arch/riscv/cpu/jh7110/cpu.c     | 23 -----------------------
 5 files changed, 17 insertions(+), 47 deletions(-)
 delete mode 100644 arch/riscv/cpu/generic/cpu.c
 delete mode 100644 arch/riscv/cpu/jh7110/cpu.c
Signature · 1 line
2.48.0