]> asedeno.scripts.mit.edu Git - linux.git/commit
tpm_tis: verify locality released before returning from release_locality
authorJerry Snitselaar <jsnitsel@redhat.com>
Sat, 5 May 2018 19:54:53 +0000 (12:54 -0700)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 14 May 2018 10:28:31 +0000 (13:28 +0300)
commit33bafe90824bc9584fad535410bebc1fbe382fdf
tree11cbc8b6f638f3d98c794b75c20a1c05a3f336f7
parent1fbad3028664e114d210dc65d768947a3a553eaa
tpm_tis: verify locality released before returning from release_locality

For certain tpm chips releasing locality can take long enough that a
subsequent call to request_locality will see the locality as being active
when the access register is read in check_locality. So check that the
locality has been released before returning from release_locality.

Cc: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Cc: Peter Huewe <peterhuewe@gmx.de>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Reported-by: Laurent Bigonville <bigon@debian.org>
Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
Tested-by: Laurent Bigonville <bigon@debian.org>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm_tis_core.c