]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commit
tpm: Wait for tpmRegValidSts flag on CRB interface before probing
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Mon, 19 Mar 2018 16:00:27 +0000 (12:00 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 21 Mar 2018 14:34:53 +0000 (10:34 -0400)
commit408630ef19499ed9ca5a7e90721271adf599c975
treeb0fe7adfcb8ed8c4a4f2c34b8552c70d9b8829d5
parent5adc8bdea6a77bdb457d9cbca9a49a7d01cc25cd
tpm: Wait for tpmRegValidSts flag on CRB interface before probing

Wait for the tpmRegValidSts flag on the TPM_LOC_STATE_x register to
be set; we expect the locAssigned flag to not be set.

Real hardware seems to set the tpmRegValidSts flag without for
example requesting access to a locality.

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