Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp874358ybb; Wed, 8 Apr 2020 11:34:16 -0700 (PDT) X-Google-Smtp-Source: APiQypIu70y5ttl9Cqs4xM6CaUxkdEe7be5MNikIiX2+xfG/s/mrwI/7x3IgcMuXPAbEX6HaO+K8 X-Received: by 2002:aca:4a86:: with SMTP id x128mr909275oia.29.1586370856054; Wed, 08 Apr 2020 11:34:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586370856; cv=none; d=google.com; s=arc-20160816; b=kIqUoqXQm2R95826NUjTcZnqyJyzRau3RebGmUaln4d0hISOKJqBFyBYVWoWSzkoZ8 nxEjNPQYt02WzKYpYK5wsMrZAnNg3s0qeye7mViyqqnthg6rAZpaznEyGqsz/Dff9FOl LuFZ1rdikNvyVkvTAd2XNzixhXl5QwxgwUxKzLpJ/6mKh0TqtROwX6EFANpAvDQjSr6y NrJkeDD8O+vt7eM9EmUZcZNc9OTBKi5xxzxMvtHs4ek1pD61iU+D840cGtRTr/J9Gf3N fS9JLXJR2lzpgp+uGhAeU4WNjXStLpiM0TbX5j6VTTX73BmgGTMv3ND0mOlktni6AeNx tFgg== 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=vahiA92NBMLF6UKAHB2OTUbL2L3Yorp2A2xc+3U7dbg=; b=kU6jeD50KE04tKvCdDr0G9aAij5JofDQQx+ZRW6Gv/wOo+TUyJOvEjVPYY+nGG+/IU Q3iaZC7QGibX8LjdwrDxkCRlWnahRcxQwIU2Q8c8Rk6HeOD9JZyNvkY5MHbdnNXUjrU+ Xi8OfMcUbNV/8dzjiTzfLAvXwOaAUm8gmU9lotQ1Yd4nmjas3nd5PGTW5FDYCjKBOmQH /aMrJ1RxdHSFUeR/h7q8VSeVW/rIEs+lehTijpkb/zG0ziyYsqdX+7lZORBC6r3fLe7C eRBjANPZqbuKLKbEsVVlINe3v2HaZKImGfXoCfQCGYq+VK83VViAXGY2wYRyLCHLsXwi lidA== 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 k10si2870519otr.174.2020.04.08.11.34.02; Wed, 08 Apr 2020 11:34:16 -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 S1730387AbgDHQqf (ORCPT + 99 others); Wed, 8 Apr 2020 12:46:35 -0400 Received: from mga11.intel.com ([192.55.52.93]:39188 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729355AbgDHQqf (ORCPT ); Wed, 8 Apr 2020 12:46:35 -0400 IronPort-SDR: 45bEa2gAHB2GdoaIEZORwqygpMww3NvW1OyoYRWU+JU6iClxYODD61/X2yzg2jJEtQRw8OYWeL b5rF2WBY7NQQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2020 09:46:34 -0700 IronPort-SDR: vnrR0SDm2xnMUZvyRTH4Ooy7MJySJhAdizG4leup9HxoJXjykfOP9niO3wUFsAJTh99vx3/vde dZeaCFdP7EJg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,359,1580803200"; d="scan'208";a="425200141" Received: from pratuszn-mobl.ger.corp.intel.com (HELO localhost) ([10.252.40.202]) by orsmga005.jf.intel.com with ESMTP; 08 Apr 2020 09:46:24 -0700 Date: Wed, 8 Apr 2020 19:46:23 +0300 From: Jarkko Sakkinen To: amirmizi6@gmail.com Cc: Eyal.Cohen@nuvoton.com, oshrialkoby85@gmail.com, alexander.steffen@infineon.com, robh+dt@kernel.org, mark.rutland@arm.com, peterhuewe@gmx.de, 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 Subject: Re: [PATCH v6 1/7] tpm: tpm_tis: Make implementation of read16 read32 write32 optional Message-ID: <20200408164623.GA33486@linux.intel.com> References: <20200407162044.168890-1-amirmizi6@gmail.com> <20200407162044.168890-2-amirmizi6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200407162044.168890-2-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 Tue, Apr 07, 2020 at 07:20:38PM +0300, amirmizi6@gmail.com wrote: > From: Amir Mizinski > > Only tpm_tis can use memory mapped I/O, which is truly mapped into > the kernel's memory space. So using ioread16/ioread32/iowrite32 turn into a > straightforward pointer dereference. > Every other driver require more complicated operations to read more than 1 > byte at a time and will just fall back to read_bytes/write_bytes. > Therefore, move this common code out of tpm_tis_spi into tpm_tis_core, so > that it is automatically used when low-level drivers do not implement the > specialized methods. > > Co-developed-by: Alexander Steffen > Signed-off-by: Alexander Steffen > Signed-off-by: Amir Mizinski > Reviewed-by: Jarkko Sakkinen Just noticed that the short summary is still wrong. As far as I remember I asked to fix it. tpm: tpm_tis: Make implementation of read16 read32 write32 optional In English you put comma between enumerated things except for the last thing where you use and-conjuction. How hard is it seriously to write legit sentences? /Jarkko