Patch from Benoit Sansoni <benoit.sansoni@gmail.com> in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295103
The tpmtis driver fails to operate correctly with the STMicroelectronics ST33KTPM2X32CKE3 TPM2 chip.
After reading the response, the device must be explicitly transitioned back to the command-ready state before the locality is relinquished; otherwise subsequent commands fail.
Write TPM_STS_CMD_RDY to the TPM_STS register (with a write barrier) at the end of tpmtis_transmit(), before relinquishing the locality.