]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: Remove tpm_show_caps_1_2
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Wed, 18 Sep 2013 00:19:44 +0000 (18:19 -0600)
committerPeter Huewe <peterhuewe@gmx.de>
Tue, 22 Oct 2013 17:42:41 +0000 (19:42 +0200)
commit1d2a09a82a97550d6f3fd6315046777e42b6e2da
tree70bee2856387ab821ae02fe95b7fecc2c710871f
parentaa67ec12b207299eda98aa45379d82d754c1422a
tpm: Remove tpm_show_caps_1_2

The version of the TPM should not depend on the bus it is connected
through. 1.1, 1.2 and soon 2.0 TPMS will be all be able to use the
same bus interfaces.

Make tpm_show_caps try the 1.2 capability first. If that fails then
fall back to the 1.1 capability. This effectively auto-detects what
interface the TPM supports at run-time.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Joel Schopp <jschopp@linux.vnet.ibm.com>
Reviewed-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm_i2c_infineon.c
drivers/char/tpm/tpm_i2c_stm_st33.c
drivers/char/tpm/tpm_ibmvtpm.c
drivers/char/tpm/tpm_tis.c