]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/UsbMass: Revert "map -r" media change detection fix
authorRuiyu Ni <ruiyu.ni@intel.com>
Fri, 2 Mar 2018 09:30:06 +0000 (17:30 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Sat, 3 Mar 2018 07:49:04 +0000 (15:49 +0800)
commit19d76ae60819d9838acbb0e6f70700bb13bef36a
treea5ab32b0476cdda4eb05147c8fdaef1a2ab288a7
parent1bc5d2b3c7f2848ec8847a2a28206e603e16065d
MdeModulePkg/UsbMass: Revert "map -r" media change detection fix

This reverts commit a662afb5b023a187ef638d3cb0e0c313ad39a7fc.
* MdeModulePkg/UsbStorage: Fix "map -r" cannot detect media change

The above commit fixed the following issue:
When system boots to Shell without CDROM inside USB CDROM drive,
and then user inserts the CDROM with Eltorito file system,
"map -r" cannot show the new ELtorito file system.
The commit caused EFI_MEDIA_CHANGED status returned from
UsbBootDetectMedia().

But that fix exposes another issue:
When issuing ReadCapacity command to certain USB key
(Kingston DataTraveler G3 8GB) after it's hot-plugged, USB device
returns STALL error and RequestSense command returns media changed
sense data. (Most of the USB keys return SUCCESS for ReadCapacity
command after hot-plug.)

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBoot.c