From 995df206c3d2044d556ad1763b62eae66f31609f 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 7a1af8abe5..77f0ea6f6e 100644 --- a/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c +++ b/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c @@ -196,6 +196,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 ();