]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: Add tpm_version_major sysfs file
authorJerry Snitselaar <jsnitsel@redhat.com>
Wed, 30 Oct 2019 22:58:43 +0000 (15:58 -0700)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 22 Jan 2020 08:46:51 +0000 (10:46 +0200)
commit3386e9981167aaa863c905ea011973b29f8e157d
tree3ea3270b56387af2fdcb63dc4bafe0ca06f3731c
parent62c3f9966233c97ac09fd7ac5f80e44599f15ca5
tpm: Add tpm_version_major sysfs file

Easily determining what TCG version a tpm device implements
has been a pain point for userspace for a long time, so
add a sysfs file to report the TCG major version of a tpm device.

Also add an entry to Documentation/ABI/stable/sysfs-class-tpm
describing the new file.

Cc: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Cc: Mimi Zohar <zohar@linux.ibm.com>
Cc: Peter Huewe <peterhuewe@gmx.de>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: linux-integrity@vger.kernel.org
Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Documentation/ABI/stable/sysfs-class-tpm
drivers/char/tpm/tpm-sysfs.c