From: Jarkko Sakkinen Date: Wed, 4 Feb 2015 14:21:09 +0000 (+0200) Subject: tpm, tpm_tis: fix TPM 2.0 probing X-Git-Tag: fixes-v4.0-rc1~82^2~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d5f2051cd24adc19a645e920344e05afe8d69b9;p=pandora-kernel.git 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-diff-tree failed