From: Star Zeng Date: Tue, 25 Jul 2017 03:24:01 +0000 (+0800) Subject: MdeModulePkg Xhci: Also RecoverHaltedEndpoint for BABBLE_ERROR X-Git-Tag: edk2-stable201903~3776 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=958a81813bd9790b04199fce077918d08257e1a4;hp=958a81813bd9790b04199fce077918d08257e1a4;ds=sidebyside MdeModulePkg Xhci: Also RecoverHaltedEndpoint for BABBLE_ERROR REF: https://bugzilla.tianocore.org/show_bug.cgi?id=644 According to XHCI spec: 4.10.2.1 Stall Error 4.10.2.4 Babble Detected Error When a device transmits more data on the USB than the host controller is expecting for a transaction, it is defined to be babbling. In general, this is called a Babble Error. When a device sends more data than the TD Transfer Size bytes (TD Babble), unexpected activity that persists beyond a specified point in a (micro)frame (Frame Babble), or a packet greater than Max Packet Size (Packet Babble), the host controller shall set the Babble Detected Error in the Completion Code field of the TRB, generate an Error Event, and halt the endpoint (refer to Section 4.10.2.1). This patch is to also check for EFI_USB_ERR_BABBLE error returned as a TransferResult and then proceed to XhcRecoverhaltedEndPoint. Cc: Vladimir Olovyannikov Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Ruiyu Ni ---