]> git.karo-electronics.de Git - linux-beck.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)
commite907481bed439cd04fb24084baab41015b89da6e
tree70bee2856387ab821ae02fe95b7fecc2c710871f
parentcb996158dfe8a31377700f46b7f3d69ddc5ae1e4
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