Re: [tpmdd-devel] [PATCH] tpm: Add sysfs interface to show TPM hardware version
From: Ken Goldman
Date: Tue Mar 14 2017 - 14:18:32 EST
On 3/13/2017 3:10 AM, Peter Huewe wrote:
And yes you are right there is currently no way, except for trial and
error, for the userspace to determine this. So an interface to get
this information makes sense to me.
In practice, I suspect that a single user space application won't
support both TPMs. It will send the first command, get an error
response code that says it's the wrong TPM, and exit.
Note that, although there is no overlap in the command API, the packet
format is compatible enough that a meaningful response can be returned.