]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
tpm/ppi: Display up to 101 operations as define for version 1.3
authorStefan Berger <stefanb@linux.ibm.com>
Thu, 17 Jan 2019 17:41:33 +0000 (12:41 -0500)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 13 Feb 2019 07:48:53 +0000 (09:48 +0200)
TPM PPI 1.3 defines operations up to number 101. We need to query up
to this number to show the user what the firmware implements.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Tested-by: David Safford <david.safford@ge.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm_ppi.c

index 88ecdae1df0309f9413469865ea3cc306fec1a6e..fdfd6271351ec4137ae8b92fd35a74b9602ccf67 100644 (file)
@@ -28,7 +28,7 @@
 #define TPM_PPI_FN_GETRSP      5
 #define TPM_PPI_FN_SUBREQ2     7
 #define TPM_PPI_FN_GETOPR      8
-#define PPI_TPM_REQ_MAX                22
+#define PPI_TPM_REQ_MAX                101 /* PPI 1.3 for TPM 2 */
 #define PPI_VS_REQ_START       128
 #define PPI_VS_REQ_END         255