+ if (EFI_ERROR(Status)) {\r
+ return Status;\r
+ }\r
+\r
+ ResponseCode = SwapBytes32(Res.Header.responseCode);\r
+ switch (ResponseCode) {\r
+ case TPM_RC_SUCCESS:\r
+ case TPM_RC_INITIALIZE:\r
+ // TPM_RC_INITIALIZE can be returned if Tpm2Startup is not required.\r
+ return EFI_SUCCESS;\r
+ default:\r
+ DEBUG ((EFI_D_ERROR, "Tpm2Startup: Response Code error! 0x%08x\r\n", ResponseCode));\r
+ return EFI_DEVICE_ERROR;\r
+ }\r