diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2020-09-28 20:00:12 +0200 |
---|---|---|
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2020-10-01 23:21:03 +0200 |
commit | 55707d531af62bd87c1b7e8d66fd9798094f9b3b (patch) | |
tree | 4c874510faad3ff787284e22459493d82e7d1883 /drivers/char/pcmcia | |
parent | tpm: use %*ph to print small buffer (diff) | |
download | linux-55707d531af62bd87c1b7e8d66fd9798094f9b3b.tar.xz linux-55707d531af62bd87c1b7e8d66fd9798094f9b3b.zip |
tpm_tis: Add a check for invalid status
Some TIS based TPMs can return 0xff to status reads if the locality
hasn't been properly requested. Detect this condition by checking the
bits that the TIS spec specifies must return zero are clear and return
zero in that case. Also drop a warning so the problem can be
identified in the calling path and fixed (usually a missing
try_get_ops()).
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'drivers/char/pcmcia')
0 files changed, 0 insertions, 0 deletions