Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760032AbcKDH2b (ORCPT ); Fri, 4 Nov 2016 03:28:31 -0400 Received: from mga06.intel.com ([134.134.136.31]:41512 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755372AbcKDH2a (ORCPT ); Fri, 4 Nov 2016 03:28:30 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,442,1473145200"; d="scan'208";a="897613093" Date: Fri, 4 Nov 2016 01:28:28 -0600 From: Jarkko Sakkinen To: Nayna Jain Cc: Jason Gunthorpe , open list , "moderated list:TPM DEVICE DRIVER" Subject: Re: [PATCH RFC 0/2] Generalize tpm2_get_tpm_pt to tpm2_get_cap Message-ID: <20161104072828.5mcmfs3nu73mxee4@intel.com> References: <1476008057-2395-1-git-send-email-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476008057-2395-1-git-send-email-jarkko.sakkinen@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 787 Lines: 24 Nayna, I've already sent these earlier this month as we had this discussion. Please look up your emails. I can apply these if they look good for you. Please review them. /Jarkko On Sun, Oct 09, 2016 at 01:14:14PM +0300, Jarkko Sakkinen wrote: > We need to generalize tpm2_get_tpm_pt to tpm2_get_cap in order to it be > suitable for grabbing handles, PCR banks and so forth. > > Jarkko Sakkinen (2): > tpm: move TPM 2.0 command and response constants to tpm2-cmd.c > tpm: refactor tpm2_get_tpm_pt to tpm2_getcap_cmd > > drivers/char/tpm/tpm.h | 48 ++---------------- > drivers/char/tpm/tpm2-cmd.c | 106 +++++++++++++++++++++++++++------------- > drivers/char/tpm/tpm_tis_core.c | 3 +- > 3 files changed, 80 insertions(+), 77 deletions(-) > > -- > 2.7.4 >