Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1224823pxb; Sun, 21 Feb 2021 17:00:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcYAD04pmnz5zGXKwPH/0bW3EJjCZQsWEPvkcFhv+w2Un/kZjxXxDnjluu8Z8+TB5oC2k4 X-Received: by 2002:aa7:c7c3:: with SMTP id o3mr20503663eds.8.1613955625600; Sun, 21 Feb 2021 17:00:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613955625; cv=none; d=google.com; s=arc-20160816; b=bgTVNWYJXUxKibNeEs0a63PF1BZbOAOnlFpyikGb1/FQas/TvudI7IpJP0Pmhdtcqm /H9QcBCQ1w74hSkKx/pf9ya/0VUXXRVKrbu4Qs0Xx2YQ9qb6UvFnz8wrolep+Kue7TtM q4cQkBs4EMHFSqibXA6+dSX4in/4/qlosWuM6+1mGhLNMrPyh1S/03aX/iXnQWU1BBwD yuNNh5l67zM3leH2QFBFNcTghvzTEs++DNRYbyR1IFo/xeRz0oTV5aQFlOapIH0HnjIa IAu0lZvwC+rQpbJ6b6DivuYbfpLIHkXYyz0peXvIgoZ+0IHJDxvyr9u8hjm5kyuYI/iG piIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Wm8bOd5VsIxoCahMsOXQQTv3Q9KJBY1NZqr/SE8y4SM=; b=GUjd44Mggj8BomFtJRq/G5SaR94dHo7ybA/F1lYZ/dmFtrZVLdC2pKKvpJWvHKXttm Gam70dFTiMO8THLAXvZ0uNHalIPjch1D3I7zD06gcNVEsCIsnx7/0YDiBccv3TXPEGvQ 2147l+x8o6Rixeb/F5+e5/bbE7qbxV9DMEJin5Xr1tvVamVCOwanIIi7l6ttuQQL4nHs 1fwYGJYt09YwwterxJAEPcgUdPrilWGEn/oHYne57BocHJ0jBiB3qy7lbmCRo9SaVFGj gYBkI/39b30T7j05Xv8JBU80uWXSy2J8xHmGsGhysts74cVOQtVaUxnHzZVyToTx1BpE 7Scg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ENQKnsA6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c24si6591130ejj.295.2021.02.21.17.00.03; Sun, 21 Feb 2021 17:00:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ENQKnsA6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230083AbhBVA7A (ORCPT + 99 others); Sun, 21 Feb 2021 19:59:00 -0500 Received: from mout.gmx.net ([212.227.17.22]:39049 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229913AbhBVA6r (ORCPT ); Sun, 21 Feb 2021 19:58:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613955422; bh=Wm8bOd5VsIxoCahMsOXQQTv3Q9KJBY1NZqr/SE8y4SM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ENQKnsA6Wp78bxvQiiHOpsRnq/bn8W2cSRTtHPP+KDi757sqrv8nRSlJT/d1a/4sI Lxf22sb8qg9RY8Zs4kGSI07j74wkekZlPELUgypyxSitFwBwPKUQuIXfuhmpbt+1i6 d+XLF5kCgmnROihxtmanS0Sj2Vdc80M7ez+TGUTQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([78.42.220.31]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MFKKX-1l2mBz2B8j-00Fm0B; Mon, 22 Feb 2021 01:57:02 +0100 From: Lino Sanfilippo To: peterhuewe@gmx.de, jarkko@kernel.org, jgg@ziepe.ca Cc: stefanb@linux.vnet.ibm.com, James.Bottomley@hansenpartnership.com, jsnitsel@redhat.com, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, LinoSanfilippo@gmx.de Subject: [PATCH 4/4] tpm: Only enable supported irqs Date: Mon, 22 Feb 2021 01:56:34 +0100 Message-Id: <1613955394-13152-5-git-send-email-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1613955394-13152-1-git-send-email-LinoSanfilippo@gmx.de> References: <1613955394-13152-1-git-send-email-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:9e2Hnk2DJof3/f6+V6gSGPaMK0hiRkofJkv3NV9DM9KreTwYEHt wacZbbS1n9lNjJ/keRO614ElYLhsMwwzzewoxhCrM/6U2jKhSa6SjdZtW09GyXHMM96Ffh6 k0jYOgisrFBKgp9eHNJp3W6O9TczKbjlMn0aHfLUagjEjTpRnKt69mk1MoEFu87U6DDDDXH FUwtLEDleUZwOJZ6mKZmQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:6SVXowGlLvE=:1fZpFtQlLJ68XQay6QuHrw 35cMhPGUGis8nxItefg+pIHxb760NPch4encCYFtlwVaqDNL0AEflGZb/E5Xnxxnfhs2lg4Es N5NSWL7v2hRPWP8JeVWs/vVA2N66OeQ+ySv1vtqAuqpUl9o3uYgb6hOHFFDfmaQFda8w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