Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4382196ima; Mon, 4 Feb 2019 15:42:46 -0800 (PST) X-Google-Smtp-Source: AHgI3IaEXURJl+hHh/RPvRYinvg1O4eW+AquVpXxCaYqOIns0Z4XfIHsGw5gY65D0KuHr15/Z4Ah X-Received: by 2002:a63:c40a:: with SMTP id h10mr98660pgd.131.1549323766483; Mon, 04 Feb 2019 15:42:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549323766; cv=none; d=google.com; s=arc-20160816; b=i01bqWmgB5mTILKc1AYQLAgDYhElWO6lmxdh5Sh4SVZlf1BSQgELXA7Tfcu9QVxhwu UFfQcarMfyUKJ44jMCMm7OJYRchDdQ6G+CV9RPhJxdi82hES1eXAgRF6hz4wtSSTyvD1 AkIMr32iHgQzbxXznr3w7q8QzLZ3RukDYLosXMgvfrJgp4D0NmNCAjTPFuejyr1EnxIT vZ7oayvkjF6tBrXQBoVlpCcFBhJ+tXI6MWvusAGgiZpMVrTSPZ3eU/BPilrNzWDkHbT9 7JrFmwtsrkmNUeY4/90SsZPoVhwiAdoL5xxElcNAYacRdXyhHOpbczxb4q7KaCQmWCAZ RxCg== 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=u4HuIiYJFs+gy4vrI8ceyyE5RHauZfJwRabDhzs7spU=; b=O7oCicUriucrDUKl6I76iaiwQVA3GMjehiKK1YWViY4ttlOJev2/F1byJ92Dsqo9bk tjAWO8zcqBDtR0mQrAWbiAz+/KONJ4/KyWwvo3MTZRjdKkz7SSbZpUZFadX1UI4pMSh7 tYnMClWVc0GJAGGQVXRolqzG49v73rPjJzmZhIns2rGolkb7FXFItnfNHj0QKG/9WNm+ nTQBX9l5/GeffMedfgzkZLeLnWg1n9dHS6E7hYz6G2XEKtD2rDiphSH1BPf68zrhdS7H 6UvHsI22Ph/jz3VMOCSDJIzHjZU99BCoOfS216/bg/daa2ny8JY9sE1ZLpTxveOkw2gQ rStA== 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 80si1397963pfz.11.2019.02.04.15.42.30; Mon, 04 Feb 2019 15:42:46 -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 S1727361AbfBDXky (ORCPT + 99 others); Mon, 4 Feb 2019 18:40:54 -0500 Received: from mga09.intel.com ([134.134.136.24]:38052 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbfBDXky (ORCPT ); Mon, 4 Feb 2019 18:40:54 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Feb 2019 15:40:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,560,1539673200"; d="scan'208";a="140669778" Received: from baparham-mobl.amr.corp.intel.com (HELO localhost) ([10.249.254.152]) by fmsmga002.fm.intel.com with ESMTP; 04 Feb 2019 15:40:48 -0800 Date: Tue, 5 Feb 2019 01:40:47 +0200 From: Jarkko Sakkinen To: Roberto Sassu , jgg@ziepe.ca Cc: linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, zohar@linux.ibm.com, stable@vger.kernel.org Subject: Re: [PATCH v2] tpm/st33zp24: Fix the name collisions in tpm_st33zp24_spi and tpm_i2c_infineon Message-ID: <20190204234047.GA15685@linux.intel.com> References: <20190204133749.14176-1-jarkko.sakkinen@linux.intel.com> <575f4693-129c-469c-e54e-dbb9ad2a66f2@huawei.com> <20190204233117.GE14992@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190204233117.GE14992@linux.intel.com> 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 Tue, Feb 05, 2019 at 01:31:17AM +0200, Jarkko Sakkinen wrote: > On Mon, Feb 04, 2019 at 02:49:54PM +0100, Roberto Sassu wrote: > > On 2/4/2019 2:37 PM, Jarkko Sakkinen wrote: > > > Rename TPM_BUFSIZE defined in drivers/char/tpm/st33zp24/st33zp24.h to > > > ST33ZP24_BUFSIZE. > > > > > > Rename TPM_BUFSIZE defined in drivers/char/tpm/tpm_i2c_infineon.c to > > > TPM_I2C_INFINEON_BUFSIZE. > > > > Please also add a prefix to TPM_RETRY in tpm_i2c_nuvoton.c. > > Thanks, can do. TPM_RETRY defined in 32d33b29ba07 ("TPM: Retry SaveState command in suspend path") has nothing to do with time. I'll also remove the comment about 5 seconds. The definitions for TPM_RETRY seem fairly arbitrary. Jason, could tpm_i2c_nuvoton also use the same constant as tpm_tis_spi and TPM 1.2 suspend, try max 50 times instead of five? /Jarkko