Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3095716ybt; Mon, 22 Jun 2020 15:02:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdxs7TTIgpxuscF4iixdns20r3+fxiT7MrLH2LnjFkOQi3KgWc1uSjjhs5Q9AK52kYS+Nl X-Received: by 2002:a17:907:212b:: with SMTP id qo11mr891500ejb.452.1592863373443; Mon, 22 Jun 2020 15:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592863373; cv=none; d=google.com; s=arc-20160816; b=epnJ5qDhsQueOGXVumACSMb2Tx/Pgfc8XuLfi0pQxVL0QmwQJLdmsyMPt87rqkj4Fe LHL1UmcUxCjimL9HfDO7LtBVHm8wo42oU17PbXPS0TcHSm1C8SYm4b9V6t2zWt1g/EvW grjhY5sR1TpXqIENhfh1SxEBkMOdxrxN0HooWKcDEjF3yR/kZcLoThQpIM0UTNYDVrGV GZetSZfMWXd70cTzrPKFTIwJQO4i6EFV9732Flvr0NuHr1+oBahtB/EiZ+V74rM2PWrj Z7cMb2nRxVj5QZV/o+LE4OXnl5S7myVNVG9bURBe6EORQDdAI4m6JgUmtS+X8lQfDAt2 jhmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=ZXa+7906KweByQA7s/WsNO8pDfzWR2PF8CMqPHH3xRE=; b=sWCZa6IjgXQlEYf/TDIe3hywzZmsRdkUUHXjJu/bcSaGtEYSAXIwyNbNXK3yyZNjes TUU9kgOfQuw5WZPpPHf3nB5deAeIywo3c2ZGC6R8e14GnBCw656NbSjKbdcbbHqBKsbH Xsw5D5kR9+HXx6j5dBR7aWIWz4Bh/yu8qrNPkq3pZazrnhj/aQ5kt1ZYSbDS/GI0uoy3 qsn/7RAzIzFEPOXP1TNqJhP7Mk2hWOxO77ERGHD+KRcSdiIi4mVUFoB8OVCYzw4N2L3d B+ErXc24t7ovISFk0k7MQ9Ni9+tXeX9nYtdl07kcbGpwcdAK7R2aG72qiR4zkE6nFnmS FfsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id h16si5578745edr.393.2020.06.22.15.02.30; Mon, 22 Jun 2020 15:02:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730843AbgFVV7e (ORCPT + 99 others); Mon, 22 Jun 2020 17:59:34 -0400 Received: from mga01.intel.com ([192.55.52.88]:9787 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730765AbgFVV7e (ORCPT ); Mon, 22 Jun 2020 17:59:34 -0400 IronPort-SDR: YNpJ5+bxd3wR5TagIo+MocH5MLJ33w30QuLwM5b3d+ENgpuIArwMY94DxJWs0uPpEsPBzgxI+S s5T2NqnVsbfg== X-IronPort-AV: E=McAfee;i="6000,8403,9660"; a="161967180" X-IronPort-AV: E=Sophos;i="5.75,268,1589266800"; d="scan'208";a="161967180" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2020 14:59:33 -0700 IronPort-SDR: mRBtvo2zY+7y2bE8mNE0Cb73kyWqwyHB4DbRHe1Bz/S/GoLN87diVCPnqSis7qkGJ9CjHSEBN9 fHonmyKnmF8g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,268,1589266800"; d="scan'208";a="263121248" Received: from jczajka-mobl.ger.corp.intel.com (HELO localhost) ([10.249.40.133]) by fmsmga007.fm.intel.com with ESMTP; 22 Jun 2020 14:59:23 -0700 Date: Tue, 23 Jun 2020 00:59:22 +0300 From: Jarkko Sakkinen To: amirmizi6@gmail.com Cc: Eyal.Cohen@nuvoton.com, oshrialkoby85@gmail.com, alexander.steffen@infineon.com, robh+dt@kernel.org, peterhuewe@gmx.de, christophe-h.richard@st.com, jgg@ziepe.ca, arnd@arndb.de, gregkh@linuxfoundation.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, oshri.alkoby@nuvoton.com, tmaimon77@gmail.com, gcwilson@us.ibm.com, kgoldman@us.ibm.com, Dan.Morav@nuvoton.com, oren.tanami@nuvoton.com, shmulik.hager@nuvoton.com, amir.mizinski@nuvoton.com, Christophe Ricard Subject: Re: [PATCH v11 3/8] tpm: tpm_tis: Add retry in case of protocol failure or data integrity (on I2C only) failure. Message-ID: <20200622215922.GE22727@linux.intel.com> References: <20200618134344.243537-1-amirmizi6@gmail.com> <20200618134344.243537-4-amirmizi6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200618134344.243537-4-amirmizi6@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 18, 2020 at 04:43:38PM +0300, amirmizi6@gmail.com wrote: > From: Amir Mizinski > > Added a retry mechanism on any protocol error. In addition, a retry is > added in case of a data integrity issue in the I2C bus protocol. The check > is performed after sending a command to the TPM and after receiving a > response from the TPM. No chance to merge this without reasoning why on any protocol error we should retry. It's not reasoned here. Unfotunately, with this premise I cannot merge this. /Jarkko