mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
virtio: Ensure PCI is set up first
Sometimes virtio may rely on PCI, or at least that is what the distro_bootcmd script suggests. Add this in. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
9f8351659a
commit
27ff7806c1
1 changed files with 6 additions and 0 deletions
|
@ -373,6 +373,12 @@ static int virtio_bootdev_hunt(struct bootdev_hunter *info, bool show)
|
|||
{
|
||||
int ret;
|
||||
|
||||
if (IS_ENABLED(CONFIG_PCI)) {
|
||||
ret = uclass_probe_all(UCLASS_PCI);
|
||||
if (ret && ret != -ENOENT)
|
||||
return log_msg_ret("pci", ret);
|
||||
}
|
||||
|
||||
ret = uclass_probe_all(UCLASS_VIRTIO);
|
||||
if (ret && ret != -ENOENT)
|
||||
return log_msg_ret("vir", ret);
|
||||
|
|
Loading…
Reference in a new issue