Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp632092imm; Wed, 18 Jul 2018 08:06:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcaghq73/rZfsul8R4XIwvV4Ik1OHeYkhlUmPjVsWrOacKk7UKO5qBNaSb6z1a1eZbKfXTt X-Received: by 2002:a65:614a:: with SMTP id o10-v6mr5967084pgv.387.1531926381644; Wed, 18 Jul 2018 08:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531926381; cv=none; d=google.com; s=arc-20160816; b=jRq8iHKGgo4RMc8WanPIYINRZcQU8sKzf+OGvaBFp+zT+DaLfdL0SVmgcS9l+iSUHQ jEWJ+rNVVrFAyMpdeD7YMwK//XxKrwnL/chUDVmgAvwynVw8IejAms+wFZ5YUaGg1AJp izSzadM5K64TLAWChF+otPuIMwnXZOjyztofWZI79cok8ddui2LzO3oHDYnkULRFhIof onbOu2ouIc/9ovySBgmjPeQJfrLlkLfMrdO4vy8dFc2Ih3623ytyyoscQ1rjbasuMcsL 5elAaupgy/u0PCHTb50pIkcWziwrd/uiahWZyukLoF1pbYzo2Dp/X3OyhOQE5Lkx79Re aiUQ== 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:arc-authentication-results; bh=jVxwLGID4pAeqBEPCj0AqBAbXQnEsaVrnD896hWFKIo=; b=yYhG3Fwtt4NdyjxlJX/zd4K/DmnfXOI/y5MXKtkcy7ee/Wb3Nur8HzkYISUkpq88JZ Sxbwuf7pLO5t/bZB95kMPeIwY3DYtdpARz1qFRjwnyRjA73m1ua7DnwMH/1iKGSV5vsF vy6tJRETvwrDX6vRV3bh+rOHT9N8WbuTPxBXBW8BEnA7Nl9h/xdeSYxjwdUmVOpCD5N7 q4rZmKNAsZblwBYq81EdKDQs8M21yvv7rP1dF/U/EkMlrUsWPD+u4JQz3QpdOeOWGZym oJNyZNhc+Jx/praJMozAByVT31sA//hLH2LVx0SPi0NyNucFJfJN9jPeyPdw1z+2W+Bz zl0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=G7vKnV6a; 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 6-v6si3335618plb.409.2018.07.18.08.06.06; Wed, 18 Jul 2018 08:06:21 -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=G7vKnV6a; 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 S1730499AbeGRPnf (ORCPT + 99 others); Wed, 18 Jul 2018 11:43:35 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:57512 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726834AbeGRPne (ORCPT ); Wed, 18 Jul 2018 11:43:34 -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=jVxwLGID4pAeqBEPCj0AqBAbXQnEsaVrnD896hWFKIo=; b=G7vKnV6aEYbBvHLdatOfyAm/B UG1nzdBS+CqsutwdVIl1jBlyE3WZ11wd+lf7WXS5xbI6PRvetTTJFJISsyl0mnP9LG8aNTm/us2L9 G9oLqIoTC7D5oNOy7gDoCp5hRkBQeptoj3QiD1fOv2Hq9t53PURFY1x05jTHIVJixRWCY=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffo0a-0003f9-9m; Wed, 18 Jul 2018 15:04:52 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1ffo0Y-0003zV-Vz; Wed, 18 Jul 2018 16:04:50 +0100 Date: Wed, 18 Jul 2018 16:04:50 +0100 From: Mark Brown To: David Lechner Cc: linux-spi@vger.kernel.org, linux-iio@vger.kernel.org, Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] spi: add new SPI_CS_WORD flag Message-ID: <20180718150450.GO5700@sirena.org.uk> References: <20180717032052.12273-1-david@lechnology.com> <20180717032052.12273-3-david@lechnology.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="H83aLI5Lttn3Hg7B" Content-Disposition: inline In-Reply-To: <20180717032052.12273-3-david@lechnology.com> X-Cookie: Remember the... the... uhh..... User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --H83aLI5Lttn3Hg7B Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jul 16, 2018 at 10:20:50PM -0500, David Lechner wrote: > 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. This feels like it should have a soft implementation if it is going to be truly usable, the vast majority of SPI controllers don't do this and I can only think of a few that have the hardware feature. I'd also expect to see some validation added to the core spi_setup() since at present a client driver could set the mode option but then have it ignored by the controller which would presumably break things, we currently only have checks for specific modes and nothing that'd catch an unknown flag like this. Ideally we'd also have some ability to use this as an optimization where possible with longer sequences (I can see a regmap cache sync being able to take advantage of this for example) but that might be more trouble than it's worth. --H83aLI5Lttn3Hg7B Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAltPVxIACgkQJNaLcl1U h9C/awf/b9hscy2AJosmJUBThr9n1LpeKI6knCgJVbsOg9FUBH9JjVxAagPdRe4Z 3fEyFqiDo7kSezNOZmrxbwTKTwiLbi2eLojQfohuMpEaF6HXE7Vo3ypGvlnTwSsQ Xaw9vlpI8rNbDXqIb98PRd3th49FEkIIdsi2g0LTKlhxZWG3nynTHprK0PyPZuro uPg4FU4dLUtsIkrsg8awEGCCuBARNysS6TFgPAKeLhSGnMwPfMMx20f2o1KeMdWT B2QUNwjQnPwnxlYO9ahs2BiYxTY43ap1WlYN0xqoYyUTHN0dL4bD3neCSHb1p+SG jM2asJiLGGzjHyzrKZhF3VhQuOEp1w== =l9Kc -----END PGP SIGNATURE----- --H83aLI5Lttn3Hg7B--