[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170313183546.fvsyaq2l52hd3coq@intel.com>
Date: Mon, 13 Mar 2017 20:35:46 +0200
From: Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>
To: Jason Gunthorpe <jgunthorpe@...idianresearch.com>
Cc: "Li, Meng" <Meng.Li@...driver.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"peterhuewe@....de" <peterhuewe@....de>,
"tpmdd@...horst.net" <tpmdd@...horst.net>,
"tpmdd-devel@...ts.sourceforge.net"
<tpmdd-devel@...ts.sourceforge.net>
Subject: Re: [PATCH] tpm: Add sysfs interface to show TPM family version
On Mon, Mar 13, 2017 at 10:55:47AM -0600, Jason Gunthorpe wrote:
> On Mon, Mar 13, 2017 at 04:59:58PM +0200, Jarkko Sakkinen wrote:
> > if (chip->flags & TPM_CHIP_FLAG_TPM2)
> > ret = sprintf(buf, "TPM 2.0");
> > else
> > ret = sprintf(buf, "TPM 1.x");
>
> And 1.x should be 1.2 or 1.1
>
> Jason
Or maybe just create a patch that adds "family_major", which prints
1 or 2.
That is sufficient to pick the right daemon in the user space for
example.
/Jarkko
Powered by blists - more mailing lists