tpm: ibmvtpm: Add support for TPM2
authorStefan Berger <stefanb@linux.ibm.com>
Thu, 12 Mar 2020 15:53:32 +0000 (11:53 -0400)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sun, 15 Mar 2020 18:13:33 +0000 (20:13 +0200)
commit18b3670d79ae9948a5839f0956a47e4eb4130a63
tree22fa47b4b100427f22ec14a2074493d2015a912a
parentd8d74ea3c00214aee1e1826ca18e77944812b9b4
tpm: ibmvtpm: Add support for TPM2

Support TPM2 in the IBM vTPM driver. The hypervisor tells us what
version of TPM is connected through the vio_device_id.

In case a TPM2 device is found, we set the TPM_CHIP_FLAG_TPM2 flag
and get the command codes attributes table. The driver does
not need the timeouts and durations, though.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Acked-by: Nayna Jain <nayna@linux.ibm.com>
Tested-by: Nayna Jain <nayna@linux.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm2-cmd.c
drivers/char/tpm/tpm_ibmvtpm.c