Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2859643imm; Fri, 19 Oct 2018 00:33:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV60S6/+EMCFUhWhbRXK1e0RiOe5Ow6/3v5WJG25ujPPPBUVnsoL+0i0mWpj52/Few0+Cc87A X-Received: by 2002:a63:5509:: with SMTP id j9-v6mr30950480pgb.208.1539934419884; Fri, 19 Oct 2018 00:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539934419; cv=none; d=google.com; s=arc-20160816; b=Y2IbPC90z3VvLVi0oXmfMpTdJEmr/B8r55OCUnmj68fMS56G2h5w7c7Wh4EjvSH10q sxRFwWwIjSuVkjhpdqlyp/9BJkXjuuWc1JbpgaaHWPoytSUchoPJiMdbykyHejFE39q3 GlX/s1Tvac39OMkG6ABbMBy3csFeJReLIO7Ffnri/b4Ga8CDZsDEg7VyLTy/etcYaqHF bm1+gEWgYFeCG0IdXjTsmpvv/+snhj53gjJQmPONSTl5BP1DrLRFO5E3PgM1bYi0ntlP az/LVXlmsTVzdkiUlHfc1LbkA8t7jJRofrEP3kgNWoiUgFBfk6v1kw8dJze2U2gUd5wn JcbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=Bh/+42Bvhljsk8ozj7esF6nwr/FPmD4yLI+3dEiaDDc=; b=b0HQpZyhrY6Ue4yzkKLy+y0LyRQWCcm++3Txw7vPAjF04V05lCyUITfpzFb+X8smt3 Je9G0ONHY56+PBPYsbmCsnVs5sz3e69dmFrFTC+F0gd63W3mZ1iYuhTjimndeyIqgmZO cqGYStQnqjP1NDJ7d97/1s51ZftLVaT0o2/Ms/QgCZXWP/ccGjXbD8vh6TVyc8Fcep3D HZkNqTCSsV9RCkjASatYfVziRKj54DBoPpuscgqeUE/hDz8h3/axl29wWkl1v3XZYna8 VhbMdP7sMDddV2bVIF5fKdSBMMqFHrLOA40ifDjVZ+qOiQxXvtBK01ws/7a/t+XuMqA9 xCMg== 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 e129-v6si24409150pgc.318.2018.10.19.00.33.24; Fri, 19 Oct 2018 00:33:39 -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 S1727215AbeJSPfq (ORCPT + 99 others); Fri, 19 Oct 2018 11:35:46 -0400 Received: from mga01.intel.com ([192.55.52.88]:1924 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726340AbeJSPfq (ORCPT ); Fri, 19 Oct 2018 11:35:46 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Oct 2018 00:30:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,399,1534834800"; d="scan'208";a="242572382" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga004.jf.intel.com with ESMTP; 19 Oct 2018 00:30:54 -0700 Received: from hasmsx107.ger.corp.intel.com (10.184.198.27) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 19 Oct 2018 00:30:54 -0700 Received: from HASMSX109.ger.corp.intel.com ([169.254.3.28]) by hasmsx107.ger.corp.intel.com ([169.254.2.223]) with mapi id 14.03.0319.002; Fri, 19 Oct 2018 10:30:51 +0300 From: "Winkler, Tomas" To: "jarkko.sakkinen@linux.intel.com" , "jgg@ziepe.ca" , "nayna@linux.ibm.com" CC: "nayna@linux.vnet.ibm.com" , "Struk, Tadeusz" , "linux-integrity@vger.kernel.org" , "Usyskin, Alexander" , "linux-security-module@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] tpm: tpm_i2c_nuvoton: use correct command duration for TPM 2.x Thread-Topic: [PATCH] tpm: tpm_i2c_nuvoton: use correct command duration for TPM 2.x Thread-Index: AQHUZ2btLmkTCCBG+k+DpgFokEiphqUl+QmA Date: Fri, 19 Oct 2018 07:30:50 +0000 Message-ID: <1539933995.19334.9.camel@intel.com> References: <20181017163223.25141-1-tomas.winkler@intel.com> <6e12d4b6-cb84-3be5-8a62-6868be43d43d@linux.ibm.com> In-Reply-To: <6e12d4b6-cb84-3be5-8a62-6868be43d43d@linux.ibm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.12.91.48] Content-Type: text/plain; charset="utf-8" Content-ID: <87AC378C383C2C49A85DEC6491EE7FF0@intel.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDE4LTEwLTE5IGF0IDEwOjE0ICswNTMwLCBOYXluYSBKYWluIHdyb3RlOg0KPiAN Cj4gT24gMTAvMTcvMjAxOCAxMDowMiBQTSwgVG9tYXMgV2lua2xlciB3cm90ZToNCj4gPiBkaWZm IC0tZ2l0IGEvZHJpdmVycy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