Revision: 16755
http://sourceforge.net/p/edk2/code/16755
Author: vanjeff
Date: 2015-02-04 13:05:33 +0000 (Wed, 04 Feb 2015)
Log Message:
-----------
MdeModulePkg/UsbBotPei: Correct wrong media type detection logic in UsbBotPei
(Sync patch r16661 from main trunk.)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <[email protected]>
Reviewed-by: Star Zeng <[email protected]>
Reviewed-by: Chao Zhang <[email protected]>
Revision Links:
--------------
http://sourceforge.net/p/edk2/code/16661
Modified Paths:
--------------
branches/UDK2014.SP1/MdeModulePkg/Bus/Usb/UsbBotPei/UsbBotPeim.c
Modified: branches/UDK2014.SP1/MdeModulePkg/Bus/Usb/UsbBotPei/UsbBotPeim.c
===================================================================
--- branches/UDK2014.SP1/MdeModulePkg/Bus/Usb/UsbBotPei/UsbBotPeim.c
2015-02-04 13:04:46 UTC (rev 16754)
+++ branches/UDK2014.SP1/MdeModulePkg/Bus/Usb/UsbBotPei/UsbBotPeim.c
2015-02-04 13:05:33 UTC (rev 16755)
@@ -1,6 +1,6 @@
/** @file
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions
@@ -656,10 +656,12 @@
PeiServices,
PeiBotDev
);
- //
- // retry the ReadFormatCapacity command
- //
- PeiBotDev->DeviceType = USBFLOPPY2;
+ if (EFI_ERROR (Status)) {
+ //
+ // retry the ReadFormatCapacity command
+ //
+ PeiBotDev->DeviceType = USBFLOPPY2;
+ }
break;
default:
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits