Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3411242ybc; Thu, 14 Nov 2019 08:44:23 -0800 (PST) X-Google-Smtp-Source: APXvYqx544/AyHm1RGHCNWb+QT9u9qw1GlkBEvPn/Yp7TOwAreaiX+U3BEunMCePgk0voHR2ADEH X-Received: by 2002:a50:b685:: with SMTP id d5mr2349700ede.276.1573749862049; Thu, 14 Nov 2019 08:44:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573749862; cv=none; d=google.com; s=arc-20160816; b=LX8/DlYRAh6DX0/HwJpYeQE/xq8iIrTBzymZis+rj42ZAl8wHBIy9GDuQBINsNH63B yFvFwZFvJozekIFl35BZuxwCuBG0+DQCKjfLanQ6EHocDoWM95ZPHvjyNnDlEuSugl1p P8vaqld6Kt/e6vgtZuDYTTkSxi3SZX2Wd/dYg3cKlltGMh79iIV6sb8uzDW/9TlwU5v2 CamYppghxEbXu+DaWXxAE8fzUkG+UK8eGIlJKLhdDbD1TyM11napA9HDanfakcDC+8sW qYyvL2EDPA0mZDXtpvzBsh19HIR6dcJW0DrxWYAwYVtNK0JE5eO7xtXdyhLzzE+nM5XS uhLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=WH+XXKmT47uhzshv88ArIJxGg2UyT55W/S8pAQ1di/E=; b=GAYTWJybbs9HN8N8kBkfPUSHhn0VHMfBwkq7kkBH0Lb440Ld7pZcFoon3l15sewXWu L/29GdjvPFfpvAhO8J+1jXFAGd+MVRbj2EofkDElkXtv5Pj6FfGWBxA6+h5bxdAmLqqX P+a23zqWtgBmmv6eQUVGPyhzZkSxv7pprzjHH74VqH8WUXwJ9p6sIVPBLNouvA+2jn2c LZGC5zDr0ZYdM62OQUsD6L61UqjkNxMKIJDRGo9wyuhM/cVYmq4RD/qQyNGgvvCDuX98 SL79LGvMFRJJXHMtIVfliGBDJcgwMS+B2lOnBw/9Hi5UxTVXYlCs5onOSmmOtSFd0EYE qPgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h53si4261553edh.200.2019.11.14.08.43.55; Thu, 14 Nov 2019 08:44:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727073AbfKNQl5 (ORCPT + 99 others); Thu, 14 Nov 2019 11:41:57 -0500 Received: from mga14.intel.com ([192.55.52.115]:20028 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726214AbfKNQl4 (ORCPT ); Thu, 14 Nov 2019 11:41:56 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Nov 2019 08:41:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,304,1569308400"; d="scan'208";a="288272252" Received: from bilicx-wtg1.amr.corp.intel.com (HELO localhost) ([10.252.10.73]) by orsmga001.jf.intel.com with ESMTP; 14 Nov 2019 08:41:53 -0800 Date: Thu, 14 Nov 2019 18:41:51 +0200 From: Jarkko Sakkinen To: Stefan Berger Cc: linux-integrity@vger.kernel.org, jsnitsel@redhat.com, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, Stefan Berger Subject: Re: [PATCH] tpm_tis: Move setting of TPM_CHIP_FLAG_IRQ into tpm_tis_probe_irq_single Message-ID: <20191114164151.GB9528@linux.intel.com> References: <20191112202725.3009814-1-stefanb@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191112202725.3009814-1-stefanb@linux.vnet.ibm.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 12, 2019 at 03:27:25PM -0500, Stefan Berger wrote: > From: Stefan Berger > > Move the setting of the TPM_CHIP_FLAG_IRQ for irq probing into > tpm_tis_probe_irq_single before calling tpm_tis_gen_interrupt. > This move handles error conditions better that may arise if anything > before fails in tpm_tis_probe_irq_single. > > Signed-off-by: Stefan Berger > Suggested-by: Jerry Snitselaar What about just changing the condition? /Jarkko