From 2af54dd5bd1ef2877390279d1d8e30b8a3ccb4a6 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Mon, 17 Feb 2020 08:21:10 -0700 Subject: [PATCH] UefiPayloadPkg: Stall before connecting devices USB devices are not being detected when booting. Pause a bit for them to be initialized and detected by EfiBootManagerConnectAll(). --- .../Library/PlatformBootManagerLib/PlatformBootManager.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c b/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c index 95199934de..f6a1bc2b60 100644 --- a/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c +++ b/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c @@ -221,6 +221,9 @@ PlatformBootManagerAfterConsole ( gST->ConOut->ClearScreen (gST->ConOut); BootLogoEnableLogo (); + // FIXME: USB devices are not being detected unless we wait a bit. + gBS->Stall (100 * 1000); + EfiBootManagerConnectAll (); EfiBootManagerRefreshAllBootOption ();