Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4916182imm; Tue, 16 Oct 2018 02:03:53 -0700 (PDT) X-Google-Smtp-Source: ACcGV60lIwvO8SaMgdy6RmnTR83aKb0lwUSXCz953lc+PTH2moDkzje+o3ip4dmLHL5rh/+qN2Mr X-Received: by 2002:a63:ec11:: with SMTP id j17-v6mr19204192pgh.388.1539680633059; Tue, 16 Oct 2018 02:03:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539680633; cv=none; d=google.com; s=arc-20160816; b=idbmet60yRwE5hAdJqYkj4OWMEhRN1mkdQdcZ0KuuF+z3S1MWGyDxkxvRkG/xhdPrU Vb5vr40/YWAbPpICvGjgJTduoumHtGF+5voJion25YY84NobFS1EncQjnZgcDrXrRrVe d29HRslWXvg4MsjBwL81AJhpJHuMCMIbMyw6okivyXBVxe90TYnubYY74vO2EshpNs2J 73K5KebFu/4JCcj6KW8okpc5YQCrXBxwlDR3Vzc3jFggkvEXEFQOvBi/x4e8WXUlwHEt D0t3Ka1/HHyJ2j5flM26aI83blqodbiPhzGMskxybQn52sn3bvKNAJHYIQxUkDAeOBbq DXHw== 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=cYOZ0BDs8ZWVNPKyAgkgVMMgHqsX9yxw118gICx17co=; b=V+cIAYSIVCtNBfE4Wv2p90EDBHTy5HG3tqw7KlkXwXX0lznkvy6ebeSvIFgqmEsviG fNQDmqJ/dlNFjFH4zZ0e8q3RWf/Mm4diUN5c4rSHAWQhCelUDbYZpmoF1GsyHfo8sUkp LfSEeEf68lyAFe7wcVsAi75i/kYUQ6HPdyjDr8QPyInOJVntmX+niH7qHw1GtbDr8BN6 oT9zfB9TTrldmsZa7yIWCHurT8av3426wm4Mpq0yZqiZdwvSaLRp57F6kjJM3rRcL1dz dUx/VHKrHxwJ/Lnc32RkCqw/+gDPxrfo3IEAVHGuIGlIYrdZxu+uRREyRxCJ2XktZB1F xHTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=NiFYDswH; 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 g11-v6si12948637plp.128.2018.10.16.02.03.36; Tue, 16 Oct 2018 02:03:53 -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=NiFYDswH; 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 S1726968AbeJPQwk (ORCPT + 99 others); Tue, 16 Oct 2018 12:52:40 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:47986 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726541AbeJPQwk (ORCPT ); Tue, 16 Oct 2018 12:52:40 -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=cYOZ0BDs8ZWVNPKyAgkgVMMgHqsX9yxw118gICx17co=; b=NiFYDswHqEVFPpNA0afzKmWnk aAzule1DZjJxvYI+YxpOyjzLqP4PtmN2pjjnidQIcq7hbaf18xmBiQjNc6ooPTUHSOcKTNLLiey2O 7IbtnI1j959F2UiVQNrFOYvegQO3xFjKB5lvTP6xaLhl4GQwRzFnnGtwfLQ1cNEc8Bsbo=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1gCLFu-0004jr-Te; Tue, 16 Oct 2018 09:03:10 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 8A66711224A9; Tue, 16 Oct 2018 10:03:10 +0100 (BST) Date: Tue, 16 Oct 2018 10:03:10 +0100 From: Mark Brown To: Trent Piepho Cc: "linux-spi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "phil@raspberrypi.org" Subject: Re: [PATCH] spi: Make GPIO CSs honour the SPI_NO_CS flag Message-ID: <20181016090310.GA7449@sirena.org.uk> References: <1539336198-84179-1-git-send-email-phil@raspberrypi.org> <1539628457.30311.5.camel@impinj.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: <1539628457.30311.5.camel@impinj.com> X-Cookie: Huh? 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 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 15, 2018 at 06:34:18PM +0000, Trent Piepho wrote: > What about the calls to spi->controller->set_cs() after this? Should a > driver provided set_cs method be responsible for checking SPI_NO_CS?=20 > Or should it not be called in the first place? This seems like something that should be done entirely in the framework, no point in every single driver having to open code the same thing. > I imagine it depends on what set_cs needs to do, which might not be > solely related to changing the CS line. It should be. If something is hanging other work on set_cs() then it's going to break. --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlvFqUsACgkQJNaLcl1U h9B40Qf/TWJfMXhUwEge5VIGkgNJ235s7i0tQoLwS4JTQM243PCrC82le63VYmD2 Eki8KRNtCo94pMOPeIXMwu1SIfnt8FYqDZElPRNBHb+rruJtXwOLEbKOVoiFbO4j J2Gv7hmiT3XmP2t0Bvkg31eTaqp5r5iyxSrbWP2Hw4ehMqgm5t9eh2+03skLOcGI AfyGjbIxEK6weMp1otBBWnM5KftDtSTaTgajbRtX0wvtv15sGqxX8P/9+mbUlfZx 3JcZxdhMtBfIYqSJm8XfKMg7qonEKA9QxyV3RLFy1xjkt2+DgoZkdHt2GaYzZy8O aBz685qXms+1TN2LD3HY0gFY5cXsaQ== =oQmb -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--