Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1253048rdh; Fri, 27 Oct 2023 08:46:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGacRkKJgtrmTDH1MxQZq/ygW7jDeaHm8rEcbmdLKSkz53SIaoBzGw18ZS9w7628HtmeoXN X-Received: by 2002:a05:6870:bf0b:b0:1e9:54ef:4806 with SMTP id qh11-20020a056870bf0b00b001e954ef4806mr3934202oab.9.1698421586885; Fri, 27 Oct 2023 08:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698421586; cv=none; d=google.com; s=arc-20160816; b=MRHM8fRd731BU6/mmPAMnR/7QauEFQ7M60UtEd/ZEg3hMwdTgGKW1V0CgxczM3Nt/h tugk5q64n+2bZ99MVlmxf1H//aKuqFoNek9xlYryMSIB9SuKR8B3EAATRdxWpXJvZNfo YIKBSIds3w91pxU4FJJ47DZ8btwdil0Y8GQcnOAX/iQyACK4UTsGSR2hJBekm34tVawB O1CEEs+58oIKDI8dZDHXXm9ogcLFriCAcW8SMt35JZt8O+Z/6LEHQS5EWfIBadTKU+6r VTlYCiT50PApsbJI4Nobq0ae0tcN1tQJVlfGka88yb0C9BaDmi9xH/KMgyFt5XWDgBLb z++Q== 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=Baa+A2T9pHR5w9mQAEwQT8AFlDHNCPYd0F88xPPlOYc=; fh=55aYqI4Nflm7+UQrdVcKRIZL6zWITmsPN1wQCxpJMnA=; b=YzzPC+soqScSVi1471PUjIHWUJfcgFxoQGZYAxu7/R/ijgVEbJwh9KlLzvT+HXfiw5 JHVWMVd6CDvNiWrb4Lqi2EQdGl/nmbFmkM0jpPg/BCrwR0P01e+Nvd6MB2lP1GuUkQob uLV3emcdkmlAvb5wORJTAd8HklQtbhRAp58yIyvoY4q7R+7Q+ry0mVXTScHTarpkYLnJ 77Ht+dvi/g6oPF2xzvvVB0DAYTS7ykRcLkoZlwQ91ntOin7vhBaHc0onryL8PnQe7R/K 59xz1wlKKbYSytjXx47vKrffas5In+mNRZpiOXREAbPzMydm+78uOJExAXsqS4Gv2kjG 08sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HqbfePkC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id e83-20020a255056000000b00da04f22be85si3410999ybb.146.2023.10.27.08.46.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 08:46:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HqbfePkC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7B91E832A675; Fri, 27 Oct 2023 08:45:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346190AbjJ0Ppc (ORCPT + 99 others); Fri, 27 Oct 2023 11:45:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345780AbjJ0Ppb (ORCPT ); Fri, 27 Oct 2023 11:45:31 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60072B8; Fri, 27 Oct 2023 08:45:29 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82E8BC433CA; Fri, 27 Oct 2023 15:45:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698421529; bh=Baa+A2T9pHR5w9mQAEwQT8AFlDHNCPYd0F88xPPlOYc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HqbfePkCiqTz1f9wsXZyWvhrGUUm/uK6IPStBxduVBkMvO4wqIB1eCbcCzl+XRWtE Eyh5JmRTcCmuq2eQdsleFkkFd3u5n2VKkboI1hwL4Yn9T+TYGekG41brcbROjMAq6K nVkKT4Nigxf5FF8vAaZCFhzaL80aCTqiB85SmDTIbj2LNnkdXWB/DhmMaifVqF8S1j fuVS5XjofWd4zMvNgu4ZNJP8qRm8VGO0SNFARgCF/a51ENc4SoHGna+gJSyv1TZvKL C7X/BWnVRP5/GPhKINtt3etTqw/1hV3cFU2CyKL1Pvhkt0rEmErz8DnIxO7dWBIDci /Hx6ffRr2M0cQ== Date: Fri, 27 Oct 2023 16:45:25 +0100 From: Mark Brown To: Andy Shevchenko Cc: "Stoll, Eberhard" , Miquel Raynal , Eberhard Stoll , "linux-kernel@vger.kernel.org" , "linux-spi@vger.kernel.org" , "Schrempf, Frieder" , Amit Kumar Mahapatra , Christophe JAILLET , Geert Uytterhoeven , Krishna Yarlagadda , Leonard =?iso-8859-1?Q?G=F6hrs?= , Yang Yingliang Subject: Re: AW: [PATCH 1/4] spi: Add parameter for clock to rx delay Message-ID: References: <20231026152316.2729575-1-estl@gmx.net> <20231026152316.2729575-2-estl@gmx.net> <20231027005643.4b95f17e@xps-13> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="t+iyWvYvU8cBITVd" Content-Disposition: inline In-Reply-To: X-Cookie: Save energy: Drive a smaller shell. X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 27 Oct 2023 08:45:41 -0700 (PDT) --t+iyWvYvU8cBITVd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Oct 27, 2023 at 02:46:42PM +0300, Andy Shevchenko wrote: > So, to me sounds like device tree source issue. I.e. you need to provide > different DT(b)s depending on the platform (and how it should be). > The cleanest solution (as I see not the first time people I trying quirks like > this to be part of the subsystems / drivers) is to make DT core (OF) to have > conditionals or boot-time modifications allowed. > This, what you are doing, does not scale and smells like an ugly hack. No, this seems like an entirely reasonable thing to have - it's just a property of the device, we don't need to add a DT property for it, and the maximum speed that the device can run at is going to vary depending on the ability of the controller to control the sampling point. As people have been saying there's a particularly clear case for this with SPI flash which is probed at runtime and is readily substituted at the hardware level. --t+iyWvYvU8cBITVd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmU72w4ACgkQJNaLcl1U h9AzXAf/U69EcDG6BKh7GvxVDQ45r9zmTFIm3xM7WXD0qH+qxx0fMewR3y/JF0LA qMH/a2wPo8djtZBJOz5RM80PaIf4/2K9uj3D1m5iuWKuHIicML+KE6FCMmeSvXBo TFd2RgKSOFkLoZXmcfJbTMN1oMw0DL/j8ZENCnexMxSF7hrCBFxlpRj3bcKyBp9n wUhXhfew3/aZNffqWAj2e9HaixbJEqyTV/YYAldTFblGgLYZOdpHsV6br86mXdRv H83PyiLZzWj/w/1If3GLEROsnzISxyoSuf+U28gGNEJlHrY4bANXEcFJUpnlDj8y Y6ZrCknBoHrHpxc8xsL7ABl8Vk45Mw== =atJr -----END PGP SIGNATURE----- --t+iyWvYvU8cBITVd--