]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/XhciDxe/Xhci.c
MdeModulePkg Xhci: Also RecoverHaltedEndpoint for BABBLE_ERROR
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / XhciDxe / Xhci.c
index 20ad3f1611979ff187abb7fb47c0ed800be32fa8..c884f4c3146c1977b2e154013d9b3fcc5a4aa209 100644 (file)
@@ -801,7 +801,7 @@ XhcTransfer (
   *TransferResult = Urb->Result;\r
   *DataLength     = Urb->Completed;\r
 \r
   *TransferResult = Urb->Result;\r
   *DataLength     = Urb->Completed;\r
 \r
-  if (*TransferResult == EFI_USB_ERR_STALL) {\r
+  if ((*TransferResult == EFI_USB_ERR_STALL) || (*TransferResult == EFI_USB_ERR_BABBLE)) {\r
     ASSERT (Status == EFI_DEVICE_ERROR);\r
     RecoveryStatus = XhcRecoverHaltedEndpoint(Xhc, Urb);\r
     if (EFI_ERROR (RecoveryStatus)) {\r
     ASSERT (Status == EFI_DEVICE_ERROR);\r
     RecoveryStatus = XhcRecoverHaltedEndpoint(Xhc, Urb);\r
     if (EFI_ERROR (RecoveryStatus)) {\r