]> git.proxmox.com Git - mirror_edk2.git/commitdiff
remove a segment of code, in which it forces EHCI to be connected firstly before...
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 10 Aug 2009 06:30:00 +0000 (06:30 +0000)
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 10 Aug 2009 06:30:00 +0000 (06:30 +0000)
This code was used to tune performance in Edk. Due to EdkII has enhanced Ehci driver to force it to be connected before UHCI, then the same logic is not necessary.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9030 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c

index ab7879def1fd01205ff7a9c40c2904ce5884dd46..42b0a23769e40ac694c54c31a6b1a3ad0d77918c 100644 (file)
@@ -361,37 +361,16 @@ BdsLibConnectConsoleVariable (
 \r
     SetDevicePathEndNode (Next);\r
     //\r
-    // Check USB1.1 console\r
+    // Connect the instance device path\r
     //\r
-    if ((DevicePathType (Instance) == MESSAGING_DEVICE_PATH) &&\r
-       ((DevicePathSubType (Instance) == MSG_USB_CLASS_DP)\r
-       || (DevicePathSubType (Instance) == MSG_USB_WWID_DP)\r
-       )) {\r
+    Status = BdsLibConnectDevicePath (Instance);\r
+    if (EFI_ERROR (Status)) {\r
       //\r
-      // Check the Usb console in Usb2.0 bus firstly, then Usb1.1 bus\r
+      // Delete the instance from the console varialbe\r
       //\r
-      Status = BdsLibConnectUsbDevByShortFormDP (PCI_IF_EHCI, Instance);\r
-      if (!EFI_ERROR (Status)) {\r
-        DeviceExist = TRUE;\r
-      }\r
-\r
-      Status = BdsLibConnectUsbDevByShortFormDP (PCI_IF_UHCI, Instance);\r
-      if (!EFI_ERROR (Status)) {\r
-        DeviceExist = TRUE;\r
-      }\r
+      BdsLibUpdateConsoleVariable (ConVarName, NULL, Instance);\r
     } else {\r
-      //\r
-      // Connect the instance device path\r
-      //\r
-      Status = BdsLibConnectDevicePath (Instance);\r
-      if (EFI_ERROR (Status)) {\r
-        //\r
-        // Delete the instance from the console varialbe\r
-        //\r
-        BdsLibUpdateConsoleVariable (ConVarName, NULL, Instance);\r
-      } else {\r
-        DeviceExist = TRUE;\r
-      }\r
+      DeviceExist = TRUE;\r
     }\r
     FreePool(Instance);\r
   } while (CopyOfDevicePath != NULL);\r