audk/MdeModulePkg/Bus/Pci/XhciDxe
Feng Tian 26b8501280 MdeModulePkg/Xhci: Add 10ms delay before sending SendAddr cmd to dev
We send ADDRESS DEVICE CMD in XhcInitializeDeviceSlot(), which will
cause XHC issue a USB SET_ADDRESS request to the USB Device.

According to USB spec, there should have a 10ms delay before this
operation after resetting a given port.

But in original code, there is a possible path which may have no such
10ms delay:
UsbHubResetPort()->UsbHubSetPortFeature()->Stall(20)->UsbHubGetPortSt
atus()->XhcPollPortStatusChange()->(if RESET_C bit is set)->
XhcInitializeDeviceSlot()->(if RESET_C bit is set)->Stall(10)

So this patch is used to fix above issue.

Cc: Star Zeng <star.zeng@intel.com>
Cc: Baraneedharan Anbazhagan <anbazhagan@hp.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Tested-by: Baraneedharan Anbazhagan <anbazhagan@hp.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
2016-11-24 12:44:50 +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/Bus: Fix typos in comments 2016-10-27 09:11:16 +08:00
Xhci.h MdeModulePkg/Xhci: Add 10ms delay before sending SendAddr cmd to dev 2016-11-24 12:44:50 +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/XhciDxe:1ms delay before access MMIO reg during reset 2016-09-21 12:42:05 +08:00
XhciReg.h Update XhcWaitOpRegBit to take Timout argument as microsecond. 2013-12-25 07:52:55 +00:00
XhciSched.c MdeModulePkg/Xhci: Add 10ms delay before sending SendAddr cmd to dev 2016-11-24 12:44:50 +08:00
XhciSched.h MdeModulePkg/Xhci: Remove TDs from transfer ring when timeout happens 2015-08-26 01:19:09 +00:00