From 5f7a6fe58bc3f41bad83684f5c0cee82f38cc580 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 228aa4a14b..2cc452223d 100644 --- a/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c +++ b/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c @@ -255,6 +255,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 ();