From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web12.10297.1591264223728134856 for ; Thu, 04 Jun 2020 02:50:23 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ard.biesheuvel@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 54E6C55D; Thu, 4 Jun 2020 02:50:23 -0700 (PDT) Received: from localhost.localdomain (unknown [10.37.8.209]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 89BC43F6CF; Thu, 4 Jun 2020 02:50:21 -0700 (PDT) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Jared McNeill , Andrei Warkentin , Samer El-Haj-Mahmoud , Leif Lindholm , Pete Batard , Jeremy Linton Subject: [PATCH edk2-platforms 3/3] Platform/RaspberryPi: don't connect all devices on an ordinary boot Date: Thu, 4 Jun 2020 11:50:07 +0200 Message-Id: <20200604095007.45693-4-ard.biesheuvel@arm.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200604095007.45693-1-ard.biesheuvel@arm.com> References: <20200604095007.45693-1-ard.biesheuvel@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable The BDS will connect device paths that are considered as boot options, so there is really no reason to always connect absolutely everything. So now that all the drivers have been updated to play nice in this case, remove the ConnectAll() call from the RPi BDS code. Signed-off-by: Ard Biesheuvel --- Platform/RaspberryPi/Library/PlatformBootManagerLib/PlatformBm.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Platform/RaspberryPi/Library/PlatformBootManagerLib/PlatformBm= .c b/Platform/RaspberryPi/Library/PlatformBootManagerLib/PlatformBm.c index 2bd625ad7e7c..253614a646c1 100644 --- a/Platform/RaspberryPi/Library/PlatformBootManagerLib/PlatformBm.c +++ b/Platform/RaspberryPi/Library/PlatformBootManagerLib/PlatformBm.c @@ -655,11 +655,6 @@ PlatformBootManagerAfterConsole ( Print (BOOT_PROMPT);=0D }=0D =0D - //=0D - // Connect the rest of the devices.=0D - //=0D - EfiBootManagerConnectAll ();=0D -=0D Status =3D gBS->LocateProtocol (&gEsrtManagementProtocolGuid, NULL, (VOI= D**)&EsrtManagement);=0D if (!EFI_ERROR (Status)) {=0D EsrtManagement->SyncEsrtFmp ();=0D --=20 2.26.2