Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp760130imm; Fri, 28 Sep 2018 06:26:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV61RBnUOkt1Za7hPaA7ZNpmHhTv6hhXzw7xEXH+rJvbvOuxhSJhOwhhENpHPpGJ71YRzM+aA X-Received: by 2002:a63:6054:: with SMTP id u81-v6mr14770633pgb.74.1538141205449; Fri, 28 Sep 2018 06:26:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538141205; cv=none; d=google.com; s=arc-20160816; b=U1XQr/NOVwH4WqIAz9qY5rbmOpkqXWEgkB0LjD8KbMtGJsE+hgz92693LMCaLgibxe 2peq5DQZUrwoAojCaI/pQt6+1Dxv5gfH2v5Ht+sXj9nr8iOQZaCu1qsmEmdzq9TPVLsn LaxRiuo2ple9MWMowNksZqupfG7ssM+nnB68ZedioADXLXlOOZAGY1AuS4mJo8SNPgsV B5XeTf5VGxZr344/TGDEwKVBWzrNoGzisWq0VP8K3EZpnIksFPe47OhTfyw3fOZXgSo6 lbXOFqruIQiQZeMDxF08alA7hGbLE4a4qyVXd05B9b3lBvl9h/PG/c/Du8Um+lT2w+t+ V7nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vVwRJHXxEyk90KDl5j89fIB3v0wK3lVJQN8flfXYOn8=; b=Zv6slFvMmpyNtpp1IRLI2Yrun1hyZW+soT39RwYvPfUQ1CbQl0gnz1TMIIDehFUesJ XKO0YcgXJj9WIrNFKj/0s15ODfqNzOpcZzNcRbDB30eQW8ZfzRuVL9UV/KmsD+Hc9Hy+ GRzOezWREkhbI7s5yu9WTQTb6m6GqZkp/WCfnCzP+G0pICpJ3ksl6rdQYhgJKFc6Jn/q MiAcHPFUJwiPDFm+4gjWJH1LIBhpaJODucAcdLRPKYIMSmaW9o6MPcL9JG2ihjzqX92m TbPBa+lFu49uQOHl77WaYErgPhKazhkIxiFviSZ2wowrPzYAC5Mk1XQDdguECTC1g9Oj oqBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Qpjsr4eh; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d127-v6si5191837pfa.189.2018.09.28.06.26.28; Fri, 28 Sep 2018 06:26:45 -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=@sirena.org.uk header.s=20170815-heliosphere header.b=Qpjsr4eh; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728804AbeI1TuA (ORCPT + 99 others); Fri, 28 Sep 2018 15:50:00 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:45894 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbeI1TuA (ORCPT ); Fri, 28 Sep 2018 15:50:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: 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=vVwRJHXxEyk90KDl5j89fIB3v0wK3lVJQN8flfXYOn8=; b=Qpjsr4ehwLwZBfQYyxEwk0RWL VcNjwQoYCxhPugha/YmQ6YEBoSzZL13TkQljkRyqaQEX/SgCQY5ZPD739mb2pWiCl2ymTyoWLRJ6R fgH1KrSVlkzu8wL6b+AT2a15SZkDv2fzftW1gH7qlItgwbgWHm5x0K1tUeG5wtEfx5ptU=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5smX-0008T4-TW; Fri, 28 Sep 2018 13:26:09 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 44574440078; Fri, 28 Sep 2018 14:26:08 +0100 (BST) Date: Fri, 28 Sep 2018 14:26:07 +0100 From: Mark Brown To: Boris Brezillon Cc: Chuanhua Han , "linux-spi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "eha@deif.com" Subject: Re: [PATCH 1/2] spi: spi-mem: Add the spi_set_xfer_bpw function Message-ID: <20180928132607.GK20825@sirena.org.uk> References: <20180921070628.35153-1-chuanhua.han@nxp.com> <20180928084431.300b7bf9@bbrezillon> <20180928091833.15e95f7f@bbrezillon> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wSq95SjGPZBE6hCW" Content-Disposition: inline In-Reply-To: <20180928091833.15e95f7f@bbrezillon> X-Cookie: Disc space -- the final frontier! User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --wSq95SjGPZBE6hCW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Sep 28, 2018 at 09:18:33AM +0200, Boris Brezillon wrote: > I might be wrong, but that's not my understanding of ->bits_per_word. > To me, it's something that you can use when your *device* (not > controller) expects non-byte aligned words [1]. The spi-mem protocol is Yes, bits per word is a device setting. SPI devices can have control protocols that have words larger than a byte with a fixed byte order, many controllers do the required byte swapping. --wSq95SjGPZBE6hCW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAluuK+8ACgkQJNaLcl1U h9BOQwf+LqkpaV7bP+BUmsidnAw28PcCEe57W885U1yULgNr1lMjbXdcA4azs5pj jS+3UNRW1Cx44/3eKvNsASub2mapMXVdSWv0Q7JsMjuu5piICIHlovk1LDdWu6gN 2lLDvCuEYeq1Ys+hxl8Rx7hekX/cZ+Z7udG/aZkuh5sq1Gokqvq10fHk/wnLLel8 MoisTOIGXwarSQMIphhfAted9qYTzX6FgP3rEyMop1NOHo+0Bs9nrRPYWcpzvlsy gNIlpmnUZ7d94Nx6NdQS1K22Ipk7MuyDkp21eeRtFJZe/QmWVbDKtI3ZljDxU6y6 BvtdaWoQrjkCwiIQdeZCehRBY7Xqcw== =uT86 -----END PGP SIGNATURE----- --wSq95SjGPZBE6hCW--