On Sat, May 05, 2018 at 12:54:53PM -0700, Jerry Snitselaar wrote: > 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@xxxxxxxxxxxxxxx> > Cc: Peter Huewe <peterhuewe@xxxxxx> > Cc: Jason Gunthorpe <jgg@xxxxxxxx> > Reported-by: Laurent Bigonville <bigon@xxxxxxxxxx> > Signed-off-by: Jerry Snitselaar <jsnitsel@xxxxxxxxxx> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx> /Jarkko