From owner-svn-src-head@freebsd.org Tue Apr 19 15:41:37 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F2D99B1432B; Tue, 19 Apr 2016 15:41:37 +0000 (UTC) (envelope-from rb743@hermes.cam.ac.uk) Received: from ppsw-32.csi.cam.ac.uk (ppsw-32.csi.cam.ac.uk [131.111.8.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C04CD189C; Tue, 19 Apr 2016 15:41:37 +0000 (UTC) (envelope-from rb743@hermes.cam.ac.uk) X-Cam-AntiVirus: no malware found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from xc1.bsdpad.com ([195.154.136.64]:47167) by ppsw-32.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:587) with esmtpsa (LOGIN:rb743) (TLSv1:ECDHE-RSA-AES256-SHA:256) id 1asXmR-000xul-2A (Exim 4.86_36-e07b163) (return-path ); Tue, 19 Apr 2016 16:41:35 +0100 Date: Tue, 19 Apr 2016 16:26:29 +0100 From: Ruslan Bukin To: Ian Lepore Cc: Ruslan Bukin , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r298268 - head/sys/dev/spibus Message-ID: <20160419152629.GA28888@bsdpad.com> References: <201604191418.u3JEICrY023254@repo.freebsd.org> <1461076899.1232.23.camel@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1461076899.1232.23.camel@freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: "R. Bukin" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2016 15:41:38 -0000 On Tue, Apr 19, 2016 at 08:41:39AM -0600, Ian Lepore wrote: > On Tue, 2016-04-19 at 14:18 +0000, Ruslan Bukin wrote: > > Author: br > > Date: Tue Apr 19 14:18:12 2016 > > New Revision: 298268 > > URL: https://svnweb.freebsd.org/changeset/base/298268 > > > > Log: > > Add optional chip_select/deselect methods. This is required > > when we want to keep CS asserted for multiple transfers. > > > > This is missing a now-required mechanism to arbitrate ownership of the > bus. If a leaf driver can take over the bus for longer than a single > transfer, then it needs the same kind of logic as the iicbus uses > (well, conceptually the same, it doesn't need the same horrible > implementation). > > I also don't see any default implementation of the new methods, or a > commit that adds the new functionality to all existing SPI controller > drivers. > Thanks, Ian. I just realized we don't require to hold CS for multiple transfers in our hardware. So I reverted this. Ruslan