The original fix for the intermittent self test failure contained a bug in the retry loop that resent the command with a mangled header. This was discovered when coding up the TPM2_RC_RETRY handling, so this two patch series bases the intermittent self test failure fix on the working TPM2_RC_RETRY handling code. This time I actually created an emulator that sends TPM2_RC_TESTING and verified it does work. James --- James Bottomley (2): tpm: add retry logic tpm: fix intermittent failure with self tests drivers/char/tpm/tpm-interface.c | 87 +++++++++++++++++++++++++++++++++------- drivers/char/tpm/tpm.h | 2 + drivers/char/tpm/tpm2-cmd.c | 54 ++++++++----------------- 3 files changed, 90 insertions(+), 53 deletions(-) -- 2.12.3