summaryrefslogtreecommitdiff
path: root/ShellPkg/Application/Shell/ConsoleLogger.c
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2018-03-02 17:35:41 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2018-03-03 15:49:24 +0800
commit06e24096670ba13eaff39496498a5d9e41a37034 (patch)
tree892589c72d15e8563502482e21d92bbb0eb6c335 /ShellPkg/Application/Shell/ConsoleLogger.c
parentcd626ef0fbc93d22c01245d3cdc55ddcfb85d7cd (diff)
downloadedk2-06e24096670ba13eaff39496498a5d9e41a37034.zip
edk2-06e24096670ba13eaff39496498a5d9e41a37034.tar.gz
edk2-06e24096670ba13eaff39496498a5d9e41a37034.tar.bz2
MdeModulePkg/UsbMass: Retry CMD for MediaChanged sense key
When a USB device reports failure for a CMD and REQUEST SENSE returns Media Changed key, UsbBootExecCmdWithRetry() stops to retry CMD and returns EFI_MEDIA_CHANGED to caller. For this case, the CMD should be retried until success, getting NoMedia sense key or timeout. The patch updates UsbBootExecCmdWithRetry() to follow the above rule so EFI_MEDIA_CHANGED is no longer returned. UsbBootDetectMedia() is updated accordingly. Because UsbBootGetParams() is called for new plugged USB storage, and some USB storage devices may report Media Changed key, UsbBootGetParams() is updated to treat it as a Success. This change could fix the issue that some USB storage devices cannot be detected. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'ShellPkg/Application/Shell/ConsoleLogger.c')
0 files changed, 0 insertions, 0 deletions