Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1335503rwd; Sun, 14 May 2023 17:59:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7tPNiAoKEuf5xb7UFInjeFLoNbMULJF+1NKrJZZ/IWsfysSE18EzUj3TUIY/hGbuGxDSO3 X-Received: by 2002:a17:902:eccd:b0:1a6:4127:857 with SMTP id a13-20020a170902eccd00b001a641270857mr44835722plh.5.1684112360823; Sun, 14 May 2023 17:59:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684112360; cv=none; d=google.com; s=arc-20160816; b=qvDsZ9y5N+1Db/pc1gG+bt/AB1MrHQMJDqr7VkdwIPqSO2aZ/OF0wc8cp2ojokPqF7 OcqOJ8ZMPcg/UER/52X7y2RzXTJE6+cJL+HR4UMeRpszwe4nb7aCosXvnOGWXeNJcnwj x8dTbshyV6Fa1DteChn0rmY7K5oWivyyap6TbP/DzAdFbKRSQRS7yxpLUJnbj7Di4CWc PpM7lTKVbioeqqgytee310D3dw86buJBP5H3rQAEOpFFvuol3EmxtNOkXxVF4hly5kAR MiOd6OgmfrXPYOS2E11pDrO0GGBK+Ai/vZd1gVGkwhZHtTH5R7gdO1wUSWwuLaqO5qTf 4aFA== 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=EZuIvGDnGbzSL4R8heIgcApVtD8+uahfZLpgfD7468U=; b=lVNLX7cUY+38Os1ybTcYzm3rW0u5ReGjTsdHNLp+u8tKCFq0yb1pu3TprREZ37ZDYM KizW4pQT4syUPu6dL9/Eerpo7UHymai/Ipl8IKrZ9/lwivYDlINPdn4kowuYOT0r8sKC 4YUhQTT1VDvkuZSovjly1972v9b5oRA9edIHbQXH+JXPzwn9c4sFXkh9JWn2P8JHx+Xf wMTA7vrGhT8DWZGXri2W2DFXcl4jIiuvS728YV0f7ocZHWI9iNdAvDI0I6nBbGnhvsEX cPK6e0CoOMkWbJGsaHVnL5RdehKQ5lVkerx3vaVouQn0aNfs+2zyb8fDjIyGLA0eW3OD dELA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tuMQ48xU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t3-20020a17090b018300b002529204a59dsi9527980pjs.76.2023.05.14.17.59.09; Sun, 14 May 2023 17:59:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tuMQ48xU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237348AbjEOAeh (ORCPT + 99 others); Sun, 14 May 2023 20:34:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229800AbjEOAeg (ORCPT ); Sun, 14 May 2023 20:34:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DC4110CA; Sun, 14 May 2023 17:34:35 -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 C68B1611FE; Mon, 15 May 2023 00:34:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2348C433EF; Mon, 15 May 2023 00:34:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684110874; bh=hZX3lsPty37NkozQs0xkxwcNAftmAAsvZvG63ar1tIc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tuMQ48xUx7MMO850z8B3/cCEiLYwhg2q8ds2b/lxdcNBqP2JHA8a/Igij0hhBolnc 8vlgzxmahgWWF9eYjRbvkHkZpSNJle7oxokov+AZW61dnBqThYqgcB5Wo7sHb8Ui6K uTqAGBo70MojaUEIMom1PbH8MJoAsABdkCZDqUmI05REkz03fznjdZADFzjCSEbLW5 uZ56rZu9MzhKRmORGcSV+0ngSHYvEPerS7iD1MJhZW5BB5+rihUUtP/Vlb66hm7q2u swrR3w2XNiGl58pMnqSJwMWmySE6CFwPfqZgWk20IXUGgDRYkKIRyMiyDr1+IHCRsW fu4ji2xx8U9kg== Date: Mon, 15 May 2023 09:34:26 +0900 From: Mark Brown To: =?iso-8859-1?Q?B=F6rge_Str=FCmpfel?= Cc: bstruempfel@ultratronik.de, andy.shevchenko@gmail.com, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 1/4] spi: dt-bindings: Introduce spi-mosi-idle-low flag Message-ID: References: <20230511135632.78344-1-bstruempfel@ultratronik.de> <20230511231317.158214-1-bstruempfel@ultratronik.de> <20230511231317.158214-2-bstruempfel@ultratronik.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jG3+yPPt0iwCjHtr" Content-Disposition: inline In-Reply-To: X-Cookie: Avoid contact with eyes. X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 --jG3+yPPt0iwCjHtr Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 12, 2023 at 08:54:19AM +0200, B=F6rge Str=FCmpfel wrote: > Am Fr., 12. Mai 2023 um 05:30 Uhr schrieb Mark Brown : > > If this is always required for a given device (which I'd expect to be > > the case) why configure it through DT? I know we've got some legacy > > stuff like that but not all legacy DT choices were good and no need to > > continue the pattern. > Yes this will always be the case for specific spi-device, spi-controller > combinations. Just to make sure, that I understand your suggestion > correctly: You propose to check from the specific spi-device-driver, if > the spi-controller supports this particular mode-bit, and then set it if > it does and thereby loose the need for the DT entry completely? Yes, we shouldn't need DT here. Though the device should just be setting this unconditionally if it's always required. --jG3+yPPt0iwCjHtr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmRhfhEACgkQJNaLcl1U h9CUQwf9GOgkGMy4AAK5Y1LcKpaX1j7DIItEjuPWsM9sjmduKp921EvFyALp/hqU UdQ3emjnx3i2kaV+9GxNuIB3auUEu2xE2guAzd2tRbLbDOaK/4k8G3blLSghOBYu CQy7EGP8JKKM658ru88SQMTC2A7IXS5HNh0s1WwakmaynDYkIk0bO0dqz8zwR23P BoYJQgr9Z6TQwoivQ9/M5pO3cH/FIEw1gY8ajxdbsUXwRd75qJCL+rLjNbC654cb kryggjSO7KUNPUpUdQM/H9p2W7v1zl4iJcvr8P3/b9k7qwwluFSFJHyUnOZ3Ecd8 gOIvDmrDs66z0vPIcd8Mb5X73Dr0mg== =QIKm -----END PGP SIGNATURE----- --jG3+yPPt0iwCjHtr--