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

Yixun Lan dlan at gentoo.org
Wed Jan 29 12:28:38 CET 2025


Hi Yao:

I think you can just drop "RFC" in next version

On 09:11 Thu 23 Jan     , Yao Zi wrote:
> 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.
> 
thanks, generally I like this direction

> 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.
> 
can you go ahead and further cleanup other boards?

> 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
> 
> -- 
> 2.48.0
> 

-- 
Yixun Lan (dlan)
Gentoo Linux Developer
GPG Key ID AABEFD55


More information about the U-Boot mailing list