From 4d5f2051cd24adc19a645e920344e05afe8d69b9 Mon Sep 17 00:00:00 2001 From: Jarkko Sakkinen Date: Wed, 4 Feb 2015 16:21:09 +0200 Subject: [PATCH] tpm, tpm_tis: fix TPM 2.0 probing If during transmission system error was returned, the logic was to incorrectly deduce that chip is a TPM 1.x chip. This patch fixes this issue. Also, this patch changes probing so that message tag is used as the measure for TPM 2.x, which should be much more stable. A separate function called tpm2_probe() is encapsulated because it can be used with any chipset. Fixes: aec04cbdf723 ("tpm: TPM 2.0 FIFO Interface") Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger Reviewed-by: Peter Huewe Signed-off-by: Peter Huewe --- Reading git-format-patch failed