REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4077
Following the design described in the TCG specification,
the driver implementation of the CRB protocol does not require
enforcing completing the transition to goIdle at the end of a command
sequence.
Signed-off-by: Rodrigo Gonzalez Del Cueto <rodrigo.gonzalez.del.cueto@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
//\r
MmioWrite32 ((UINTN)&CrbReg->CrbControlRequest, PTP_CRB_CONTROL_AREA_REQUEST_GO_IDLE);\r
\r
- //\r
- // Only enforce Idle state transition if execution fails when CRBIdleBypass==1\r
- // Leave regular Idle delay at the beginning of next command execution\r
- //\r
- if (GetCachedIdleByPass () == 1) {\r
- Status = PtpCrbWaitRegisterBits (\r
- &CrbReg->CrbControlStatus,\r
- PTP_CRB_CONTROL_AREA_STATUS_TPM_IDLE,\r
- 0,\r
- PTP_TIMEOUT_C\r
- );\r
- }\r
-\r
return Status;\r
}\r
\r