]> git.proxmox.com Git - mirror_edk2.git/commit
SecurityPkg: Add TPM PTP detection in Tpm12SubmitCommand.
authorYao, Jiewen <jiewen.yao@intel.com>
Wed, 27 Jan 2016 12:15:59 +0000 (12:15 +0000)
committerjyao1 <jyao1@Edk2>
Wed, 27 Jan 2016 12:15:59 +0000 (12:15 +0000)
commite4780913e5a2c0699f368a79ca3ff1c951053e88
treebd7ed14711c4cd1381dc27f0c08b6a19a3d9c349
parent1a4acc11360a89ada7cda08d4b4757855bbc4f16
SecurityPkg: Add TPM PTP detection in Tpm12SubmitCommand.

Previously, we only add PTP detection in Tpm12RequestUseTpm,
because RequestUseTpm does not check TPM command.
This patch also adds similar check in Tpm12SubmitCommand.
PTP device does not accept TPM12 command, so that it can
return error on PTP device, instead of wait till timeout.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com>
Reviewed-by: "Zhang, Chao B" <chao.b.zhang@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19755 6f19259b-4bc3-4df7-8a09-765794883524
SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12Tis.c