audk/MdeModulePkg/Bus/Pci/XhciDxe
Star Zeng 958a81813b 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 <vladimir.olovyannikov@broadcom.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
2017-07-26 16:06:19 +08:00
..
ComponentName.c 1) remove wrong global variable usage because it will bring data corrupt if there are multiple XHCI host controllers. 2011-09-14 12:13:03 +00:00
ComponentName.h Enabling usb3.0 XHCI support. 2011-08-23 14:36:33 +00:00
UsbHcMem.c MdeModulePkg: Fix typos in comments and variables 2016-07-11 10:29:48 +08:00
UsbHcMem.h Update XHCI driver to use PCI IO AllocateBuffer/Map/Unmap to do DMA operation. 2013-08-12 08:51:55 +00:00
Xhci.c MdeModulePkg Xhci: Also RecoverHaltedEndpoint for BABBLE_ERROR 2017-07-26 16:06:19 +08:00
Xhci.h MdeModulePkg/XhciDxe: Check timeout URB again after stopping endpoint 2017-07-05 11:31:06 +08:00
XhciDxe.inf MdeModulePkg: XhciDxe: list ARM and AARCH64 as valid architectures 2015-03-16 19:57:21 +00:00
XhciDxe.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
XhciDxeExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
XhciReg.c MdeModulePkg: Refine casting expression result to bigger size 2017-03-06 14:33:20 +08:00
XhciReg.h Update XhcWaitOpRegBit to take Timout argument as microsecond. 2013-12-25 07:52:55 +00:00
XhciSched.c MdeModulePkg/XhciDxe: Make comments align with function 2017-07-11 08:51:13 +08:00
XhciSched.h MdeModulePkg/XhciDxe: Check timeout URB again after stopping endpoint 2017-07-05 11:31:06 +08:00