Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3819658iog; Tue, 21 Jun 2022 06:39:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1seRrWVnOg+7t1H4kY6Ema/8MpqbGMi9q7uW0osL1dM2082/ESx0cDDQMVTLqGN3C9RcZmA X-Received: by 2002:a17:906:64cb:b0:711:f686:a843 with SMTP id p11-20020a17090664cb00b00711f686a843mr26579024ejn.333.1655818763036; Tue, 21 Jun 2022 06:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655818763; cv=none; d=google.com; s=arc-20160816; b=kA7vxjYluoFzkKlclPiWCWmoBKxraJspoK/vQG8CtIqh3ejl6oaowdHZjioSw4xc2W DZNF+J6ZpGL+zYASJ/TT/wUfFnscGrxsn0KvHZprZGPqd25IEwiomseSDFLADd4e0c7u /+ihKlUQBckkX3hnP8KUH+78varldJe5s+Ez9GaiWVcoilwEtC+4g2OnWABFe2T29mwN 0o9swFVkx+f1551jb6bhwAqsQV+6EBsXspl2/3afgk7Sj9Zc0oV7Vy0Z/BFR5K5bnGgY 9qF+7D4dSlphGh9xlj3FXYQmLvOQr7YQ0db7u7jLf/o/PXj/kmgMllE7lzbYIbdSCL/9 gesQ== 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=DRphZ/l39/9GYPej7UvI8/O4Gz2dDgvZS7UWsf3aqIE=; b=HiaMjvW3J40W28uvEUT1pDRSXBSOwqaVIEKoO9w0z95xQhlVZceV63Lllb003Bzz8p ppZ1ZekSVpb3hLhGC0fnyIWODiDYlJZUjYUucbvxL+k0eAzGoqgv9WlIhcV+mDBIe8nO t8K9sZpipHfbwwgrIYpgqiAEE3iIaG/g7vAeHZejiTzlZJBiwHFFOk5Z/02v7QAFOleE XIhLi+LdVwUFZ0d4rjqzgqqzOBtDSMNeNrylhpDgXzKRLvtK4xdfYYBlppm443HQYR9v H6PTiEYEndWJie2GFTm0qNvF2VMdmh1Dr3puxvFfSDIkOaVVM4OrN7xab5bcsVSgeGps cLKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=XsfFdQGe; 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 v2-20020a056402348200b004359a504775si1811712edc.238.2022.06.21.06.38.54; Tue, 21 Jun 2022 06:39:23 -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=XsfFdQGe; 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 S1350787AbiFUNf0 (ORCPT + 99 others); Tue, 21 Jun 2022 09:35:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351719AbiFUNbC (ORCPT ); Tue, 21 Jun 2022 09:31:02 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 897822AE1D; Tue, 21 Jun 2022 06:25:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1655817937; bh=DRphZ/l39/9GYPej7UvI8/O4Gz2dDgvZS7UWsf3aqIE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=XsfFdQGesBGo+d6jFBt7KwUZyTkzPntZJYZaf75N5WdwuZW474pAeYAuMFtGR1Vh0 j9irPZA4O5C6NvLxP+VSYGJev/m+N/SelnMmIns9CCCHjMysqXFFpqoYxl7nV3LQkv I1/3z8DWt6oUZ2t0HRzLVvLSx4BcwllkXT0HyyTE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([46.223.2.162]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MXp9i-1oBKRh0p6y-00Y7wW; Tue, 21 Jun 2022 15:25:37 +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 v6 3/9] tpm, tpm_tis: Disable interrupts if tpm_tis_probe_irq() failed Date: Tue, 21 Jun 2022 15:24:41 +0200 Message-Id: <20220621132447.16281-4-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220621132447.16281-1-LinoSanfilippo@gmx.de> References: <20220621132447.16281-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:9JtmR9KMEqWCGdhBCxpCM1SHKiKG1NG9K14z71jAmxvmXo5bQfg +tNzkMCHEl8sWEscHLU1ZFgKfu9EIrIpopTa1Tf29SK0KVSi1m4J+WVZ1+MOWQwlEyonhfu M1f0J9+HBuZDaBCBadHeFXh5pfZDT9zwTrI8akaplIBlF8btvbBbiYLEzO+8w2NiSIP4qjk opGtv1y09cwHytfpSsVZA== X-UI-Out-Filterresults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Nxf0UyMvTCkGi53aqYkmUAGrR9NYyNKn0VFhXw+zjzvcjCxFS17OPmy 0LIizjyBx3Qejgx5SHhehptSNmdp7mezbkGQatGFMqe8p/7weIYIsHuXQ== 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 RnJvbTogTGlubyBTYW5maWxpcHBvIDxsLnNhbmZpbGlwcG9Aa3VuYnVzLmNvbT4KCkJvdGggZnVu Y3Rpb25zIHRwbV90aXNfcHJvYmVfaXJxX3NpbmdsZSgpIGFuZCB0cG1fdGlzX3Byb2JlX2lycSgp IG1heSBzZXR1cAp0aGUgaW50ZXJydXB0cyBhbmQgdGhlbiByZXR1cm4gd2l0aCBhbiBlcnJvci4g VGhpcyBjYXNlIGlzIGluZGljYXRlZCBieSBhCm1pc3NpbmcgVFBNX0NISVBfRkxBR19JUlEgZmxh ZyBpbiBjaGlwLT5mbGFncy4KQ3VycmVudGx5IHRoZSBpbnRlcnJ1cHQgc2V0dXAgaXMgb25seSB1 bmRvbmUgaWYgdHBtX3Rpc19wcm9iZV9pcnFfc2luZ2xlKCkKZmFpbHMuIFVuZG8gdGhlIHNldHVw IGFsc28gaWYgdHBtX3Rpc19wcm9iZV9pcnEoKSBmYWlscy4KClNpZ25lZC1vZmYtYnk6IExpbm8g U2FuZmlsaXBwbyA8bC5zYW5maWxpcHBvQGt1bmJ1cy5jb20+ClJldmlld2VkLWJ5OiBKYXJra28g U2Fra2luZW4gPGphcmtrb0BrZXJuZWwub3JnPgotLS0KIGRyaXZlcnMvY2hhci90cG0vdHBtX3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