]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commit
tpm: Handle unimplemented TIS_REG_IFACE_ID in tis_get_tpm_version()
authorStephen Douthit <stephend@silicom-usa.com>
Tue, 27 Feb 2018 19:17:11 +0000 (14:17 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 2 Mar 2018 15:59:36 +0000 (10:59 -0500)
commit5adc8bdea6a77bdb457d9cbca9a49a7d01cc25cd
tree845cf810edf1339d3bcfb80d654577bdd4b09945
parent96060ad1c38a3e90125aa4676b30828be126a4d5
tpm: Handle unimplemented TIS_REG_IFACE_ID in tis_get_tpm_version()

If a device reports 0xf in the InterfaceType field of the TPM_INTERFACE_ID,
then the rest of the fields are invalid, and the InterfaceVersion field of
the TPM_INTF_CAPABILITY register must be checked instead.

Signed-off-by: Stephen Douthit <stephend@silicom-usa.com>
Tested-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
src/hw/tpm_drivers.c