mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02: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:
@@ -373,6 +373,12 @@ static int virtio_bootdev_hunt(struct bootdev_hunter *info, bool show)
|
|||||||
{
|
{
|
||||||
int ret;
|
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);
|
ret = uclass_probe_all(UCLASS_VIRTIO);
|
||||||
if (ret && ret != -ENOENT)
|
if (ret && ret != -ENOENT)
|
||||||
return log_msg_ret("vir", ret);
|
return log_msg_ret("vir", ret);
|
||||||
|
Reference in New Issue
Block a user