Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1179809ybh; Sat, 3 Aug 2019 19:56:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxloQLFwQQ7jAuCJI4OZGTpmaRS1hRBc1BPFM0V8UFEBFIPBgWXzRcRIWm7hT/JnfnA54jv X-Received: by 2002:a17:90a:601:: with SMTP id j1mr1754552pjj.96.1564887390222; Sat, 03 Aug 2019 19:56:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564887390; cv=none; d=google.com; s=arc-20160816; b=yGge4IB8ySUjjFpDZioEsFHyzursDi/Tkjb6rEa6N87XodTHYCFD2Ote4jDEXu8EVd CqOwITCHo7BxpGBhOnKEQrKNSzhWNFcThDig0zAibQOTEGBsl7Em6hKFdaHff2wdmDk7 FnbXMRvbX7qm4NeNc5geHwf75nz8VE2waKuUvtEx8KJ6vlh0Tw+pIqonpzDCOyLpiydE xmt4F9rMzBHv/ZMi7XAAVej8Wx5NX9YsdDwDW2vjdsFKXqjlvziZpNd6vH7+cF0rXvtk mGVVUMpY5CCwrCQokUw6iCdDVEs0HcXq3+h6JryAYzC817ZLUVhGQ+EJHOXircFdHhOW aSsw== 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=/DmOF0P0+XqyQF/9Yqf9s4KxbEiZtL/XIRRwKy19pTE=; b=c/tn726c2SsTNm00Yd/mHgQ7ewQmsntVKqCVOWTEXw0SQDMTEP9Un7LbHMvUtEHeMC UUC/ILssgPyl1IRSQSKsD7cCtPhsfitD4SI93brMdv33Dymm7kWXnB3BtAnh7psQkhdO Rr/jn5GlxHThTFujzXHmH2aWiDqPVdSu5yoWxzh8t23pMUhp1lASawY7HW02IT1gqcY4 0CFr3DqbBkwWwIi1HxUWhK9ocmHzfFC5g+HXMvBi/z4EW66LoA8lugHmvB1JZF4txiu9 MGWd5Il+GD92ZkL0fsadm2aWMR1BEPaEf+KcJZLIApkZjSwEM7VvVHx8wx0X16vnoXS9 RO7g== 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 a5si36666559plh.137.2019.08.03.19.56.15; Sat, 03 Aug 2019 19:56:30 -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 S2437014AbfHBUng (ORCPT + 99 others); Fri, 2 Aug 2019 16:43:36 -0400 Received: from mga11.intel.com ([192.55.52.93]:10879 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbfHBUng (ORCPT ); Fri, 2 Aug 2019 16:43:36 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Aug 2019 13:43:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,339,1559545200"; d="scan'208";a="191922581" Received: from psathya-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.36.242]) by fmsmga001.fm.intel.com with ESMTP; 02 Aug 2019 13:43:24 -0700 Date: Fri, 2 Aug 2019 23:43:18 +0300 From: Jarkko Sakkinen To: Alexander Steffen Cc: Stephen Boyd , Peter Huewe , Andrey Pronin , linux-kernel@vger.kernel.org, Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , linux-integrity@vger.kernel.org, Duncan Laurie , Guenter Roeck Subject: Re: [PATCH v2 5/6] tpm: add driver for cr50 on SPI Message-ID: <20190802204318.5aktcn7xnvzcwvqj@linux.intel.com> References: <20190716224518.62556-1-swboyd@chromium.org> <20190716224518.62556-6-swboyd@chromium.org> <5d2f7daf.1c69fb81.c0b13.c3d4@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 18, 2019 at 06:47:14PM +0200, Alexander Steffen wrote: > On 17.07.2019 21:57, Stephen Boyd wrote: > > Quoting Alexander Steffen (2019-07-17 05:00:06) > > > On 17.07.2019 00:45, Stephen Boyd wrote: > > > > From: Andrey Pronin > > > > > > > > +static unsigned short rng_quality = 1022; > > > > +module_param(rng_quality, ushort, 0644); > > > > +MODULE_PARM_DESC(rng_quality, > > > > + "Estimation of true entropy, in bits per 1024 bits."); > > > > > > What is the purpose of this parameter? None of the other TPM drivers > > > have it. > > > > I think the idea is to let users override the quality if they decide > > that they don't want to use the default value specified in the driver. > > But isn't this something that applies to all TPMs, not only cr50? So > shouldn't this parameter be added to one of the global modules (tpm? > tpm_tis_core?) instead? Or do all low-level drivers (tpm_tis, tpm_tis_spi, > ...) need this parameter to provide a consistent interface for the user? This definitely something that is out of context of the patch set and thus must be removed from the patch set. /Jarkko