Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30C82C6FD1F for ; Sat, 11 Mar 2023 21:49:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229914AbjCKVtI (ORCPT ); Sat, 11 Mar 2023 16:49:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229885AbjCKVtD (ORCPT ); Sat, 11 Mar 2023 16:49:03 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05FE534C08; Sat, 11 Mar 2023 13:49:02 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BBE48B80A4B; Sat, 11 Mar 2023 21:49:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2B14C433D2; Sat, 11 Mar 2023 21:48:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678571339; bh=n3JRQcAMcYwEy8CS4/5si/5YrxyBg0r1UZbAZ2pyPlo=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=uyFYUKfsQB66OxBWPeAE1dkiI8u+Pc/vQpGBuYwntSNOIoK1CFbmWO5tM1LbxEk6j 9Al9x7ycDOi9JKUpRy1bLUJp7GwlOA4+p9yCStXyeBo2W1d2P5S/ntmG4ZuxF+9EW+ gWC4o7rbfvzh/FP5xkiktWmZ8c5/0woh4Ea5SgZ4JuQ/KYFglLrG187SyNDhPyCPm3 /QA8p9TpthagbHhx1FQw/2RXEPxNvSlsNAeX4+1/nHUa7jyYZlwct43roUeoRyzcur wJ5E+ISf/KJjRuUKA5T7gBqOoiIjHtjywjxcveL2KuoPWGvz02q5rZ9vNPCm1Z6rfb vqVancc5B731g== Message-ID: <01959c869e01075705cd436afa822f2586d0509c.camel@kernel.org> Subject: Re: [Patch V8 2/3] tpm_tis-spi: Add hardware wait polling From: Jarkko Sakkinen To: Krishna Yarlagadda , robh+dt@kernel.org, broonie@kernel.org, peterhuewe@gmx.de, jgg@ziepe.ca, krzysztof.kozlowski+dt@linaro.org, linux-spi@vger.kernel.org, linux-tegra@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, skomatineni@nvidia.com, ldewangan@nvidia.com Date: Sat, 11 Mar 2023 23:48:57 +0200 In-Reply-To: <20230302041804.24718-3-kyarlagadda@nvidia.com> References: <20230302041804.24718-1-kyarlagadda@nvidia.com> <20230302041804.24718-3-kyarlagadda@nvidia.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.46.1-0ubuntu1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVGh1LCAyMDIzLTAzLTAyIGF0IDA5OjQ4ICswNTMwLCBLcmlzaG5hIFlhcmxhZ2FkZGEgd3Jv dGU6Cj4gK2ludCB0cG1fdGlzX3NwaV90cmFuc2ZlcihzdHJ1Y3QgdHBtX3Rpc19kYXRhICpkYXRh LCB1MzIgYWRkciwgdTE2Cj4gbGVuLAo+ICvCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgIHU4ICppbiwgY29uc3QgdTggKm91dCkKPiArewo+ICvCoMKgwqDCoMKg wqDCoHN0cnVjdCB0cG1fdGlzX3NwaV9waHkgKnBoeSA9IHRvX3RwbV90aXNfc3BpX3BoeShkYXRh KT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