From: Kuan-Wei Chiu <visitorckw@gmail.com>
To: Ludwig Nussel <ludwig.nussel@siemens.com>
Cc: u-boot@lists.denx.de, Bin Meng <bmeng.cn@gmail.com>,
Daniel Palmer <daniel@thingy.jp>, Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH v2] virtio: fix boot device hunting in qemu with virtio
Date: Wed, 6 May 2026 22:53:52 +0800 [thread overview]
Message-ID: <aftWAKPOmhTR5vvV@google.com> (raw)
In-Reply-To: <20260504091023.v2.1.d2ced6516d3db067379940b538830e60968dbf6c@changeid>
On Mon, May 04, 2026 at 09:10:23AM +0200, Ludwig Nussel wrote:
> 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>
Acked-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Regards,
Kuan-Wei
>
> ---
>
> Changes in v2:
> - return ENOENT in probe()
>
> drivers/virtio/virtio_mmio.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c
> index 62afe609ec0..d90d8309f99 100644
> --- a/drivers/virtio/virtio_mmio.c
> +++ b/drivers/virtio/virtio_mmio.c
> @@ -372,7 +372,7 @@ static int virtio_mmio_probe(struct udevice *udev)
> * virtio-mmio device with an ID 0 is a (dummy) placeholder
> * with no function. End probing now with no error reported.
> */
> - return -ENODEV;
> + return -ENOENT;
> }
> uc_priv->vendor = readl(priv->base + VIRTIO_MMIO_VENDOR_ID);
>
> --
> 2.43.0
>
> base-commit: 4433253ecf2041f9362a763bb6cb79960921ac7e
> branch: us-virtio2
next prev parent reply other threads:[~2026-05-06 14:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-04 7:10 [PATCH v2] virtio: fix boot device hunting in qemu with virtio Ludwig Nussel
2026-05-04 12:15 ` Simon Glass
2026-05-06 14:53 ` Kuan-Wei Chiu [this message]
2026-05-08 23:14 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aftWAKPOmhTR5vvV@google.com \
--to=visitorckw@gmail.com \
--cc=bmeng.cn@gmail.com \
--cc=daniel@thingy.jp \
--cc=ludwig.nussel@siemens.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox