]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
MdeModulePkg/UsbBus: reduce the port status polling before port reset
authorFeng Tian <feng.tian@intel.com>
Wed, 6 Jul 2016 02:18:37 +0000 (10:18 +0800)
committerFeng Tian <feng.tian@intel.com>
Mon, 25 Jul 2016 01:36:41 +0000 (09:36 +0800)
commitbf4808d6443775c9c5170b0ca9c521e6d9c977c1
tree55cadf2c8c0b9b4ecdfbc212e298b3c6c2c4ae15
parent698554923f055daf560d4954d0cc735d3df30430
MdeModulePkg/UsbBus: reduce the port status polling before port reset

This change is used to remove the port status polling in port reset
functions.

Why it's needed is because:
1) The same polling on same port has taken place prior to this removed
one. See UsbEnumeratePort()->GetPortStatus(). So this polling in
UsbEnumerateNewDev()->ResetPort() is redundant.
2) EDKII Xhci driver hooks all GetPortStatus() operations. If we don't
remove this one, XHCI driver's XhcPollPortStatusChange() may enter twice
in reset process and wrongly think the device is unplugged.

Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c