Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1741179rwd; Sun, 21 May 2023 05:29:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5T81MMJVUrKWVaKZTcnOyxT+RLNYO70KX/hqBZjOfF+94gPEatX2hV91kkXnZEz6iqWDLJ X-Received: by 2002:a17:90a:c706:b0:253:96e8:d77d with SMTP id o6-20020a17090ac70600b0025396e8d77dmr5722299pjt.10.1684672196846; Sun, 21 May 2023 05:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684672196; cv=none; d=google.com; s=arc-20160816; b=oz9DMhdFzEox94BthZn7ZuBNarPQEXpV5Br0UVp15Cu4NMHAq0+RSZGwAy6jDF2EGA omZtiHGy3or7wkgtNig2+IRITWJexoK8t6kWGbiH2V+lK2vw2uYHakOPPYUK3maNK+AN pN8ujS1SiO8Pvg5SOX1yZF9Q6au7wDquGRZOGjRbammoOy5WCCE/j5clOpyBOQN9rPM2 CYpyjAlw4VePAsyzL8JN9KDdNM6UfnRL9kJkxoOH8Dv2IMASvKtxlWPrYtWKDl99u2Iw 7Ju10QkjvMIO8FVdK27mliBjY1wXdKAHe96RctznttS3YNI32KcK1AHIqtdg/GHH1NW5 M/QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FIeF0Ho4NovaLTv8j0PXxNoLNVguWyAjL6rrIVe8Pt8=; b=LfVSStj1oFXIdw9z7elho7hpRdiOhPkoTtLv/mv+x2VbxwKcc7SyMKV020Iavjy9Ll nMT84/BnmgyrCl4kWfhZbCG8FVnip8BZxk7YayKLf8jeSYdi4p+D09YmDTdEp3zhlt16 H50fhAemS3AFyvuDw3e9xCh+BuQElpVUYTW4AJtgFvZtC1a1CQpQFIWhhedfSCSjXICb PflV669Wb0aTyatnESwMxxP70Ri9Lm27nURXYse2t5JU/AegW4fhyOO08liESOBiw9G7 4sQ61RCfnfLHc7w7S0tA+ZJVU9CSp8K/n2EFjosInbdWJAnAqfNPmQbf6sapNtuzolfO kbVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=YGBlhygx; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f7-20020a633807000000b0052cc25bd286si2993149pga.756.2023.05.21.05.29.42; Sun, 21 May 2023 05:29:56 -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=@gmail.com header.s=20221208 header.b=YGBlhygx; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229882AbjEULgf (ORCPT + 99 others); Sun, 21 May 2023 07:36:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231898AbjEULgX (ORCPT ); Sun, 21 May 2023 07:36:23 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E5D71B5; Sun, 21 May 2023 04:35:35 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1ae58e4b295so30873375ad.2; Sun, 21 May 2023 04:35:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684668935; x=1687260935; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FIeF0Ho4NovaLTv8j0PXxNoLNVguWyAjL6rrIVe8Pt8=; b=YGBlhygxVvCZJhvVSS9QDlsvRUD0MtJGp9smEL7MHNlUdUdyD4IALtp1z2acae0Rgx +y2nd1KF0Z2/Bae4Jqf2mXr95eMrIs7qIiM7+Q/gwB1l0FMRJm6k26w0pE4fAXJ5dabt oggoIku/r1MhLjLPkoRg0iyiNPlfdApothl87cGwvfQCbQyzom6qfUKsOUmRz4W+HgXV Pc5O/y8wtI3Iyxzf/Rd9VSdY/ldXr/FS3RWVX4ABn4hrHP4njJ/p4CCk9CUcwwSNx7LM UcKdGoZJUcJ7MpUfiQVFK2C8L1ilNF3og8iWlnJUNMT8nMIl6lBXztc1mDQAtHbeEipl sGIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684668935; x=1687260935; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FIeF0Ho4NovaLTv8j0PXxNoLNVguWyAjL6rrIVe8Pt8=; b=fpq+edppHROU5CL6HdJFfzaWgBIRndlIQgqbRrsSU8fHUASdhyVvnIxWBE9nOOd34i wrw3OIUltoxZBomcNsjldxuk3hieqoC4ZQjPL1u1BhmzSaaZQZWfEpoPVJmxxJniKlIj vuDCDNOPLYm8PVYG+c3/1thoXGX5ZwR2sI3BPa2eOcPX6l6qxsJBqoj5kArNSJVnOOMP 4WFnHtBqcssdBn3s0CKTkkvuP5pRF+FcqmFncBo7usJ06q9tERFttaJJmWW5J44+f34s KGmtqGFs65eA68gljSQeKdNUz69+hUxn+51WTsnrqwkDhTlePW9MOXxM+Zq4GzUGUi03 nZCw== X-Gm-Message-State: AC+VfDz3JrBtrMrIpTfjCQTMTjOKFp7TsfxigMfSQy6X4T5UoTqBxauM Zcxe9U2e2VCOSMTzcmYIEnQhLAh9J4VkVtSe7E0= X-Received: by 2002:a17:902:ef84:b0:1ae:5916:9f12 with SMTP id iz4-20020a170902ef8400b001ae59169f12mr8731984plb.13.1684668934661; Sun, 21 May 2023 04:35:34 -0700 (PDT) MIME-Version: 1.0 References: <20230520190856.34720-1-boerge.struempfel@gmail.com> <20230520190856.34720-5-boerge.struempfel@gmail.com> In-Reply-To: From: =?UTF-8?B?QsO2cmdlIFN0csO8bXBmZWw=?= Date: Sun, 21 May 2023 13:35:23 +0200 Message-ID: Subject: Re: [PATCH v5 4/4] spi: spidev_test Add three missing spi mode bits To: Andy Shevchenko Cc: bstruempfel@ultratronik.de, festevam@gmail.com, amit.kumar-mahapatra@amd.com, broonie@kernel.org, Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Am So., 21. Mai 2023 um 11:00 Uhr schrieb Andy Shevchenko : > > On Sat, May 20, 2023 at 10:09=E2=80=AFPM Boerge Struempfel > wrote: > > > > Added the three missing spi mode bits SPI_3WIRE_HIZ, SPI_RX_CPHA_FLIP, > > and SPI_MOSI_IDLE_LOW. Due to the length of the new options, the > > indentation of the options in the help message was also adjusted for al= l > > other options. > > Actually since you are touching all of them in the user-visible > output, you may also reshuffle them to be grouped logically. I'm not > sure if the switch-case ordering would be nice to have shuffled as > well. If so, in this case it might be better to have it as a > preparatory patch before you adding new options (and hence take care > of indentation in the first patch). That said, just think about it, > I'm not insisting. > Thanks for the suggestion. I tried coming up with a logical way of ordering, but I am having some difficulties deciding. What do you think of the following order? general device settings " -D --device device to use (default /dev/spidev1.1)\n" " -s --speed max speed (Hz)\n" " -d --delay delay (usec)\n" " -l --loop loopback\n" spi mode " -H --cpha clock phase\n" " -O --cpol clock polarity\n" " -F --rx-cpha-flip flip CPHA on Rx only xfer\n" number of wires for transmission " -2 --dual dual transfer\n" " -4 --quad quad transfer\n" " -8 --octal octal transfer\n" " -3 --3wire SI/SO signals shared\n" " -Z --3wire-hiz high impedance turnaround\n" additional parameters " -b --bpw bits per word\n" " -L --lsb least significant bit first\n" " -C --cs-high chip select active high\n" " -N --no-cs no chip select\n" " -R --ready slave pulls low to pause\n" " -M --mosi-idle-low leave mosi line low when idle\n" data " -i --input input data from a file (e.g. \"test.bin\")\n" " -o --output output data to a file (e.g. \"results.bin\")\n" " -p Send data (e.g. \"1234\\xde\\xad\")\n" " -S --size transfer size\n" " -I --iter iterations\n"); misc " -v --verbose Verbose (show tx buffer)\n" -- Kind regards, B=C3=B6rge Str=C3=BCmpfel