Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3039365imm; Mon, 16 Jul 2018 20:22:25 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeQBrG7QcvuNhPKVXqKmVOTF9OxLCbNgNXwAVwrNic9h3YYv5CojkcNvFSFinPpshZdna9q X-Received: by 2002:a17:902:1682:: with SMTP id h2-v6mr18954816plh.327.1531797745475; Mon, 16 Jul 2018 20:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531797745; cv=none; d=google.com; s=arc-20160816; b=aNSZoYxOS0dyigwu6AeE7xQW4zJ266exb+K5aubftZgPbqlFuue/V7j+HubNSGJxsx MozC/GkeB/BVgRzEqEz5KgX2D9Y8tFSTmRfitAu+0+Si5LeMtRIURgyKZJaGYq7Et1B+ gQlgza9DljRGgfI2jJB+i5q7ynwV/Pee0OPKsnCab715Xto9RM1iBVGUW5NckGS2KjTs F3CaKvei+oODOKmibUnLNftwyfT62oKZWcRVibSvfIcZyF3PqKCjgiskij+GZaOPA7RP /XCbb1x347Nyrm6eEPRogIsG2Ke4WR3LI+gPxLO+6LDDgdpHh9S2BRqZT5jyeS8kIxIH V8+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=CeEcCdSPRE2Jo41/Ig9cw6NWISNbmardcDOa0lSQkW8=; b=Q/gchYk9GjD9g1y/NL7amktxRc5IgIxJAn+NLxsPsvSOgSEPj/fdCDcJIJcu4OObnN fEr/jxPxXK2dBwx+9x/YdVHc1aDcK9xrzukVZhIJM4M67P3VMu5iHOTjmFx6tBuxYQax vL8Ea9Ou+uJzfAzs7/rNFdE6JDNgO2x7JxjtQu2eJkRdaKsbmtmCNRYjrsUg9CjaAFIq MKUO3hIXUiF8LXixSrKisa4zDPld/I0BE27gie7q5dw10adYkKa8cL+RyBvsLp9d5Avf I69pVWbN8sQoSqDU2QSmf2qt5MSCf2WX6P4Mb4o5OI/xktjxqDCkVkZcDIeeuDM09OQP oXDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=wZsDlCZS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r81-v6si34427498pfg.305.2018.07.16.20.22.10; Mon, 16 Jul 2018 20:22:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=wZsDlCZS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730840AbeGQDvk (ORCPT + 99 others); Mon, 16 Jul 2018 23:51:40 -0400 Received: from vern.gendns.com ([206.190.152.46]:35639 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729967AbeGQDvk (ORCPT ); Mon, 16 Jul 2018 23:51:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CeEcCdSPRE2Jo41/Ig9cw6NWISNbmardcDOa0lSQkW8=; b=wZsDlCZSYDSjV1oUD/S9phxgH gCGgt2y1NDKtNtJeu8YDyVGsGf0fgPXiIBUlk6p08aoR9udLUXbF9DvH1UMvcN+4OqtkXfkw+rfuY 0StXMrWulr7ol1CXFpnX3ZQrazeA9pEwaRuvS759apsz1xRYrnlUzyb/yB9XGu0QLhQSKOC9Udyh8 So/iUJqH+LX0OFfPLImYMOdx1QbDxsNgex+jepuTujKssgZ6p7zOH0hXKUWb/vdSwlB/fXUiCB/Zz hyFdyTy+tpgUJZMB/mCF2QZGkxbot1D921ByjftBv9McKH26knNzSnrnayEpAXdbmBsLByPV00nSq q3Naa9sIg==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:53228 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1ffGY6-00CnnZ-NR; Mon, 16 Jul 2018 23:21:15 -0400 From: David Lechner To: linux-spi@vger.kernel.org, linux-iio@vger.kernel.org Cc: David Lechner , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Mark Brown , linux-kernel@vger.kernel.org Subject: [PATCH 2/4] spi: add new SPI_CS_WORD flag Date: Mon, 16 Jul 2018 22:20:50 -0500 Message-Id: <20180717032052.12273-3-david@lechnology.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180717032052.12273-1-david@lechnology.com> References: <20180717032052.12273-1-david@lechnology.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds a new SPI mode flag, SPI_CS_WORD, that is used to indicate that a SPI device requires the chip select to be toggled after each word that is transferred. Signed-off-by: David Lechner --- include/linux/spi/spi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index a64235e05321..7cc1466111f5 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -163,6 +163,7 @@ struct spi_device { #define SPI_TX_QUAD 0x200 /* transmit with 4 wires */ #define SPI_RX_DUAL 0x400 /* receive with 2 wires */ #define SPI_RX_QUAD 0x800 /* receive with 4 wires */ +#define SPI_CS_WORD 0x1000 /* toggle cs after each word */ int irq; void *controller_state; void *controller_data; @@ -177,7 +178,6 @@ struct spi_device { * the controller talks to each chip, like: * - memory packing (12 bit samples into low bits, others zeroed) * - priority - * - drop chipselect after each word * - chipselect delays * - ... */ -- 2.17.1