Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3413354ybc; Thu, 14 Nov 2019 08:46:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyh4srcpSHTthRrgHNWk+ouJ6nlDdx18NZpNdxQ/sa0SVLUHVnGZRNOR+/LIhL4CsByNSEY X-Received: by 2002:aa7:c942:: with SMTP id h2mr2477906edt.238.1573749977503; Thu, 14 Nov 2019 08:46:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573749977; cv=none; d=google.com; s=arc-20160816; b=1KG4uCl9BkLR+oze0xIeQpBgl+8yW7/Xwb/xoEDCTFQMyNTM5K2h6IibVQz/f59uEF b1MUomrnWb5/IldbfohL4NEeyToHtoXhBA+exRYooRKJ0SZERB9T1Agm4g1BEabm/8QC HhM2MYTycT0Alkw6pRGV+bhPHlI9cHzCGgDJdg24ADcjc8nBCIhIhtzVWdJrjkHcCRka NzHbebaemweOwJHpdowLombzK8knQEr30j4yvn47BXj3EHxJBOSIEXoIE1M6S03l7DLp U0Cet09pCGWJrkWuLlhkreQmTjJL06XNWSqhdMSHi3wau3JvBFNzELD9irrVW/AkEvfO RkuA== 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=TruTXX/NlqzQLuQ7G+UMM9HtOeMcGpPM4KqomNIbLtk=; b=yc1IJpw4hCvZBabcDb4OBUuzIuIJI3hkIstDjFrwrUBxH6uFtoKKzgeH3Du9cRIXsp PeIaY3K5uEqYk/Ov8sxTuZocftnRtvsbfxFqVJ5GnpMW2TXbc5W+MQEPMOtwuQTm5ApI aEao/jgPtt2CnY5Wts/YPuT3qDSvsphLfV+/UZIC0WQQGRNXhHcOLOVMz0p6fAJ64KaX hNbbBGECy6sZ8KsHIh5zRK9ajNIqpI5b2IUxb/EKXDNag6TwY1r8l3PTLEU7S7+/Zfxv eM/GsNwNXA4FsAiiTTwkVfrDgjBF56YQQcn+GI5cF3M8TeDiCrbxagmE/B29kC7rp+fM Wb3g== 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 c15si3779156ejd.74.2019.11.14.08.45.48; Thu, 14 Nov 2019 08:46:17 -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 S1726678AbfKNQoh (ORCPT + 99 others); Thu, 14 Nov 2019 11:44:37 -0500 Received: from mga18.intel.com ([134.134.136.126]:60815 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726474AbfKNQoh (ORCPT ); Thu, 14 Nov 2019 11:44:37 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Nov 2019 08:44:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,304,1569308400"; d="scan'208";a="203114131" Received: from pkamlakx-mobl1.gar.corp.intel.com (HELO localhost) ([10.252.10.73]) by fmsmga008.fm.intel.com with ESMTP; 14 Nov 2019 08:44:32 -0800 Date: Thu, 14 Nov 2019 18:44:26 +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: <20191114164426.GC9528@linux.intel.com> References: <20191112202725.3009814-1-stefanb@linux.vnet.ibm.com> <20191114164151.GB9528@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191114164151.GB9528@linux.intel.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 Thu, Nov 14, 2019 at 06:41:51PM +0200, Jarkko Sakkinen wrote: > 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? Also cannot take this since it is not a bug (no fixes tag). /Jarkko