Received: by 2002:a05:6512:e85:0:0:0:0 with SMTP id bi5csp44060lfb; Wed, 29 Jun 2022 16:56:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vHk9k6TWRmFzy2cvPERehHVYz79NVqtgSQ+Zr+wBe2/XBXomQddd7Q6t4mLXFjR+UI7e+7 X-Received: by 2002:a17:906:2a86:b0:711:d8a5:cb0c with SMTP id l6-20020a1709062a8600b00711d8a5cb0cmr5981806eje.426.1656546997453; Wed, 29 Jun 2022 16:56:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656546997; cv=none; d=google.com; s=arc-20160816; b=bbsUb40Q9j7/b4mSxl3nViAoIt7dsK1E61sFL6ZIddM79ibgCfkaqW8JQ4w8AbXBug XftkxLwTg+VRZLmXZQuNWg7pWO/PDLf+Dupqn/wvBs62pM/gO327XgDJJNAhm6We6knl 3k936isJDvQScs81cifGgJs8FHHS6XRfMOvHsH4HglgQ/l4Cus1QmG5FGKhLRHETEhFq bU5UF13fOhdUpeExtFdz9GKF9REuas9rlbwGxYaOj1ZLdzhI7WDDxooFmCrVX4qVOxck OO+Sfenl+BEGvOc5KxegOa/dF0QmiIXizt/GXXq1kXZBNA68OgNCFVoVVIKEURODvxTN POBg== 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=8bvwjFzHTyN26RyydHQkqmMi4yXOCOXQzUZ4H55Cz3k=; b=ezV/n8ifDPr3YsWk1mDlRh9PhkCCnuyTzKBAAywSAysC9YLSQ4wi7al0Urqv1v7ZND 8RZuQ+7ORKs6wdeJJ2M0fEZbkmeSQum8t3Eyl+rHNRgunPhfpFv9zgW0HYgMDqYdvCNr dWGLhzt8N/unCQiojaR2ztLRcQ3aMmJZxgWZYZ+EHxl6iXs32GwI+53nFjpNdS5hEIWb Fe2923TijA58lhuIBAcX9Tc8HEIJud/syvvFXpS8uEoBWzApxLM2ZexzHx71+zFFl8wL zm9qGL2RLyzKK6aSdI0+Uvl7RtPA/Fp4QJCr/ObzCTly88J85TySH5ELmzSyJz1rLmtQ AEdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=FrsMyOxl; 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 ba8-20020a0564021ac800b00437dee791d7si2395710edb.531.2022.06.29.16.55.50; Wed, 29 Jun 2022 16:56:37 -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=FrsMyOxl; 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 S231410AbiF2X1m (ORCPT + 99 others); Wed, 29 Jun 2022 19:27:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229821AbiF2X1i (ORCPT ); Wed, 29 Jun 2022 19:27:38 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F27525280; Wed, 29 Jun 2022 16:27:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656545244; bh=8bvwjFzHTyN26RyydHQkqmMi4yXOCOXQzUZ4H55Cz3k=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=FrsMyOxlLPHj0Tow/axOBTr3wlJNmmROtrdlpcVVoUeQmcl/RGCOQkXVXSW35BWSI Ki0mRaewvoU/C8AYf4R6lmeY4TXro7fukJGoMTyrvC4Sq4hpQYMujgVkeisFyRzqET gHhT3PGBVaX7Nk2J1khj33UnKwj1eKqXasCtqA1c= 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 1Mlf0K-1nP8oQ1bs2-00ikC5; Thu, 30 Jun 2022 01:27:24 +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 03/10] tpm, tpm_tis: Disable interrupts if tpm_tis_probe_irq() failed Date: Thu, 30 Jun 2022 01:26:46 +0200 Message-Id: <20220629232653.1306735-4-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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:ZEm7Xr3wPZL8SwaVhzJKfajnZv1T/Wh0WBV/B78vB3xkgDwvz9V OMdOhATHxNjcxay4ENz7BvqLOhPr01uXgKAWKChBQjY/Beqt84zAQP7opn2qHGDvpAxNDUw Lv3YR4+k6iMS4NNXdCziEVGYSK5J/4GbSEtme5A3DmDO82PmQiYDPJRZmJWRXm9Dhz7Hf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x/MBT5WTDZEHmxod51GGjrnnBEx9Jfdm Wx8nQT+dyAF2M2DTkRvqCfOvKJEx05mrZHfkTo8WIvM/NLYGPgWtrBLDRhKs3l68r6np6rGmz 1K6bXx4ZdPtiHy2IVSIgKkJ+IIrAOTm/wWm9oc/YlnXliDJQjWWjDl/Rw== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,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 RnJvbTogTGlubyBTYW5maWxpcHBvIDxsLnNhbmZpbGlwcG9Aa3VuYnVzLmNvbT4KCkJvdGggZnVu Y3Rpb25zIHRwbV90aXNfcHJvYmVfaXJxX3NpbmdsZSgpIGFuZCB0cG1fdGlzX3Byb2JlX2lycSgp IG1heSBzZXR1cAp0aGUgaW50ZXJydXB0cyBhbmQgdGhlbiByZXR1cm4gd2l0aCBhbiBlcnJvci4g VGhpcyBjYXNlIGlzIGluZGljYXRlZCBieSBhCm1pc3NpbmcgVFBNX0NISVBfRkxBR19JUlEgZmxh ZyBpbiBjaGlwLT5mbGFncy4KQ3VycmVudGx5IHRoZSBpbnRlcnJ1cHQgc2V0dXAgaXMgb25seSB1 bmRvbmUgaWYgdHBtX3Rpc19wcm9iZV9pcnFfc2luZ2xlKCkKZmFpbHMuIFVuZG8gdGhlIHNldHVw IGFsc28gaWYgdHBtX3Rpc19wcm9iZV9pcnEoKSBmYWlscy4KClNpZ25lZC1vZmYtYnk6IExpbm8g U2FuZmlsaXBwbyA8bC5zYW5maWxpcHBvQGt1bmJ1cy5jb20+ClJldmlld2VkLWJ5OiBKYXJra28g U2Fra2luZW4gPGphcmtrb0BrZXJu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