Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1936840ybi; Thu, 4 Jul 2019 02:21:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqykd/+d0QNLAjlU2IrdPng9IWtBSO7vWKc2kYWF4RyJrOCSN76iVO/YTXgbc+XAvkGCaSMe X-Received: by 2002:a63:ed06:: with SMTP id d6mr42387919pgi.267.1562232091855; Thu, 04 Jul 2019 02:21:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562232091; cv=none; d=google.com; s=arc-20160816; b=YkodzESz7Blcp8iFXVkMas642/vi3NMGa0Hs7fIncyt+YczU0DpR1f69k/8NBQxpeM YBFUWaEKB27QzGFKdUV0rSdSwkJ9vzCk6Z44rM9BBgNnbrQB9+CMSIOyoWoQEYrRMz6E LMYo/gOVJ6UUsVBG5VmqQvOSdAUGvJiU/AvqCR6eGitdYEhpB2pm55+UqlffN8PmWLbC IiUnW7M2vdEIgZpeadRInq67WNnb6zDNGim8b9DcO/QaBFWp1oTpxwGO6oEukLSD9bWb e6hjpyLH+OyihUkQvrh7ltIqedW1tssv7DLylXaIHdLfAfFi06BqQszUnpWA1pf1Gb0z KcTw== 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:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=VPTBn7i5hVKIndPWwgDfe+q4mVYoDjfU+Mh7osoCpxE=; b=qIgKF5/Hq+L4CJJkFQb71wD8Q8eyAv/KwUAevLgAoFt4M7z9cZydl/JcCRVwHkfoyu agbtIYo4fHR62jck6YXTfDQDchdno1/VkufOnVc4GcVgJL7TaIyhVy8wdihbMO5X+ebB 7itn8rf+t3aLNBtGC/cPDFzcrSSceewXH78dtBVrtkE19MKzncTrXnaAbfXY4gQIE1uu 88jppPO2Ug3lWqAhoOhg/AFy01geGLpU4hHhren72MBevSqYAvRgdQ/qc0umPeYUVeVw B8zNerw1ffWRM3I57Ntc1zqwcUV3OTTI4T9q9YukCnG4+92PrB01NpFuRz6X4FkI+SPw 1rAQ== 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 j3si4738949pfh.178.2019.07.04.02.21.16; Thu, 04 Jul 2019 02:21:31 -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 S1727391AbfGDJUj (ORCPT + 99 others); Thu, 4 Jul 2019 05:20:39 -0400 Received: from mga07.intel.com ([134.134.136.100]:65358 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727169AbfGDJUh (ORCPT ); Thu, 4 Jul 2019 05:20:37 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jul 2019 02:20:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,450,1557212400"; d="scan'208";a="158237252" Received: from jsakkine-mobl1.tm.intel.com ([10.237.50.189]) by orsmga008.jf.intel.com with ESMTP; 04 Jul 2019 02:20:31 -0700 Message-ID: <497a8afaa41cd26d3069acb5532075207512889c.camel@linux.intel.com> Subject: Re: [PATCH v7 1/2] fTPM: firmware TPM running in TEE From: Jarkko Sakkinen To: Sasha Levin Cc: peterhuewe@gmx.de, jgg@ziepe.ca, corbet@lwn.net, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@microsoft.com, thiruan@microsoft.com, bryankel@microsoft.com, tee-dev@lists.linaro.org, ilias.apalodimas@linaro.org, sumit.garg@linaro.org, rdunlap@infradead.org Date: Thu, 04 Jul 2019 12:20:30 +0300 In-Reply-To: <20190629150145.GL11506@sasha-vm> References: <20190625201341.15865-1-sashal@kernel.org> <20190625201341.15865-2-sashal@kernel.org> <673dd30d03e8ed9825bb46ef21b2efef015f6f2a.camel@linux.intel.com> <20190629150145.GL11506@sasha-vm> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2019-06-29 at 11:01 -0400, Sasha Levin wrote: > On Thu, Jun 27, 2019 at 02:31:35AM +0300, Jarkko Sakkinen wrote: > > On Tue, 2019-06-25 at 16:13 -0400, Sasha Levin wrote: > > > +static const uuid_t ftpm_ta_uuid = > > > + UUID_INIT(0xBC50D971, 0xD4C9, 0x42C4, > > > + 0x82, 0xCB, 0x34, 0x3F, 0xB7, 0xF3, 0x78, 0x96); > > > + > > > +/** > > > + * ftpm_tee_tpm_op_recv - retrieve fTPM response. > > > + * > > > > Should not have an empty line here. > > > > > + * @chip: the tpm_chip description as specified in driver/char/tpm/tpm.h. > > > + * @buf: the buffer to store data. > > > + * @count: the number of bytes to read. > > Jarkko, w.r.t your comment above, there is an empty line between the > function name and variables in drivers/char/tpm, and in particular > tpm_crb.c which you authored and I used as reference. Do you want us to > diverge here? There is divergence and that was the first thing I've contributed to the TPM driver. I use this as the reference for formatting function descriptions these days: https://www.kernel.org/doc/Documentation/kernel-doc-nano-HOWTO.txt According to that the legit way to format would be: * ftpm_tee_tpm_op_recv() - retrieve fTPM response. * @chip: the tpm_chip description as specified in driver/char/tpm/tpm.h. * @buf: the buffer to store data. * @count: the number of bytes to read. Since it is both a callback to an interface defined elsewhere and a static function and it does not document anything useful, I would just remove this comment. I'd do it for all callbacks that are part of tpm_call_ops. /Jarkko