/** @file\r
PTP (Platform TPM Profile) CRB (Command Response Buffer) interface used by dTPM2.0 library.\r
\r
-Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2021, Intel Corporation. All rights reserved.<BR>\r
Copyright (c), Microsoft Corporation.\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
// Command completed, but buffer is not enough\r
//\r
Status = EFI_BUFFER_TOO_SMALL;\r
- goto GoReady_Exit;\r
+ goto GoIdle_Exit;\r
}\r
\r
*SizeOut = TpmOutSize;\r
DEBUG ((DEBUG_VERBOSE, "\n"));\r
DEBUG_CODE_END ();\r
\r
-GoReady_Exit:\r
- //\r
- // Goto Ready State if command is completed successfully and TPM support IdleBypass\r
- // If not supported. flow down to GoIdle\r
- //\r
- if (GetCachedIdleByPass () == 1) {\r
- MmioWrite32 ((UINTN)&CrbReg->CrbControlRequest, PTP_CRB_CONTROL_AREA_REQUEST_COMMAND_READY);\r
- return Status;\r
- }\r
-\r
//\r
// Do not wait for state transition for TIMEOUT_C\r
// This function will try to wait 2 TIMEOUT_C at the beginning in next call.\r