Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp453207imn; Wed, 3 Aug 2022 10:50:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR5vA0Z7CaZ3nWR8WSy/ntpnWClnS98cXLecClBtbOVL9CFry/4xKpuSeYQxL+mmAaY1SN98 X-Received: by 2002:a63:4d1a:0:b0:41b:d319:d8ad with SMTP id a26-20020a634d1a000000b0041bd319d8admr16536325pgb.613.1659549050144; Wed, 03 Aug 2022 10:50:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659549050; cv=none; d=google.com; s=arc-20160816; b=Eh7o3tOk+HLmYiwk4AwgxPtxq0HvbCJSC3YMgrkJDRsPWBaGjOFrP93BWcTsGbiIvg BdWoCCAdGz9/VYxVDIo/qLZFbymmutDVjhb8y6hSCH9S1VflIHnMw0SlRC67zVmSV4zf K7Cy0pgro+izOelUkhTS/xQI6YWvLMmVf7UOFzEIWCp2aL8aS6VO9vglGzNvKqGUgrUg 0qlnQbeHYgWeP1r8dqIyIQcwunteKoIz3Mj+b2WMNUcYUff8hOyZZcuHLrctARpK7HQl RBs+18uhrngRjN2lHJ6g+pxyhOfUd0NNQsPmEI9GGVCrGHzrHfLWmuBzAi9b8Gndl6uQ Ns5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=39DQIGQXThBozrEjWiDrDLhudCkP9OJY7K/8OUvd6/I=; b=MJtTWOZMja4lPh8A7ahVWuJInH4TUdZk9kv4RHpk20FWV4Sk8evncjb/QppNnmtFV/ iDps10G9sdTQGFcugip4qweIUyQKjCpvlSN5v5EYlxVTD4H/03ie5AMkM79gHqXe7zG3 Rh3nqHBy3xbvukNu/JnBninK8TmUICyQWiCNNQwfjPBQZpstGpgSkb2BRET3cZ7ZEVSD EExUxhpYmq+lr0ng0b++UYx2KnPemhAQamUjHKJCxBjwmRsSwbH75vZ9eMQuWxalmnzO BtqOvEKv0EraA2CHVeaYLN8c7OVM5f+9H2ywjrqbq5KXovoGt8SoYMmIwL9xMDk2VD7c JGaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=T0ECUMDQ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a056a00238d00b0052bbbd3bbd2si20218599pfc.248.2022.08.03.10.50.35; Wed, 03 Aug 2022 10:50:50 -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=@sifive.com header.s=google header.b=T0ECUMDQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237792AbiHCRfK (ORCPT + 99 others); Wed, 3 Aug 2022 13:35:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238072AbiHCRfI (ORCPT ); Wed, 3 Aug 2022 13:35:08 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 729EE5725A for ; Wed, 3 Aug 2022 10:35:06 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id tk8so32701315ejc.7 for ; Wed, 03 Aug 2022 10:35:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=39DQIGQXThBozrEjWiDrDLhudCkP9OJY7K/8OUvd6/I=; b=T0ECUMDQyzHYeVYDtBxdrJfXbZ6pCVez9cmhnZRCRu5+U4KzPZUaNDD2xluVSBppE/ gFdLH//buvE6AMKInJkbT83OWEFjWoziInti0CnrgWH9ip5wzV5ykMwcAiGQ0SuKnsat RcpOxXDWkr4mWKi0AqCe3bMiGzIFfrOiL1xdFXkNmHd2Mi8bsuLOtKK2JsCG0lBuHWt7 knaJo/3VYjNjxFf/fwYTRfpRSC+DiPEbImNzF2e/cRoXO8vYs24OxpfKmpLNlsHbfpVo /93/MsnxblKS7iEUOuF1gRJRZrIMgZo8rjJHPeoQrYOY50XWc933rr7850HnkVhm3Snt mM1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=39DQIGQXThBozrEjWiDrDLhudCkP9OJY7K/8OUvd6/I=; b=Z9MlPX4uFANdQhIJxSRXaV/8aw1namr0PV00yDnIwjTBC+h250wtEIUNCS4I4iPfR5 kbenTVUMSo+0/iZfo2g4U3207/qKTfhdPiZO3+tmvQNsObfdkb9IkbTRKE2/SHYTlIpU SvqIqX4BXktpt5iKGVV5tYv6MRFuKzJjU3f8DSl2FYv2OReWrrVNnX++qDffBUa9VuQx k4tnMqyYGA5Ord0Zy05W7WvbE5duPRn3Qz9L9lF9Zp0LEAlSqB24Esxs0IQrQRXu/oxj W6Gq1tJMXEUGNpHMjKcbo3okWjNF0a1Cm4qjRuJvc+ETaTrU4ZuEWCKO/oip7ikl0I02 ajyQ== X-Gm-Message-State: AJIora/McWm3tbWdd99mo4L2xG8PBw/eDqPZlI2Fz9qbNscjARUgK6yq o13lk/iDE/enegLRxD8dvmpiFCrVRzlldbhZUxC+QQ== X-Received: by 2002:a17:906:a089:b0:72f:826b:e084 with SMTP id q9-20020a170906a08900b0072f826be084mr21382249ejy.708.1659548105017; Wed, 03 Aug 2022 10:35:05 -0700 (PDT) MIME-Version: 1.0 References: <20220802175755.6530-1-sudip.mukherjee@sifive.com> <20220802175755.6530-2-sudip.mukherjee@sifive.com> In-Reply-To: From: Sudip Mukherjee Date: Wed, 3 Aug 2022 18:34:53 +0100 Message-ID: Subject: Re: [PATCH 01/11] spi: dw: define capability for enhanced spi To: Mark Brown 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: > > > Some Synopsys SSI controllers support enhanced SPI which includes > > Dual mode, Quad mode and Octal mode. Define the capability and mention > > it in the controller supported modes. > > > +#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 ? -- Regards Sudip