Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp61497ybp; Thu, 3 Oct 2019 10:11:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/RmmMxDjz/DsoC0zEXllPzDdnqKUxrTVntqWnVJSy1my1nnbVCCi4Ml+C4K7sjqwhxrVf X-Received: by 2002:a05:6402:78b:: with SMTP id d11mr10861689edy.14.1570122665409; Thu, 03 Oct 2019 10:11:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570122665; cv=none; d=google.com; s=arc-20160816; b=K8dwj33mm8ju7fXN533b5oUHgD1L2dHrl48SHHHifVRWV0HSdT9MY6AzTB/1wuvV+s 5B7TR1DDO3aVxEte0xUAUtLYfvFScPrct/1g9s2gidTYIGn20ApRQri49MbpYDexRK0K EPXM0d0hm+NTSbdIhDLmZ+bB7MqGVljnluMF0OjAulO3rYC7GZ6qel5n7S4Yxb+SLBEA /z/In71qS5g+pJl+r9ZuFWkbKWkxFqGaMcSU8lCSY55sZyvjQcl+dznhJHS43sjPPTmj oKXIBy+eqWtQ0qaYyo1CCr+HI/tcGXDtGr8mu78Ho8xcR6YbYr6W5zni+nPQpJwcxXbz 09jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kum7tgWTfAPx/K3+9YsJFbioSW58JN+H4tYTDg5vogY=; b=tQ+p5v8wGqHZtA74n9eHvIUINo1YloB20IOtIJ+MEpf0An/nx0MxqxrB+AlwHoX4CE OiY3pz44u6LoU6TnQJtTDYnr2LN4JJTbSIKzAXFI9n3363wBpHf0991W0xioe9nvU5ho NldWoxqHf/f2030xkGsIqdq39uWP92c6AA/VQkJJ0ordz0KRhSHMF9GvxMM7zi8Yno0T 7fgG4sQ/Cdz2dAlAzxn05AqMwoCNBABy/CzIoLcUfj6OCO2XXYqnhPhkZhiufs8V0ICF SF7bCDs40lTt7dPdQKlpTt5Y3IIMNTvYD/xehjqz9G7VcaG8ZeLdwm8RjFQgtGfNFLIy q8Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fJSHcWNc; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21si1908478edc.153.2019.10.03.10.10.41; Thu, 03 Oct 2019 10:11:05 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=fJSHcWNc; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392554AbfJCRJL (ORCPT + 99 others); Thu, 3 Oct 2019 13:09:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:43156 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404179AbfJCQeb (ORCPT ); Thu, 3 Oct 2019 12:34:31 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1645420830; Thu, 3 Oct 2019 16:34:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570120470; bh=4RZYoUsuUQLZ4s568q0GUzU5T/LBcXRptdcGVSEtYSw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fJSHcWNcp+AF7Tmzmjop2V35BA2v6/Xo2qRJsDCXKf5v/JtN9MvdLU2dFXDoxAdsH OYEQghwSiEWvorLTppkHnr93UOHKaXbUZ1jN2iy1PwjLbuogjJdJhzn/2t2oSIuJW5 EOl8lsopPYqorRb/pGySUC2sbJYWQ6+yUNFAhVfY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, linux-stable@vger.kernel.org, Stefan Berger , Jarkko Sakkinen Subject: [PATCH 5.2 233/313] tpm_tis_core: Set TPM_CHIP_FLAG_IRQ before probing for interrupts Date: Thu, 3 Oct 2019 17:53:31 +0200 Message-Id: <20191003154555.951169029@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154533.590915454@linuxfoundation.org> References: <20191003154533.590915454@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Berger commit 1ea32c83c699df32689d329b2415796b7bfc2f6e upstream. The tpm_tis_core has to set the TPM_CHIP_FLAG_IRQ before probing for interrupts since there is no other place in the code that would set it. Cc: linux-stable@vger.kernel.org Fixes: 570a36097f30 ("tpm: drop 'irq' from struct tpm_vendor_specific") Signed-off-by: Stefan Berger Signed-off-by: Jarkko Sakkinen Signed-off-by: Greg Kroah-Hartman --- drivers/char/tpm/tpm_tis_core.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/char/tpm/tpm_tis_core.c +++ b/drivers/char/tpm/tpm_tis_core.c @@ -981,6 +981,7 @@ int tpm_tis_core_init(struct device *dev } tpm_chip_start(chip); + chip->flags |= TPM_CHIP_FLAG_IRQ; if (irq) { tpm_tis_probe_irq_single(chip, intmask, IRQF_SHARED, irq);