Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933144AbdCKA1g (ORCPT ); Fri, 10 Mar 2017 19:27:36 -0500 Received: from quartz.orcorp.ca ([184.70.90.242]:39640 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932475AbdCKA13 (ORCPT ); Fri, 10 Mar 2017 19:27:29 -0500 Date: Fri, 10 Mar 2017 17:27:09 -0700 From: Jason Gunthorpe To: Jarkko Sakkinen Cc: tpmdd-devel@lists.sourceforge.net, linux-security-module@vger.kernel.org, Jerry Snitselaar , gang.wei@intel.com, Peter Huewe , Marcel Selhorst , open list Subject: Re: [PATCH] tpm_crb: request and relinquish locality 0 Message-ID: <20170311002709.GA14174@obsidianresearch.com> References: <20170310235802.30765-1-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170310235802.30765-1-jarkko.sakkinen@linux.intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.156 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 425 Lines: 14 On Sat, Mar 11, 2017 at 01:58:00AM +0200, Jarkko Sakkinen wrote: > Added two new callbacks to struct tpm_class_ops: > > - request_locality > - relinquish_locality > > These are called before sending and receiving data from the TPM. If we are going to add new ops, I think we should also adjust the existing drivers to use this mechanism as well? eg tis just calls its request_locality as the first thing in send.. Jason