Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1050417pxy; Sat, 1 May 2021 02:11:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYMITvE1mEGKlohNzprwQbaGkNnDlF4worTbPTGMvbBmiehtK9SqSZ6y4JPd2zS4XoGr6L X-Received: by 2002:a63:ea06:: with SMTP id c6mr8705224pgi.401.1619860263485; Sat, 01 May 2021 02:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619860263; cv=none; d=google.com; s=arc-20160816; b=MDtzjWFJPrtRduO/dNlG94sdIlOP4QD3TTOFd0aaylgyeXi+ldUX+nl9l7TJ/0Km8j 7M6OdvDQi2LTsgRd7ieb0T9d2aawZ4rjXM8lpR0OYEaVnvxx/eWi4tqbX1BOaSJ3DCZs I/YkqcZNJ5b2EvSoNOao7gVBs98cMbhoC1aY9KYOymj8miLgU2afuIxrPIZGww4mj3ll mbIH918LWAJHvzXC6NG2GRKexBscnEue7EZmFq3HN6Sxdq2IKP+cmCtF+qEB87v54o+L nenfN81ufMnqz/hnC6fO5DSOR+TZ/kzpgRUgTyzk6/GVhOBeEvxlNaGMS9BfpmnW9mV4 EkWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=YcmeS+9vyOU7oi92r+V2pd9aeIzC159V25FDyJ9N0Bc=; b=Bt9dRx4ZNQjdUq10yPH1fYJukCbfO/1QQFgeg0Blqu6usCfK14Dyg1KOcyNUM+Ka59 YSUNltYphXMn8onLAiCE6oD89sP7qDT+FwcHU9Bm55jjgKcQqi6FwxDA1xmhqJqWFtOV gwi/Z3mJ4Lm81PSIaxoTsBqiU7BVkJq+lInmPzabPPucbNg18XhYH4tnqUwEkOZ56xu5 PMTns+15SJfutfU3739UUQ/8ctAKHQvvM46xUjCLe2TnASJWHuRaBlh4jJm1gIU+h+2t uueQ+r4KO3BAU6Yl6TPIH6nfqlYVIrdLz8vxchE4lGON9yMjezbA1XSsoudDrz25FmA8 ObbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=kPpBybbb; 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 z18si6892712pga.233.2021.05.01.02.10.49; Sat, 01 May 2021 02:11:03 -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=kPpBybbb; 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 S231853AbhEAJC1 (ORCPT + 99 others); Sat, 1 May 2021 05:02:27 -0400 Received: from mout.gmx.net ([212.227.15.18]:55959 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbhEAJC0 (ORCPT ); Sat, 1 May 2021 05:02:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1619859683; bh=PBKnn869NbbFhapUKErGOasK17EN1C5xgem9fGghJpM=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=kPpBybbb3OesfHBkL+LWVhc38wAGpcuJfs/tWDm5As1P2aDw5xYYVrr5HZnVlxPju va/3hERzzxx+p989cqQk97F55qr6kcFSbab4ZNiiLxAdPJT07ujV27oAu+Iq8TZ2hW CVvUVZDg/psBh9DZI0h9ovSqdqQu6ymqh6a4scA4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.51] ([78.42.220.31]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MJmKh-1lrwyI1YiX-00KBoQ; Sat, 01 May 2021 11:01:23 +0200 Subject: Re: [PATCH v2 1/4] tpm: Use a threaded interrupt handler To: Jarkko Sakkinen Cc: peterhuewe@gmx.de, jgg@ziepe.ca, stefanb@linux.vnet.ibm.com, James.Bottomley@hansenpartnership.com, keescook@chromium.org, jsnitsel@redhat.com, ml.linux@elloe.vision, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org References: <1619394440-30646-1-git-send-email-LinoSanfilippo@gmx.de> <1619394440-30646-2-git-send-email-LinoSanfilippo@gmx.de> <495e816a-afba-4ea0-560c-bc748df26337@gmx.de> From: Lino Sanfilippo Message-ID: <024acf60-47cd-5558-93d8-dcea9f063b83@gmx.de> Date: Sat, 1 May 2021 11:01:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:4Wh1ARpQ2IOq9+Qbk3nBaPUf61Y0lkijlQ5IVidZ+2VG7wdJCbu dxvSGiBqNzeaFs2CrwDveNsF5g9fyCe7dOqS5XJsWwQQId3qs6fJbyqw0z6u2C4j2hMe45n g6Nha5/R7t852ryZNVlrA2iP5XRV6EIEkc+SPApOPJb+tf0cH8VKjDcclVzwjeGoGDMNXEa 6sZdnBLJoA2QPLQK2f5yw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:vGNUkOTiDT0=:sI+qlAr/5K1B76rdXjG/Gn nlA5ZSAlDemHKxwDJhODz8e9CDD6p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/rPJ3XyCb0vLQ+VCWuKCitR6P3ruJEzfKy+cd06MkQl2usE5E VVryZkO4i0EZ+GWniEs/F90fqWSsJNLPvDl8DHiSJ86uLFiS9WdwtOocSTlBNuH4oMjN6x1QG 8ojDyv6QOtDpt+85U Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 29.04.21 at 08:58, Jarkko Sakkinen wrote: > > This is a sentence that you should delete: > > "However over SPI those accesses require a sleepable context, since a > mutex is used in the concerning functions. " > > It neither explains anything who and why sort of stuff. > > Why don't you put intead something like > > "Inside tpm_int_handler(), tpm_tis_read32() and tpm_tis_write32() are > invoked. The SPI subsystem requires mutex for I/O, which means that the > calls ought not to be used inside interrupt context." > > (I did not check typos). Generally speaking, commit message is as, if no= t > more important than the code change. > > /Jarkko > ok, I will rephrase this in the next patch version. Regards, Lino