Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753652AbdCMQz7 (ORCPT ); Mon, 13 Mar 2017 12:55:59 -0400 Received: from quartz.orcorp.ca ([184.70.90.242]:57357 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751068AbdCMQz4 (ORCPT ); Mon, 13 Mar 2017 12:55:56 -0400 Date: Mon, 13 Mar 2017 10:55:47 -0600 From: Jason Gunthorpe To: Jarkko Sakkinen Cc: "Li, Meng" , "linux-kernel@vger.kernel.org" , "peterhuewe@gmx.de" , "tpmdd@selhorst.net" , "tpmdd-devel@lists.sourceforge.net" Subject: Re: [PATCH] tpm: Add sysfs interface to show TPM family version Message-ID: <20170313165547.GB25664@obsidianresearch.com> References: <1489396817-24855-1-git-send-email-Meng.Li@windriver.com> <20170313115415.2czyr4woaq4h3ncr@intel.com> <529F9A9100AE8045A7A5B5A00A39FBB83DE9325F@ALA-MBC.corp.ad.wrs.com> <20170313145958.zoh2fdxnh3ytyr2z@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170313145958.zoh2fdxnh3ytyr2z@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.156 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 217 Lines: 9 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