REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1460

Refer to Uefi spec 2.8, the ResetData is valid while ResetStatus
is EFI_SUCCESS regardless of the ResetType is EfiResetPlatformSpecific
or not. So change the comments of NvmeShutdownAllControllers.

Cc: Jian J Wang <[email protected]>
Cc: Hao Wu <[email protected]>
Cc: Ray Ni <[email protected]>
Cc: Star Zeng <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Sean Brogan <[email protected]>
Cc: Michael Turner <[email protected]>
Cc: Bret Barkelew <[email protected]>
Signed-off-by: Zhichao Gao <[email protected]>
Reviewed-by: Hao Wu <[email protected]>
---
 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c 
b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c
index d1b106ef61..95f8b18bc4 100644
--- a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c
+++ b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c
@@ -966,10 +966,7 @@ NvmeControllerInit (
                                 EfiResetShutdown the data buffer starts with a 
Null-terminated
                                 string, optionally followed by additional 
binary data.
                                 The string is a description that the caller 
may use to further
-                                indicate the reason for the system reset. 
ResetData is only
-                                valid if ResetStatus is something other than 
EFI_SUCCESS
-                                unless the ResetType is 
EfiResetPlatformSpecific
-                                where a minimum amount of ResetData is always 
required.
+                                indicate the reason for the system reset.
                                 For a ResetType of EfiResetPlatformSpecific 
the data buffer
                                 also starts with a Null-terminated string that 
is followed
                                 by an EFI_GUID that describes the specific 
type of reset to perform.
-- 
2.21.0.windows.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#39219): https://edk2.groups.io/g/devel/message/39219
Mute This Topic: https://groups.io/mt/31209233/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to