Received: by 2002:aa6:c429:0:b029:98:93ff:f56f with SMTP id g9csp379918lkq; Thu, 3 Dec 2020 06:31:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxG2OlCikh10MxIobCCM498ab5KJrJYry081M4SXgHaXiFuhZdSlKKujuOILAyhY2oSgxuP X-Received: by 2002:a17:907:2706:: with SMTP id w6mr2680316ejk.137.1607005875614; Thu, 03 Dec 2020 06:31:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607005875; cv=none; d=google.com; s=arc-20160816; b=IXMflHQRBtVDEw9hjCeLLJJgyODZpQF7idwuUOiuOagkCeiVGL+/WKg2jn/yaTJTYr AtiQysEGsqZGTDD8tJkc2bmPD9zjtCvo63+yeqvhmtg/+lwnHOLhOkhbDQjqs+x38OMj yWNATFD04mdGKK3FJieOzIifzPDCwOTn+J6puSweGAKpigljfWov07r3rbPCV4CUcsQK g64mIl6rq78YDfPWs0hY6G1gtDMG1EFnozQCsKBnVkfD5NbGIwKzBJQcAKWdlo5sQkww 6g0KqJSTAMvjGLK60qb36x0fY5zUR5/m2SfWVMmEvL6luvFoSqrN2tkDcnEp0OIBH4ya aoqg== 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=RmlHNhnBbpal8IKytHTdYXXzg8wBb8EaRJxXyVenTR0=; b=0fp0AgPttUK5XLM0xGTggfCNiqedFF5hu0ewwReoJDUiSjymWNU2dFWSB0cju1sMdd rcgqaJ6Dfzp3mPoIsIEso32qUOnONpER9EIr+FIcrQEOif7epFTLJJmu884jKpDgPMhk 8MJDr01fSUk/YBVDUisfihhhzudOAF7NInXviPArRt1S8NS+c7LBQ6BupLuqdylcicZc 2mjzMHjVJXV+Tvrf7HxJQlQVOYkWTMrGe7KWTZVfGVF+Yll5DDIMfye1ouqG3ZihX9Ym HidY7vOVlja/4GfzTCcAjZSSABkPItLZUk3wiJ9HOufCJokKfK0zZG5qRiRhhRMLoiav KFDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=quvplfd5; 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 h16si1189230ejt.260.2020.12.03.06.30.50; Thu, 03 Dec 2020 06:31:15 -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=quvplfd5; 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 S2388305AbgLCO1T (ORCPT + 99 others); Thu, 3 Dec 2020 09:27:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729431AbgLCO1S (ORCPT ); Thu, 3 Dec 2020 09:27:18 -0500 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85EE2C061A4E; Thu, 3 Dec 2020 06:26:38 -0800 (PST) Received: by mail-pl1-x642.google.com with SMTP id s2so1223854plr.9; Thu, 03 Dec 2020 06:26:38 -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=RmlHNhnBbpal8IKytHTdYXXzg8wBb8EaRJxXyVenTR0=; b=quvplfd5ZaoQvtY3zNBqQ/XoGCTzAr5Oj0JZVRPiO2ecBtg65KC0b85Hk8N8Z/7BkR /gAgww4LRd2aRaz79gRiGjy+QhMtjrBHYuFxEuw6kh3gEiyP9I10+09BiTkFmE8QuMIy 4/cib1pMzBU8V0W2GnZNQoqtGiCdCnkuAJkQGwCwXfvdlKYI0eanBes8WhVW1B6Ylbwe Oo9Y2vbAg6aQO+nhvhDTewXicRkz9oYpvkoyJu6FlqtbQ1MmWDgm0v6aSnv65Ea3Mqi1 4ry6UGO05dIdqUZ92/yT0nVlKtUrDI/13cyDFCgVmgvZr5wn8Jxs9Yz/zrTSGlYjiEor nFjw== 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=RmlHNhnBbpal8IKytHTdYXXzg8wBb8EaRJxXyVenTR0=; b=lIi1cqBNW3ydqNSYhguD1UsnFyYxQxIc305uHovx7KAFOik+g7rRt2Sd49BApwVDOm xtU1cKtZCXsPRvW5ELVMUf0vFplhwXN0WJju5uuxHsg2F3ESrkg/8EUkUaohKOCqJieU JFeXe9R2iTHHIG9Gq8tr81P7yBXbt74tkRNpIg1l9L/YySqvkJ6B5nLRCmTvWQfkw9FA c1SSB6eaQEOS3kXGQZpR6CyLvH0770m0OBA3N9Creu1qm3DJcVpy+4HDifna6fc+Kxn4 QAIBIIoNoVmBppTBawv7JHn5gmrPnckO9XpGBBgmR7a2mL1+9MnJMBwe8Af7KCubyMPj 45JA== X-Gm-Message-State: AOAM530RBMbA7dV0r5sON+Ie68Ujn9okpk178HqEX+4CJjl74tpUhfpF n4wiQRY1d3RKlMcLnHv4+WPIbE4Btr8p2vMVNz0= X-Received: by 2002:a17:902:b7c3:b029:da:76bc:2aa9 with SMTP id v3-20020a170902b7c3b02900da76bc2aa9mr3329660plz.21.1607005598115; Thu, 03 Dec 2020 06:26:38 -0800 (PST) MIME-Version: 1.0 References: <20201203140531.74470-1-alexandru.ardelean@analog.com> <20201203140531.74470-2-alexandru.ardelean@analog.com> In-Reply-To: From: Andy Shevchenko Date: Thu, 3 Dec 2020 16:27:26 +0200 Message-ID: Subject: Re: [PATCH v4 2/3] spi: Add SPI_NO_TX/RX support To: Alexandru Ardelean Cc: linux-spi , devicetree , Linux Kernel Mailing List , Mark Brown , Rob Herring , "Bogdan, Dragos" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 3, 2020 at 4:10 PM Andy Shevchenko wrote: > On Thu, Dec 3, 2020 at 4:00 PM Alexandru Ardelean > wrote: > > +#define SPI_NO_TX BIT(31) /* no transmit wire */ > > +#define SPI_NO_RX BIT(30) /* no receive wire */ > > +#define SPI_MODE_KERNEL_MASK (SPI_NO_TX | SPI_NO_RX) > > This needs a comment to explain what's going on with the flags (split). ...and to be consistent with proposal in uAPI: #define SPI_MODE_KERNEL_MASK (~(BIT(30) - 1)) -- With Best Regards, Andy Shevchenko