Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2654422pxj; Sat, 19 Jun 2021 19:49:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+PRCy4lfiwLapUK6KBTzXK/wqnUsSOsewD16cjBdoXrIpdo6e3pL875dAq1ruMOFtuE78 X-Received: by 2002:a17:906:7e55:: with SMTP id z21mr14817968ejr.7.1624157346177; Sat, 19 Jun 2021 19:49:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624157346; cv=none; d=google.com; s=arc-20160816; b=JYlqN/IGL7Yr0oxWrQ/oeRpFGmW73eYT6GUNEbgplYxGpNtRwsawqUp4OBBKT3AyV3 KN1YBfHO9Rs4Vf2Kc5mNuqOE5nsaOWv0jls5kBsYh8Vuz2wNWO32AH3OeVFp/9bb28eH YrDJ0L661Mp4ccDR8iuk7x/frdOOJP5GiaNRYsRNhtFWSFtULmhx2y3IFb/8sKAHkcBf TxJCbNScqHZMw0NiOHBgZJf1BfRa4AjJFb/7SzFJlBpEguRS6ASWbkVBk5MVWd2d6fPT CH1905hoTooMb7Xl7Vr3/Y6kZu+h/FWhS4d5VzK+Yvz0JOSEewZ528TjcD+6GUiLa8vt OieA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=kvfPbNBSnMkWHBdMxo/TBW9AayZJVdLROfZh2QX8248=; b=06ENTa4dbkwf/9e1QTPIg3M7sYKlzvXlF0gJJdeFcw27PzLVVl0/3WIfZk8EjLiVLd qb3CtPGZqblHY3B5bwodHQEgNIQnSiHXjOxKKM0fRfLZQ/ZLouOXkiwbmjNR42YaqEd3 KfkRIl6RPNu3+xrn/fBDmrCRXYWU2xAA0zUJp8PF6cIg4hlER5Gyv7ImBL/M73zu000b hvs7LOahz1snNNnA6/pRvHEtaVVWLSXAbqxjjQxcfyAyQ9JkiyHjQDde/+HI5WnkHE8Y JOyqcCkCrVvkMN1WB+ph8Ukg2Egmm1JlxvjCtJXFixZ+oqbrYPQHmoiTlOPsTcsiOOHj T4ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Ewl5xTJu; 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 jx7si4891007ejc.419.2021.06.19.19.48.43; Sat, 19 Jun 2021 19:49:06 -0700 (PDT) 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=Ewl5xTJu; 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 S230308AbhFTCiK (ORCPT + 99 others); Sat, 19 Jun 2021 22:38:10 -0400 Received: from mout.gmx.net ([212.227.15.15]:40459 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230236AbhFTCiJ (ORCPT ); Sat, 19 Jun 2021 22:38:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1624156553; bh=kvfPbNBSnMkWHBdMxo/TBW9AayZJVdLROfZh2QX8248=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=Ewl5xTJuZrYg4Pd4sKVB8OoyttMWpuODsNr/L3P1teUbvdOp+SBKs6ziXEWAYPr05 jiDlJZeXdHt8gCVQIfARryZK9DaOJgekCkglgnuL3MhKp7XDCIZhkJcSZS7nJeLqKz Az9P0CBYy8YYEuSxKOQS51HungpiJ5j2IjjL1HrM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([149.172.234.120]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N3KTo-1lC97b28qw-010LwK; Sun, 20 Jun 2021 04:35:53 +0200 From: Lino Sanfilippo To: peterhuewe@gmx.de, jarkko@kernel.org Cc: jgg@ziepe.ca, linus.walleij@linaro.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Lino Sanfilippo , stable@vger.kernel.org Subject: [PATCH v2] tpm, tpm_tis_spi: Allow to sleep in the interrupt handler Date: Sun, 20 Jun 2021 04:34:44 +0200 Message-Id: <20210620023444.14684-1-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:NDQzXvb6/eZ2jUNdvGsI7megvl14n3dJOXmkMuZSBJAWeZRIbyh GfXZxUtNxSDMbYkufD7sJ+q9+/myCvZ2EEyP0DSgDcbfSGe0nxAHsQc8wBfoWfV0Yx6JPsP 3tm8viTlRg1b26GqSfGG/Hry6JYzlrK0lV2pzxXvmQHlw8dhQ6vnj+ts5tqdKftglu2aBy8 r8hz+7+ydJqPTv9JxE4ag== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:zJPor6yO/LI=:iI8FChg8JKRIh5qisFKNvX et7KEfvQ0Shs3LVQWRRS4F9vi/pbZCIs2lO+MnlSvJyGnTVKe465yMX1pFK3EUsWKMZAFIXdE bZMCuql+LABBb1KfUiX0zbaDxja3+O9YQ+huBu/c+tM8mENi3COs6N8D+BabOp2dN1hDlxZgO yZEviNjBC1fRUywKgujqTOwpMFV9IvJIbKHIvxbuZCmVZHdBT9ND5gA36eWq6LUurSF4LYwQj PBxR08jKI8CEkiv6f6zZrABcFh6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