UINT32 AllHeaderSize;\r
UINT32 IncommingFwVersion;\r
UINT32 LastAttemptStatus;\r
+ EFI_STATUS GetAttributesStatus;\r
+ UINT64 AttributesSupported;\r
+ UINT64 AttributesSetting;\r
\r
Status = EFI_SUCCESS;\r
Updateable = 0;\r
\r
//\r
// Set flag so the descriptor is repopulated\r
- // This only applied to devices that do not require system reboot\r
+ // This is only applied to devices that do not require reset\r
//\r
- if (!PcdGetBool (PcdFmpDeviceSystemResetRequired)) {\r
- mDescriptorPopulated = FALSE;\r
+ GetAttributesStatus = FmpDeviceGetAttributes (&AttributesSupported, &AttributesSetting);\r
+ if (!EFI_ERROR (GetAttributesStatus)) {\r
+ if (((AttributesSupported & IMAGE_ATTRIBUTE_RESET_REQUIRED) == 0) ||\r
+ ((AttributesSetting & IMAGE_ATTRIBUTE_RESET_REQUIRED) == 0)) {\r
+ mDescriptorPopulated = FALSE;\r
+ }\r
}\r
\r
cleanup:\r