Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3360438ybl; Sun, 12 Jan 2020 16:10:03 -0800 (PST) X-Google-Smtp-Source: APXvYqytEA6sAXCyy4zxAwqZmpN7zhI6EuIK1fzyQE3u5uw34Ap6Da0UrV3Af7DcqGUCygu+gACL X-Received: by 2002:a05:6808:a83:: with SMTP id q3mr11142388oij.0.1578874203758; Sun, 12 Jan 2020 16:10:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578874203; cv=none; d=google.com; s=arc-20160816; b=IkbqYGKbfWQ9Q25WlXJ3BDY6bbgl4p4bMTEw3U1nJfYyCYv44yJl5hiGcMm2YXOKHv vJCsd/t1bwXaZuB+6Bq2D6uevURQ8fiUBGKWuNdGFFvhLbQV/k0fQrTMehhQvzFmM3NA HknmkO7NE+88C8PZBRvbA8JnKX10iMFe7IVV8eC745h5xn841/fTy72LvF2LPKqbKzwo 7FzEIAZnB/XYbCgoE1zsZPKkWnYy3m+KHxan4qEPtBfo9Y6YT+/sLoryF4qLvhTsCMYU WB5Xk6xwHSvQp6KrG/ycHgMQxMwoVwiGoH1fURSy735xXQtXWOrkIAjg9BFMt2o5s1UL 21+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date; bh=NtjylIkzQ92mulwwcY8Boa8AQpGUsJI4yWTNZddqyic=; b=Tfv12SpWFvul4KPwmbDSL5mvGNJPtASRnNbcxvPjZYroDlayCAVGjiN4u3//QIYD3l EUAxqUJcpE+cz604EycQHZI8OUxhqHGTfRDJEo+l3q4PNOmnngG+RKYD0bcnBiaKRnq/ 4zKWPK+tuZupRDAzmjK0jvGAiJeVkn+WZRjpQfgMaQ1s82QUDSVPDp8NOrcHtrlIyt/W 5xKEfrOIDUOEuznrho/v6BUtG58oSTIbZ5hZJT/kAgJzvHNOP5uxzJ4vmwR3/Gjb/53s 9HYN9jtykQeTILadzA89OzOLv9nzGu3qzYqkTHEHz1IBO1Xf45YsmViQ7mgurkez51Li qYQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p83si4933492oih.198.2020.01.12.16.09.51; Sun, 12 Jan 2020 16:10:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387535AbgAMAI3 (ORCPT + 99 others); Sun, 12 Jan 2020 19:08:29 -0500 Received: from mga11.intel.com ([192.55.52.93]:52692 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387460AbgAMAI2 (ORCPT ); Sun, 12 Jan 2020 19:08:28 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jan 2020 16:08:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,426,1571727600"; d="scan'208";a="247554545" Received: from akurtz1-mobl.ger.corp.intel.com (HELO localhost) ([10.252.10.99]) by fmsmga004.fm.intel.com with ESMTP; 12 Jan 2020 16:08:25 -0800 Date: Mon, 13 Jan 2020 02:08:24 +0200 From: Jarkko Sakkinen To: linux-kernel@vger.kernel.org, Mimi Zohar , Peter Huewe , Jason Gunthorpe , linux-integrity@vger.kernel.org Subject: Re: [PATCH v4] tpm: Add tpm_version_major sysfs file Message-ID: <20200113000824.GC16145@linux.intel.com> References: <20191030225843.23366-1-jsnitsel@redhat.com> <20191128010826.w4ixlix3s3ovta3m@cantor> <20191129235131.GA21546@linux.intel.com> <20200109214935.ud7p7uwjimilxvi7@cantor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200109214935.ud7p7uwjimilxvi7@cantor> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 09, 2020 at 02:49:35PM -0700, Jerry Snitselaar wrote: > On Sat Nov 30 19, Jarkko Sakkinen wrote: > > On Wed, Nov 27, 2019 at 06:08:26PM -0700, Jerry Snitselaar wrote: > > > On Wed Oct 30 19, Jerry Snitselaar wrote: > > > > 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 > > > > Cc: Mimi Zohar > > > > Cc: Peter Huewe > > > > Cc: Jason Gunthorpe > > > > Cc: linux-integrity@vger.kernel.org > > > > Signed-off-by: Jerry Snitselaar > > > > --- > > > > v4: - Change file name to tpm_version_major > > > > - Actually display just the major version. > > > > - change structs to tpm1_* & tpm2_* > > > > instead of tpm12_* tpm20_*. > > > > v3: - Change file name to version_major. > > > > v2: - Fix TCG usage in commit message. > > > > - Add entry to sysfs-class-tpm in Documentation/ABI/stable > > > > > > > > Documentation/ABI/stable/sysfs-class-tpm | 11 ++++++++ > > > > drivers/char/tpm/tpm-sysfs.c | 34 +++++++++++++++++++----- > > > > 2 files changed, 38 insertions(+), 7 deletions(-) > > > > > > > > > > Anyone else have feedback? > > > > I can apply this after the issues on hand have been sorted out. > > > > /Jarkko > > > > Hi Jarkko, > > Will this get queued up for 5.6? Thanks for reminding and apologies for forgetting this! I'll see what I can do. /Jarkko