]> git.ipfire.org Git - thirdparty/u-boot.git/commit
virtio: fix boot device hunting in qemu with virtio
authorLudwig Nussel <ludwig.nussel@siemens.com>
Mon, 4 May 2026 07:10:23 +0000 (09:10 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 8 May 2026 21:49:27 +0000 (15:49 -0600)
commit18806dae0e6fa9e0912a258e15f61b1b346dfdbc
treea21782e629d680b7c6c196115552336ebee97e57
parent55b152e6f0204e0b769f66ffd40ad02081f9bff0
virtio: fix boot device hunting in qemu with virtio

Commit 70101c3217ae ("virtio: mmio: Return error codes on probe
failures") returns -ENODEV where it would return 0 before. That path is
apparently hit in qemu and breaks boot device discovery
(virtio_bootdev_hunt() expects only ENOENT). So return -ENOENT in
that path instead.
The remaining two error returns in the function are untouched as I
don't know where they play a role.

Signed-off-by: Ludwig Nussel <ludwig.nussel@siemens.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Kuan-Wei Chiu <visitorckw@gmail.com>
drivers/virtio/virtio_mmio.c