From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750954AbdALU33 (ORCPT ); Thu, 12 Jan 2017 15:29:29 -0500 Received: from mga04.intel.com ([192.55.52.120]:20698 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750794AbdALU32 (ORCPT ); Thu, 12 Jan 2017 15:29:28 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,219,1477983600"; d="scan'208";a="48252463" Date: Thu, 12 Jan 2017 22:29:23 +0200 From: Jarkko Sakkinen To: "Maciej S. Szmigiero" Cc: tpmdd-devel@lists.sourceforge.net, linux-kernel , Peter Huewe , Marcel Selhorst , Christophe Ricard , Jason Gunthorpe Subject: Re: [PATCH] tpm_tis: fix iTPM probe via probe_itpm() function Message-ID: <20170112202923.n6ud7igkzntkn7oc@intel.com> References: <6bd0d2fe-f979-a4dc-7c4d-54036f4d37f8@maciej.szmigiero.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6bd0d2fe-f979-a4dc-7c4d-54036f4d37f8@maciej.szmigiero.name> 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 On Thu, Jan 12, 2017 at 07:12:06PM +0100, Maciej S. Szmigiero wrote: > probe_itpm() function is supposed to send command without an itpm flag set > and if this fails to repeat it, this time with the itpm flag set. > > However, commit 41a5e1cf1fe15 ("tpm/tpm_tis: Split tpm_tis driver into a > core and TCG TIS compliant phy") moved the itpm flag from an "itpm" > variable to a TPM_TIS_ITPM_POSSIBLE chip flag, so setting the > (now function-local) itpm variable no longer had any effect. > > Finally, this function-local itpm variable was removed by > commit 56af322156dbe9 ("tpm/tpm_tis: remove unused itpm variable") > > Tested only on non-iTPM TIS TPM. > > Signed-off-by: Maciej S. Szmigiero > > Fixes: 41a5e1cf1fe15 ("Split tpm_tis driver into a core and TCG TIS compliant phy") > Cc: stable@vger.kernel.org Reviewed-by: Jarkko Sakkinen /Jarkko