[PATCH v2] riscv: Move virtio scan to board_late_init()
Leo Liang
ycliang at andestech.com
Thu Mar 28 12:59:01 CET 2024
On Thu, Mar 28, 2024 at 10:58:24AM +0100, Łukasz Stelmach wrote:
> [EXTERNAL MAIL]
>
> When virtio_init() gets called from board_init() PCI isn't ready. Thus,
> virtio-over-PCI (e.g. network interfaces) devices can't be detected and
> used without additional `virtio scan` scan in the shell or a script.
>
> Signed-off-by: Łukasz Stelmach <l.stelmach at samsung.com>
> ---
> Changes since v1:
> - remove virtio_init() call from board_init()
> - select BOARD_LATE_INIT for TARGET_QEMU_VIRT
>
> arch/riscv/Kconfig | 1 +
> board/emulation/qemu-riscv/qemu-riscv.c | 12 ++++++------
> 2 files changed, 7 insertions(+), 6 deletions(-)
Reviewed-by: Leo Yu-Chi Liang <ycliang at andestech.com>
More information about the U-Boot
mailing list