Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4369182pxu; Mon, 21 Dec 2020 10:38:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyThyiBkufqa6I5EMXDemhnBLM9B6JkMGSACtCBmFfZ/nePU3dtCmkwcPBuYma/J0cH3Q/Z X-Received: by 2002:a17:906:af99:: with SMTP id mj25mr16937171ejb.414.1608575906486; Mon, 21 Dec 2020 10:38:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608575906; cv=none; d=google.com; s=arc-20160816; b=0MKbfajFkI/q2wOBz+YgEqgi59cTuXtAFlNexDNzgwYmYFwZVDgIfIVxU3F9KOSYqe B9kSe2/7op75I7+1OMjo/iX+mtLL3/1XZnSyu7/evyjNr7qREhWGn1Mflpzjf/lFCvGp NgKPf9jU1pqe79kZniKsgVQdWEGBkMAgrBh/yoXjpKzKArnTi5jloyxiRLP0JvgZ1vGc 2+mj9MitkbgMjcallwuNd84YSQyBv+8IjT6i7gmgVi0iT1RSt4WkLyDRD0Dg8ymfS/Yz 078yMhvc9J5ewRXP5IMi459RVoHioG3xK9VlsFIFI6ycvkkiEFUd7+4SeZxYasQsEFOf aF6Q== 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=LhmLpbImfktD9rtiJGAflrESaA7xFsBYHnmh6LfS2Ls=; b=jN0YCvRRXF3efbdJhAX40uWK7fLRuCny8xaP+HbhMpLklc8g/s+ZCxuOwq0H7IpFHR DP48ccvWujmvLaVNKGqmasjNFfFC2AhY43mmrPEpCJuSfYMkvEYEUJ++nba7+kDAFbaT Y6PmM5SRkaHeW2uPHL9kxfx1E0Zf9VsAxZOzw6o3ioSfDFPRxCQZPnqx/03JPZO9F3Ka IaWftS0Petl5QjsLP+Ini28bnhLqv5XSZcnJhZXoFO7djHeP0lESTXGuKKc+b4sIBKU/ 6Q2eGntR5nFgEPjv+kUpa+msKkEWxwXt1EV+a3rf+eZ9xUEA3Rz5y/fakivuOKqJyn9b deyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FBWqccZU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si11273135edn.508.2020.12.21.10.38.03; Mon, 21 Dec 2020 10:38:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FBWqccZU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727056AbgLUSgj (ORCPT + 99 others); Mon, 21 Dec 2020 13:36:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbgLUSgi (ORCPT ); Mon, 21 Dec 2020 13:36:38 -0500 Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ADDAC061793; Mon, 21 Dec 2020 10:35:58 -0800 (PST) Received: by mail-il1-x135.google.com with SMTP id g1so9777246ilk.7; Mon, 21 Dec 2020 10:35:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LhmLpbImfktD9rtiJGAflrESaA7xFsBYHnmh6LfS2Ls=; b=FBWqccZU9KieCRmfheuIw/ighBbgCIsb4g/imu3WpdLuAcGb4XJYoX8UH3FL5Kc/1q iDqGvC2hHaXQKIL2Lo0IZa5Pc1n9XGc0dSdxrtaZd6AWJ+g73iUhvCEfrMWGOVs40b6Z +DBJTLKSs6hYUkkRqP31UMcCmeTYFRMbIKPHck0AzOOp0YjonovMUI1PwOAbYxz6ZL12 8Yj9QWBFz5NDAXEZ8rmpR37JPlhnTwzHH3rvIDV5GYy4qKpArTTGzWyLlXA2j8aXz1zM PuVKKXVZlIBaZ+2rbC9HIje6eqalX25x/4S8O/QN+/oW55VIMpOVKjVKu8F2zSLIqaRX gTcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LhmLpbImfktD9rtiJGAflrESaA7xFsBYHnmh6LfS2Ls=; b=jut3ngtd8Apqn40y+pIupbxu9BcbX/LgOTYAQ05fdfLxj1qoAsDHYFNKRVzYsroMaI kZlXk+p0JN7ZPClApcgkjmPuD1Bvoga1pWGwWWXxAfpE3OoykqcA2S27euPgUcZdFfOo I+/Q4RWj+1CFdYsHJWG54ag+PABR9iPM41z0r2U7JS7t02x1XQJb3aHvIxtFSMyWS5Yl SiJ/ofXhvvDyDQWXWl02XY/WPfV30Atw3UK0orgLzeCZ6G7M2sPqEDYH69g+qixsANLk dK2GrHl6GJZ47/LIkVRC7InENdpWcJRVRxUrqQDOeZIMpT7xvvm2VX/APVwGnLnQ4Y3h fzZQ== X-Gm-Message-State: AOAM530IYXZCbl4EBWmNIng3s7Jhy9pT5xJU8F2Qxb4c/jpEBsQ2KsGG YnX9ocWhGeiCQH1EKbrp+fZmC4qrDa/h49yCYQmqc4HSYD8= X-Received: by 2002:a63:c04b:: with SMTP id z11mr15546680pgi.74.1608561353881; Mon, 21 Dec 2020 06:35:53 -0800 (PST) MIME-Version: 1.0 References: <20201221141906.48922-1-alexandru.ardelean@analog.com> <20201221141906.48922-2-alexandru.ardelean@analog.com> In-Reply-To: From: Andy Shevchenko Date: Mon, 21 Dec 2020 16:36:42 +0200 Message-ID: Subject: Re: [PATCH v5 2/3] spi: Add SPI_NO_TX/RX support To: Alexandru Ardelean Cc: linux-spi , devicetree , Linux Kernel Mailing List , "Bogdan, Dragos" , Mark Brown , Rob Herring Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 21, 2020 at 4:34 PM Andy Shevchenko wrote: > On Mon, Dec 21, 2020 at 4:15 PM Alexandru Ardelean > wrote: > > > > From: Dragos Bogdan > > > > Transmit/receive only is a valid SPI mode. For example, the MOSI/TX line > > might be missing from an ADC while for a DAC the MISO/RX line may be > > optional. This patch adds these two new modes: SPI_NO_TX and > > SPI_NO_RX. This way, the drivers will be able to identify if any of > > these two lines is missing and to adjust the transfers accordingly. > > > > Signed-off-by: Dragos Bogdan > > Missed Co-developed-by: Alexandru ... ? > > Anyway, looks good to me, > Reviewed-by: Andy Shevchenko One nit, though... > > - "setup: can not select dual and quad at the same time\n"); > > + "setup: can not select any two of dual, quad and no-rx/tx " > > + "at the same time\n"); Can we avoid splitting string literals which are assumed to be on one line when printed? -- With Best Regards, Andy Shevchenko