
Hi Sean
The previous IPI code initialized the device whenever the first call was made to a riscv_*_ipi function. This made it difficult to determine when the IPI device was initialized. This patch introduces a new function riscv_init_ipi. It is called once during arch_cpu_init_dm. Before this point, no riscv_*_ipi functions should be called.
Signed-off-by: Sean Anderson seanga2@gmail.com
Reviewed-by: Rick Chen rick@andestech.com
conflict with u-boot/master, please rebase
Thanks Rick
Applying: riscv: Clean up IPI initialization code error: patch failed: arch/riscv/lib/sbi_ipi.c:7 error: arch/riscv/lib/sbi_ipi.c: patch does not apply Patch failed at 0001 riscv: Clean up IPI initialization code The copy of the patch that failed is found in: .git/rebase-apply/patch When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".