[PATCH] tpm: Add sysfs interface to show TPM family version

2017-03-13 Thread Meng.Li
From: Limeng So far, there is not a sysfs interface for user space code to check the TPM family version(TPM1.x or TPM2). So, add a file named description in /sys/class/tpm/tpmX/ to show it. Signed-off-by: Meng Li --- drivers/char/tpm/tpm-chip.c | 70 ++

[PATCH] tpm: Add sysfs interface to show TPM hardware version

2017-03-12 Thread Meng.Li
From: Limeng So far, there is not a sysfs interface for user space code to check the TPM hardware version(TPM1.x or TPM2). So, add a file named description in /sys/class/tpm/tpmX/ to show it. Signed-off-by: Meng Li --- drivers/char/tpm/tpm-chip.c | 85