tpm: wait for valid status
authorRoman Kapl <rka@sysgo.com>
Thu, 16 May 2019 16:32:48 +0000 (18:32 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 11 Jul 2019 18:11:18 +0000 (14:11 -0400)
commit27eb177b393e19af9716a2fa4969cd7b26ac3dc2
tree5bd023cb732a9b23bf6d66c37b26995dac9ab218
parent2e8a7202467acc3b40db864468c862327716b0ae
tpm: wait for valid status

The TPM specification says that the EXPECT_DATA bit is not valid until
the VALID bit is set. Wait for that bit to be set. Fixes problems with
Ifineon SPI TPM.

Signed-off-by: Roman Kapl <rka@sysgo.com>
drivers/tpm/tpm2_tis_spi.c