Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp453009imn; Wed, 3 Aug 2022 10:50:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ItdqpxCFtczMVn45LXMwQrvnfSP/yrgT15X/gPyGb6r5u44WIx/9ioCQxH1fdRW9fn3zG X-Received: by 2002:a05:6a00:a93:b0:528:77d6:f660 with SMTP id b19-20020a056a000a9300b0052877d6f660mr26984819pfl.50.1659549023340; Wed, 03 Aug 2022 10:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659549023; cv=none; d=google.com; s=arc-20160816; b=AsI8gl3XMQfyurK68eGqe52iNA4D2/ze6Ss+uvjXyJvivwRtMlUMovk/9lJmBXbxZX kh5/DZ870PdBOLZOyqQvyrzWbpfK9gJJOjTlEmZ/+oclJjo/E2Fbl3gotrMBsffelCQR 7173hIbPDepojokH625uiwXE5QbD8xCDwruoLCEwMROBsgqt3vXzq1E67U5HBAuwglN/ NkJdfvj9VrOLwLCAYu4tyBnHIxMFpoGqLwlB5S5PA8K48D8WOXCEepg5k2AY2PUmECje J66sYQfYqdhOVoevC+dj+o1mrdOSOdrrA0k0SFuRalaHPAATg77fzMIdXgOd+LlUpTRy YIZg== 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=kRQYyRnxtdWOaHeTYozBTMyZKZmGEuPbfzwfPmD97Kg=; b=ZVtWAhK9IQx4fc3wsAmnu704EEKrHicLNKmww7EjT3OWE+4Gkkkv9afo0th7Z8QQXI KWQmY+RtkzbBQbNJJf2NAPqP57UO2fCJl6AzhJ4sdxxin+FuKj6EvC52aAJdpBSCp5dQ A+7h8fK1O5h4Qm/cPkecIguUOqEAbVANBZgbvdVfF1mUTD4wfi7/zBP2XaDC2Gpp7qsx SELTqV13Vn/VTVPUpSK2niHqc/9+eR7gIYbLS9Sb2nOGEw1mvJ2SUKd40CeXdgqoWjxZ 6nWCeDTjweY4nHUwU0x5cNzlgixZKzLWLoHleNWvDgOUVBrtZdTeD1UwxDiPHnFVYMKr 2+4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TZFc5ep3; 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 17-20020a170902c15100b0016d09df65d8si2701243plj.411.2022.08.03.10.50.08; Wed, 03 Aug 2022 10:50:23 -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=TZFc5ep3; 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 S238365AbiHCRkQ (ORCPT + 99 others); Wed, 3 Aug 2022 13:40:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237894AbiHCRkO (ORCPT ); Wed, 3 Aug 2022 13:40:14 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FB4BF03; Wed, 3 Aug 2022 10:40:12 -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 sin.source.kernel.org (Postfix) with ESMTPS id F1BB1CE2412; Wed, 3 Aug 2022 17:40:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70AF4C433D6; Wed, 3 Aug 2022 17:40:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659548409; bh=xi7sXuEFe3u+/S4uAzEU87tLshUsu0UZUIQfM21EItE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TZFc5ep3XmbXLmXFBY0JcTP/fXQ3YHNw+IjW2KNOG1Ty4DVyP+ADiRODy4eQh84mO dHnJHkkFznq4+99q7cyrZOe4hOVc+bRiHyAe8HeHM2X19S3kZiZWfj6zqaRwfz+jQW G/Xs6acONhYGIhoqXQ5xC5y3RrM0MWSXZ4zAr/1kcykNHg5k5AKEIiRUfpaPPX/Jnb LXs4Lmfrc1St0CdjXkTkyfqVsgnBEDM9kXMF1aTeNZBO+G90utLDeZxcshxLIRu98L 0fs8Gi7YSUeCqVWZMtrllMb12omHd1yJmKYPtwIrnZq7g722a721ulwcgemJtOIADX UJ0vO3G8z+Ogg== Date: Wed, 3 Aug 2022 18:40:03 +0100 From: Mark Brown To: Sudip Mukherjee Cc: Serge Semin , Rob Herring , Krzysztof Kozlowski , Greentime Hu , Jude Onyenegecha , William Salmon , Adnan Chowdhury , Ben Dooks , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jeegar Lakhani Subject: Re: [PATCH 01/11] spi: dw: define capability for enhanced spi Message-ID: References: <20220802175755.6530-1-sudip.mukherjee@sifive.com> <20220802175755.6530-2-sudip.mukherjee@sifive.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jZMkXTlYS07CDysu" Content-Disposition: inline In-Reply-To: X-Cookie: Give him an evasive answer. X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 --jZMkXTlYS07CDysu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 03, 2022 at 06:34:53PM +0100, Sudip Mukherjee wrote: > On Tue, Aug 2, 2022 at 7:48 PM Mark Brown wrote: > > On Tue, Aug 02, 2022 at 06:57:45PM +0100, Sudip Mukherjee wrote: > > > +#define DW_SPI_CAP_EXT_SPI BIT(2) > > This isn't at all descriptive, it'd be better to have a capability bit > > for the various multi-line data modes (or possibly individual bits for > > them, though board setup will stop us using things that aren't supported > > in a given design anyway so it's a bit redundant) - that'd be a lot > > clearer and avoid confusion further down the line when some other > > feature gets added. > Do you mean to add separate capability bit like: > DW_SPI_CAP_DUAL_SPI > DW_SPI_CAP_QUAD_SPI and > DW_SPI_CAP_OCTAL_SPI ? Either that or some rolled together capability with an at least somewhat descriptive name. --jZMkXTlYS07CDysu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmLqsvIACgkQJNaLcl1U h9DprQf/XGCUL1mxeHLklmE3hgniURrGWqNZYSIf6026+k1AkgHvDbsJr3quML+K s+H33prL2d4toIr5ZhZJeA0jll+G2v4WAp7hCCsRGBMhb2tY19Edgm7zZphukyPG P53vdY41sOL1WFjhQCXmV+vSCs2Qg6bUQJlHo9+VKySbw0xIcllzJg9ntdWiI+qA WYUMInBgHwzRO0JP48FKyL9/5fMTdDLFPTKgqcjrRySUb3tqjQgFWan+BvxppV6N 9smJiCSytcYfGQe7W5Ez0VjLmchdWA+p46NzDbzqluw+TnQDkFWYG3cTtkPOEJ6d tdHO5maeeA3V83N5WlLrwiurXMudow== =8Pn4 -----END PGP SIGNATURE----- --jZMkXTlYS07CDysu--