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)
commit7084eddf6be94e73f8298c1a28078b91536f2975
tree3ea3270b56387af2fdcb63dc4bafe0ca06f3731c
parentc269e876c5affd4d240d5fc85b29e9c9942d8465
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