]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/XhciDxe/Xhci.c
MdeModulePkg/Bus/Pci/XhciDxe: Check port is compatible before getting PSIV
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / XhciDxe / Xhci.c
index 8dd7a8fbb7baa95d25fea56259e48c4132775202..461b2cd9b5946dc6ffbc1a78c4f9844dd803482b 100644 (file)
@@ -405,7 +405,7 @@ XhcGetRootHubPortStatus (
   // Section 7.2 xHCI Support Protocol Capability\r
   //\r
   if (PortSpeed > 0) {\r
-    PortStatus->PortStatus = XhcCheckUsbPortSpeedUsedPsic (Xhc, PortSpeed);\r
+    PortStatus->PortStatus = XhcCheckUsbPortSpeedUsedPsic (Xhc, PortSpeed, PortNumber);\r
     // If no match found in ext cap reg, fall back to PORTSC\r
     if (PortStatus->PortStatus == 0) {\r
       //\r