Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1655476pxp; Thu, 17 Mar 2022 13:44:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcutKk9/bfj7KaXTPUOpjj1ISxvjA1upHbvI1htHVR3FMkbohJKx9YMvCxP1/kOrFrgAzS X-Received: by 2002:a17:90a:556:b0:1c6:7a7f:374a with SMTP id h22-20020a17090a055600b001c67a7f374amr6875211pjf.146.1647549881987; Thu, 17 Mar 2022 13:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647549881; cv=none; d=google.com; s=arc-20160816; b=0STO4OpCaLFcVYE4QmnT2Jc2EerPSCiFQ7gIeZoZxOm5b0Q6Vkzzl/5w+NHQP4UzNa HTDDmB3KPieDlRfgB3H3s2JlXJ6/FkbwzqbuARupS2nc7OCfsPVZ8C4aQzJhTwwJqTJ5 a8k1N3WufN/mjdBVRVaKTnVGFi2O2Eol2NsUPV3UKALa4WHL9WfUPljBJLwZJfiaGqhQ QEX9G/9+8l4QioRsPMvTGhZrA8YdHtZ7NJNe6gSwYEr3feu3AJwEkTYiVU3MCv++f97g 9ZieUfAbujaAzOxm18Om+SP3UaQWD7Gj1ym5oS0Bt7jz6KJxsJOB4G0oD/MW5r22agT/ lr/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dreic1FWbx0HBDrVu/UBAOM66pdSlpIpiDHgFZCPb3o=; b=nVBg2shrnPeQnMh9uZjWtobbbdaZ5x6cL+MpSxUkAYtGV147bj1oNOoJzI1NkyQDxJ cEVX5a7BTAWPHrQgUxWdIlyLqDqWt918Coy0FvwlnkcHmrq2lS1nfgfjGTJvqgETcI4d 28oUFoGN3xSpbYcpdunXH14JcsMQA6adYMkzmSToO5vl7wIMXU8pD3mfF3aEEmQy7xj+ Vj5IrYN0Sm8yN8tNs/g2vYfZdxo9Zn5Lgs1gBEQvIRbWmx+M4AjE1eyqExrBp4lrqh74 5e74k2WH+oHpi+BQrfi+oZn0rxphDd37ny2hk29YMdDHnyeVHqxQG2BjNU1Bmc4CMQgO T2dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gWB1MPFY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w28-20020a63af1c000000b003816043eef8si3433574pge.237.2022.03.17.13.44.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 13:44:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gWB1MPFY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CF0481C2D88; Thu, 17 Mar 2022 13:12:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237216AbiCQSLA (ORCPT + 99 others); Thu, 17 Mar 2022 14:11:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237194AbiCQSK5 (ORCPT ); Thu, 17 Mar 2022 14:10:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4D201AAA6E; Thu, 17 Mar 2022 11:09:40 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 3F17D61645; Thu, 17 Mar 2022 18:09:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 423FBC340E9; Thu, 17 Mar 2022 18:09:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647540579; bh=+QvcLNYNLk8z+Trz3uCkGKDhIM9gllwONqzhspxkHyc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gWB1MPFYLKL2w4IRkMzG8oZFR8/OcM+rzXWYl2UsWatYxmN/Daz8tWpi5xMNmD80l aRi9aUPVsGkUnzKP4FuyMB4u0P1dOrbjN1lJPEe6U9BevLhODQqntXlHA6BlvLO1R7 K9Q2CyyCwZU0mF6m1nfHTzT9BSTpe60QtN7htFisrTJYFX4iT7jHShgGDKaNG3ApGR S3D/uNbFOHYzHIb8nSs1OKiG6u3NAfwNjDewJSXmFR18WTJUk65F52+x52EBx75phl 9VjM2YR+Pp4CLCeEd5URd2kbsoHyBIWNz4r6iYCil8DIbcQakTABoqqpV8ObP30CJ9 e5slxH9/HZlJw== Date: Thu, 17 Mar 2022 18:09:33 +0000 From: Mark Brown To: Krishna Yarlagadda Cc: Jonathan Hunter , "thierry.reding@gmail.com" , "linux-spi@vger.kernel.org" , "linux-tegra@vger.kernel.org" , Ashish Singhal , Sowjanya Komatineni , Laxman Dewangan , "robh+dt@kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/3] spi: tegra210-quad: Add wait polling support Message-ID: References: <20220317012006.15080-1-kyarlagadda@nvidia.com> <20220317012006.15080-3-kyarlagadda@nvidia.com> <391736bc-84c2-ec8b-9f04-614365953da3@nvidia.com> <7032fbfb-8899-d00b-a7fa-811e19d38ce2@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vDOeRupVhPVhNhc1" Content-Disposition: inline In-Reply-To: X-Cookie: What foods these morsels be! X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 --vDOeRupVhPVhNhc1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 17, 2022 at 06:00:25PM +0000, Krishna Yarlagadda wrote: > > >> Wait polling still has to be selected on slave devices that can > > >> support it. > > >> I will add one line description for the properties in next version. > > > I can't say I am familiar with this, but it seems that the ideal > > > solution would be able to detect if this needs to be enabled depending > > > on the device connected. Is that not possible? > We cannot detect at runtime which slave supports wait polling. How would the client device have any knowledge of how the controller internal implementation works? What even is a "wait state inserted by TPM device"? If this is something the client device is doing then it should be something that is expressed through the generic SPI API by the client device, if some controllers have some way of optimising this then we can add support for that but presumably it's just something that's generically supported by that device so we shouldn't need a DT property for it on the device side either. --vDOeRupVhPVhNhc1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmIzeV0ACgkQJNaLcl1U h9CKXwf+JvwR/r2buQv0cfR4FwAaEUnboaLw15RvPY50AkyFvNHI+Vkwh6HvQD86 PR7Smy8yCjrhHJOBln9tJ+/DH2IE4INXOvNrfODfRZmUspMx+U/1Rrq9MD9Om68Z LMPSD17NwUkfU+BZlnxQ6EVu0dzBcPFESpCqcbTiOo1KxrpUsQ0bylfj8smGWmxa xjXtr6jYLAOpdNmpIVZ7lHJW1Rncx2Wgk3Fcir1WDtjbv4PlphYaVn5isipMBTcQ WXnYVvzvMvXduLMjpWfrwPQ8DVn8rYZvd0GvlcMMFv7u8o0h4VA2EzcLzV7BXqIy HLpD6kWY9yKhJoO7d7Pao35pFEidtw== =aJ6j -----END PGP SIGNATURE----- --vDOeRupVhPVhNhc1--