Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp709071imm; Mon, 1 Oct 2018 17:42:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV61tSAtVA3TuBLRzHoNqt+YFvF11/q+hzdSKfRCuZR/d+nD37jfKth81RQNywtuVW60I9LRW X-Received: by 2002:a63:df06:: with SMTP id u6-v6mr7350088pgg.202.1538440932878; Mon, 01 Oct 2018 17:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538440932; cv=none; d=google.com; s=arc-20160816; b=EBBVjDGN8a2qCUdBnlgtroR9wLGyfJ8SnxbXYgx5iwKot0ZV6jQJjJ4oG3TV4sabzl 6qlSrvm2d02WX56W1MlUy1I4477JQ9pWNkH1KQd61Rq7m0ncokpErotMLV7s46YjAUWn 7dvDNg5uWgyRUzMtK4+FyuFdQdCx4i2vk/Lou/6g0mmVqXmTKU6yjAHGngoxOQrfMnqJ XLeL4RAhF+g0Emf4prWq8xETodYN3OV6i9ESDt++CzpkHJ3ykPT3vBCSUMzdUUgtmI9Y Up+M7P0pzuqwyJ6v0tSqQkwpMLoT6iIBqbHi573ahGgrWKiSoFiGJmldFEDBvN5wXdV3 OQjQ== 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:cc :to:from:date; bh=ywP3/ZzDsHvIhvtxPOgb0/SwnHGZgZqQvPIKvagZ+bU=; b=j6JwF/q5IRp5ViC977q5VPE7GXq0As83AoJlQpI7viuPtRYLP0y4HgVeP444trrLHD J12Jy4N6svECk8cM3Kzyp3zZ5URaey8jUzNcXMQmlQbjc/4Lrou3kwWnV43gX1QFvIcr 30WqKwntdNB0EZosSkiqQK/6Mxd3j1VhM8k9CJoK38yz/Y4xxbPDTL/7kj0yTV/2Ykau yCMp4qmF6Kgz50ynkV62QPXlZwHnnLaN6Zji5AmDFiGo8t2GfrG1SbMaEUUTOopBDuS/ 66YPCelboOGOQbb0TS7O51puMRe8kmfPjpYOk4wvmX5OBV8lVdY+ScawYRohtkvsARvx k9vA== 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 n9-v6si12213839pgt.267.2018.10.01.17.41.57; Mon, 01 Oct 2018 17:42:12 -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 S1726529AbeJBHVB (ORCPT + 99 others); Tue, 2 Oct 2018 03:21:01 -0400 Received: from mga17.intel.com ([192.55.52.151]:55855 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbeJBHVB (ORCPT ); Tue, 2 Oct 2018 03:21:01 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Oct 2018 17:40:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,329,1534834800"; d="scan'208";a="77695704" Received: from hubermic-mobl.ger.corp.intel.com (HELO localhost) ([10.252.54.31]) by orsmga007.jf.intel.com with ESMTP; 01 Oct 2018 17:40:26 -0700 Date: Tue, 2 Oct 2018 03:40:24 +0300 From: Jarkko Sakkinen To: Tomas Winkler Cc: Jason Gunthorpe , Nayna Jain , Alexander Usyskin , Tadeusz Struk , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 01/21] tpm2: add new tpm2 commands according to TCG 1.36 Message-ID: <20181002004024.GB23753@linux.intel.com> References: <20180928223035.14471-1-tomas.winkler@intel.com> <20180928223035.14471-2-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180928223035.14471-2-tomas.winkler@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 29, 2018 at 01:30:15AM +0300, Tomas Winkler wrote: > 1. TPM2_CC_LAST has moved from 182 to 193 > 2. Convert tpm2_ordinal_duration from an array into a switch statement, > as there are not so many commands that require special duration > relative to a number of commands, the switch statement function > is called tpm2_ordinal_duration_index(). > 3. Fix kdoc comments for tpm2_calc_ordinal_duration(). > > Signed-off-by: Tomas Winkler > Tested-by: Jarkko Sakkinen > --- > > V2-V3: Rebase. > V4: 1. Fix kdoc > 2. Rename tpm2_ordinal_duration() to tpm2_ordinal_duration_index() > 3. Move the two functions close to each other in the file. > V5: Adjust the kdoc to the new standard. Reviewed-by: Jarkko Sakkinen /Jarkko