Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4747118ima; Tue, 5 Feb 2019 00:15:26 -0800 (PST) X-Google-Smtp-Source: AHgI3IZu9dN21EGurV3X9nigxPfDVTKgwcH3n+UjG6XiAcvHI7noBRO1KG/tv0PRCfG2nKxyT2yX X-Received: by 2002:a17:902:bd0a:: with SMTP id p10mr3739718pls.322.1549354525933; Tue, 05 Feb 2019 00:15:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549354525; cv=none; d=google.com; s=arc-20160816; b=xCPNTBf5VFTDoz0CbwzX5nupFaNrrO/8drFILM67IZUfOXYkczxfmPUR6l8V5czDom +fQ7fwMBPaIIuW9b5n742gIF+gct2EujtxRHXWXkxKhDG/Osixz+8SA1e3Av5Ac039V2 veLZ1Oj7LQpRbodejM3wjmsG78Xjqsogfb+lqmCuTaF+psQ7wmJb2pQ3/gtCb0LkzPAC kKIM13322rOAt+t/yLfm9bpvOcMnfxjRg8sbT6o5qo0STjGVpgzPn1ilCQWGkLwYM+GG akK1EyslyZ2aRjtdDO7DlScRGontsQYhHbBWPmCuQucXFtkqCxVvRYpxK34xZQfhGBAC ZyVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Gq0951A49wnHAhcgEOQf3Z8AxCcG2+waTXOFOEDYXOo=; b=08G+imbdOwI5/fttexx72dmlRVKmlhDmrneoZCBhSWkzUxoWJk7wh7G3b84oOziZuK cW7ATYgMDCHNmsJiCABBjCyx5zRn6SghhU5te/ush17JFy9+2oNFKoJc4gZlLRmMU438 CxQkIYe7Ht3Cs24kwFlfSZaUwRUfeUxwkpJK7oh6P048ZHm8rShIQWzIjIpIEsyclUw0 J728VBUbfRM0P/FBTMfSCr/rqWxCU25uAoAM9wd9p+eythhbf7uwHMPl/f/n1HA5Usnx R09TkVa6kNOorIX5E6coDFQFHGFm21AEJfQnqsJfXf/VS0yVnEOuKpoMtmGRcEWC3D+t 3xJA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s36si2558633pld.46.2019.02.05.00.15.09; Tue, 05 Feb 2019 00:15:25 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728158AbfBEIIs (ORCPT + 99 others); Tue, 5 Feb 2019 03:08:48 -0500 Received: from lhrrgout.huawei.com ([185.176.76.210]:32865 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726646AbfBEIIr (ORCPT ); Tue, 5 Feb 2019 03:08:47 -0500 Received: from LHREML711-CAH.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id EBBD0DDD026F9951E8D2; Tue, 5 Feb 2019 08:08:45 +0000 (GMT) Received: from [10.204.65.155] (10.204.65.155) by smtpsuk.huawei.com (10.201.108.34) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 5 Feb 2019 08:08:36 +0000 Subject: Re: [PATCH v2] tpm/st33zp24: Fix the name collisions in tpm_st33zp24_spi and tpm_i2c_infineon To: Jarkko Sakkinen , CC: , , , , , Silviu Vlasceanu References: <20190204133749.14176-1-jarkko.sakkinen@linux.intel.com> <575f4693-129c-469c-e54e-dbb9ad2a66f2@huawei.com> <20190204233117.GE14992@linux.intel.com> <20190204234047.GA15685@linux.intel.com> From: Roberto Sassu Message-ID: Date: Tue, 5 Feb 2019 09:08:33 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20190204234047.GA15685@linux.intel.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.204.65.155] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/5/2019 12:40 AM, Jarkko Sakkinen wrote: > 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. I'll do the same for patch 4/6. Roberto > 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 > -- HUAWEI TECHNOLOGIES Duesseldorf GmbH, HRB 56063 Managing Director: Bo PENG, Jian LI, Yanli SHI