Received: by 2002:a05:6512:e85:0:0:0:0 with SMTP id bi5csp50989lfb; Wed, 29 Jun 2022 17:09:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tv1UhQhU29Kef0lazl4fuLV4rAj9RHI9RO8taEsRqZRiiqxWTd7GxnJ3d5VGxtVdie7CR3 X-Received: by 2002:a17:907:a088:b0:726:db8d:281f with SMTP id hu8-20020a170907a08800b00726db8d281fmr5930613ejc.601.1656547778810; Wed, 29 Jun 2022 17:09:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656547778; cv=none; d=google.com; s=arc-20160816; b=Gm0pPUCqYvvGWSYvvXIv45yYD16soQqDmlTjYVNc6Uut6GlZRJKZDOkup7S6TEUS2C glu4J0IkJobq3SxJkw3cwnU24c/Oqt0+3ahiJ4KLRwIB9I4+lhJq6uOTYwJmdQebwD+W GHBU5nNdiKhP2UWVbHhBQ6saDBaFVBGPfqIrNY0JgBqsVQtzm1gDA3CJrhM5PjwAWzAp wo2H82XjWuFdZKv5cmULDc4/ATvDMTfTYZwchZCPBzSmxeiD1BxbT5VVBpMwzTz45B0z E+U8+HuqHMGPHZGgXXZUjFfR5FmpKwswP1a2HoaYjm5FXOeFdFXVQq2bUJsT+2P1hm2C Nm/w== 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=FO1qKvjwo5OYPnKK1TQ+U7MMExJ4/KOfblZ/tjJSnxI=; b=D1RoTqMMqkbSoM/z2ID0Wh4SVSAIqq9OcIBji7+JHHx7m65ERAKytnGQOzDNKw4Fxz E1cugPmuWq5WdPknRYYlKkcwnq1SX7WKB/2HJckNIoRDqpSQFXRx342he9uKrimsyuRT cbybSk4gxdToIwpXn/hSE/QR/oZwJEnIQVTWZf8ksUHrUopjDSfKHnMNLvFqkYbGzCOZ 670ak8rjWN6aKFRKW1O2NskTlZET5kJ/Szxo7ZrCyelM3cu3zqTuqOouIUQTWnELCjEO gvtqUHC7ijg5I99yEGvIQ6pfgqzjOBM6hOHpC3D1VZTBf9kDuWbqTmy7WNvtc9zuGU0E lp4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=jtTO7FOn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3-20020a05640235c300b004357dc75c7esi2624641edc.455.2022.06.29.17.09.12; Wed, 29 Jun 2022 17:09:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=jtTO7FOn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231754AbiF2X23 (ORCPT + 99 others); Wed, 29 Jun 2022 19:28:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231368AbiF2X1k (ORCPT ); Wed, 29 Jun 2022 19:27:40 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7597624F13; Wed, 29 Jun 2022 16:27:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656545245; bh=FO1qKvjwo5OYPnKK1TQ+U7MMExJ4/KOfblZ/tjJSnxI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=jtTO7FOnilg87GhuFWwBPTq/qv/GMfnu/MrKug3vt4+GVjenkEbVGxAGCAn3aKMs0 /BGnUY7D/HUMk1hbZluL60hnO/UqNijfROrt95whTlCFgA7lpL6Uo9iH1++A7k1X6k 7iBfo5oLl62nnCCjDTn4sXVk9YuiYy2MoxRAmDeg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([46.223.3.23]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N49lD-1ngOgG23zV-0108ik; Thu, 30 Jun 2022 01:27:25 +0200 From: Lino Sanfilippo To: peterhuewe@gmx.de, jarkko@kernel.org, jgg@ziepe.ca Cc: stefanb@linux.vnet.ibm.com, linux@mniewoehner.de, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, l.sanfilippo@kunbus.com, LinoSanfilippo@gmx.de, lukas@wunner.de, p.rosenberger@kunbus.com Subject: [PATCH v7 06/10] tpm, tpm_tis: Move interrupt mask checks into own function Date: Thu, 30 Jun 2022 01:26:49 +0200 Message-Id: <20220629232653.1306735-7-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220629232653.1306735-1-LinoSanfilippo@gmx.de> References: <20220629232653.1306735-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:NK8V6gYmS9shuxcrgqlJD2IVankIghQH/8sonM50vYYQWUMuy8/ M6RiAs5r3z2QL7Dq1LGMWSkqdc+/QXaqtXT5PfT1r1goRtROuQfOQ6zzGdPN0ZKhcNqYT7i R50Y+jzin0V7tRBJqXSxKagbDHcjJJpsMmcTh8suHkSqofml97iD24sxJJyI0Ua9CgWGWxg XV+CpN7+fUi3NapKcUqKA== X-UI-Out-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6jLU2bk9mtnN6O7fLHBP3FyeLx1HFiLRTxdzkFdZw29QqyMAV9zIEAloxRSDKqYFr2Ht8g3Qn odH8HDvoUF4wLFQzeC4wXN9OJ668jvWNyrVGqElID7tsQoUCLA+7E+KIg== X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MIME_BASE64_TEXT,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogTGlubyBTYW5maWxpcHBvIDxsLnNhbmZpbGlwcG9Aa3VuYnVzLmNvbT4KCkNsZWFuIHVw IHdhaXRfZm9yX3RwbV9zdGF0KCkgYnkgbW92aW5nIG11bHRpcGxlIHNpbWlsYXIgaW50ZXJydXB0 IG1hc2sKY2hlY2tzIGludG8gYW4gb3duIGZ1bmN0aW9uLgoKU2lnbmVkLW9mZi1ieTogTGlubyBT YW5maWxpcHBvIDxsLnNhbmZpbGlwcG9Aa3VuYnVzLmNvbT4KU3VnZ2VzdGVkLWJ5OiBKYXJra28g U2Fra2luZW4gPGphcmtrb0BrZXJuZWwub3JnPgotLS0KIGRyaXZlcnMvY2hhci90cG0vdHBtX3Rp c19jb3JlLmMgfCAyOSArKysrKysrKysrKysrKysrKystLS0tLS0tLS0tLQogMSBmaWxlIGNoYW5n ZWQsIDE4IGluc2VydGlvbnMoKyksIDExIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2RyaXZl cnMvY2hhci90cG0vdHBtX3Rpc19jb3JlLmMgYi9kcml2ZXJzL2NoYXIvdHBtL3RwbV90aXNfY29y ZS5jCmluZGV4IGMxMzU5OWU5NGFiNi4uYmQ0ZWViMGIyMTkyIDEwMDY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