]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/UsbMass: Not retry if usb bot transfer execution fail
authorFeng Tian <feng.tian@intel.com>
Tue, 19 Jul 2016 05:56:03 +0000 (13:56 +0800)
committerFeng Tian <feng.tian@intel.com>
Wed, 3 Aug 2016 01:52:19 +0000 (09:52 +0800)
commit17f3e942bc527fbd75068d2d5752b6af54917487
tree86c7bc4ed8d73577045431467397deecc8d64fd6
parentfda951df682790693384380b7e995c86e451606c
MdeModulePkg/UsbMass: Not retry if usb bot transfer execution fail

The retry mechanism will bring issue if the usb device is unplugged
from XHCI HC but s/w is trying to access it through BlockIo. The
current cmd will get device error return status, but the sequential
cmds will be timeout. This behavior will cause system unresponsive
for a long while and bring bad user experience.

So we break the retry loop if found device error.

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