Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932332AbcJIKOa (ORCPT ); Sun, 9 Oct 2016 06:14:30 -0400 Received: from mga14.intel.com ([192.55.52.115]:24958 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752249AbcJIKO3 (ORCPT ); Sun, 9 Oct 2016 06:14:29 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,465,1473145200"; d="scan'208";a="17780162" From: Jarkko Sakkinen To: Peter Huewe Cc: Jarkko Sakkinen , Jason Gunthorpe , linux-kernel@vger.kernel.org (open list), tpmdd-devel@lists.sourceforge.net (moderated list:TPM DEVICE DRIVER) Subject: [PATCH RFC 0/2] Generalize tpm2_get_tpm_pt to tpm2_get_cap Date: Sun, 9 Oct 2016 13:14:14 +0300 Message-Id: <1476008057-2395-1-git-send-email-jarkko.sakkinen@linux.intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 509 Lines: 14 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