Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751212AbdCYUFm (ORCPT ); Sat, 25 Mar 2017 16:05:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47998 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750915AbdCYUFl (ORCPT ); Sat, 25 Mar 2017 16:05:41 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 2000A81222 Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jsnitsel@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 2000A81222 From: Jerry Snitselaar To: tpmdd-devel@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/1] tpm_tis: convert to use locality callbacks Date: Sat, 25 Mar 2017 13:05:20 -0700 Message-Id: <20170325200521.19224-1-jsnitsel@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Sat, 25 Mar 2017 20:05:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 667 Lines: 14 This is an attempt to convert tpm_tis over to using the locality callbacks added by Jarkko's tpm_crb patch. Requires the patch currently on tpmdd/locality which has moved the need_locality assignment inside the mutex in tpm_transmit. This is pretty much the same as Jarkko's earlier patch (I think), with the addition of my changes to probe_itpm and tpm_tis_core_init. If this looks good Jarkko, if you want to split it out and have my changes go on top of your patch, or fold my changes into your patch that is fine. Tested on TPM2.0 based tpm_tis device. Will test on TPM1.2 device this afternoon when I dig out the laptop and switch it over to the discrete tpm.