Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4676028ybg; Tue, 29 Oct 2019 10:41:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1dhExizLdZ17vo9GU06Vlh3tmGTCCn7VerCDLcJkVCJz43hhsoMohxT/tGh+/uTppmZvb X-Received: by 2002:a17:906:1a13:: with SMTP id i19mr4573553ejf.46.1572370910529; Tue, 29 Oct 2019 10:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572370910; cv=none; d=google.com; s=arc-20160816; b=SCgoPE00XmG7z9IrB6MpRstxdgpaaYxEXxXIRslGC/L0PvuKA7ZHVLGycU+v4BTyjB PXqFCEPxkiU33tHegakX3Cy6ylJVtwlyB3sYyjLo63Xk3gIaFDMANJhTvG4DD4PfAvCM RipAnI0WDJLSBsaWsHlD0zlAW2aYD53IqpiWr/R13qtOxytgCUN3MehPlFM7r5ngxbBR Nwui8tdAQLQA+00e2h+Pu487PlfYpOSTDG5m9hfyo/WgeiH3yEXsGXby3yEOAaKLi0Qc ddd4BLgHCO09NwmwTg72WMgUgVz4EvXV0KjlAwvHp0fyaMohCVwJcaNbkMn9Uzt1X1iT ORCw== 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=ckzwL+rc/I3eZ3sWxKfpaXITLBG6MEL9yLnHdS6uFAk=; b=CbCL66B+OtNVfsqc5GnX4+srxtYC2qC2PvCc8NmFfJGXoDgAe8IwoFBn3kheYABb1D 9Pf70mnCQEw9Whc3TudQ1BwulLBwqIO6nPH5Sd8ZSGFs83qlouW6m2ZjyGJOxTF2m4bt h8Jrwgalz+fvMQfTcXTdccrEXOfuWqShDJVyR4x8fvgYdMSxys10fiKUVOYUfYT16DBX cnDouWRaH700S/Gjlad5OEpv/CbjR48dsQjvIpPW3Jl7ntSJVFkEWWgtFtyJwiEU9/ju FVvaKprspVdSQ0Sm65lo7Obu+HxA7t/XsHa3dxgI+RvnqpG39oU0X6blsx4MmTand4zg s54w== 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 i5si10174622edj.107.2019.10.29.10.41.27; Tue, 29 Oct 2019 10:41:50 -0700 (PDT) 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 S1731860AbfJ2JRf (ORCPT + 99 others); Tue, 29 Oct 2019 05:17:35 -0400 Received: from mga18.intel.com ([134.134.136.126]:18324 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729951AbfJ2JRe (ORCPT ); Tue, 29 Oct 2019 05:17:34 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Oct 2019 02:17:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,243,1569308400"; d="scan'208";a="401085901" Received: from jsakkine-mobl1.tm.intel.com (HELO localhost) ([10.237.50.122]) by fmsmga006.fm.intel.com with ESMTP; 29 Oct 2019 02:17:32 -0700 Date: Tue, 29 Oct 2019 11:17:31 +0200 From: Jarkko Sakkinen To: linux-kernel@vger.kernel.org, Peter Huewe , Jason Gunthorpe , linux-integrity@vger.kernel.org Subject: Re: [PATCH v2] tpm: Add major_version sysfs file Message-ID: <20191029091731.GC9896@linux.intel.com> References: <20191025193103.30226-1-jsnitsel@redhat.com> <20191028205313.GH8279@linux.intel.com> <20191028210507.7i6d6b5olw72shm3@cantor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191028210507.7i6d6b5olw72shm3@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 Mon, Oct 28, 2019 at 02:05:07PM -0700, Jerry Snitselaar wrote: > On Mon Oct 28 19, Jarkko Sakkinen wrote: > > On Fri, Oct 25, 2019 at 12:31:03PM -0700, Jerry Snitselaar wrote: > > > + return sprintf(buf, "%s\n", chip->flags & TPM_CHIP_FLAG_TPM2 > > > + ? "2.0" : "1.2"); > > > > This is not right. Should be either "1" or "2". > > > > /Jarkko > > Okay I will fix that up. Do we have a final decision on the file name, > major_version versus version_major? Well, I don't see how major_version would make any sense. It is not as future proof as version_major. Still waiting for Jason's feedback for this. /Jarkko