From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ned Forrester Subject: Re: SPI Framework chip select Date: Sun, 02 Mar 2008 09:08:29 -0500 Message-ID: <47CAB4DD.4000007@whoi.edu> References: <47C85451.1030809@whoi.edu> <200803011237.51349.david-b@pacbell.net> <47C9FF5E.5060503@whoi.edu> <200803011858.14400.david-b@pacbell.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: spi-devel To: David Brownell Return-path: In-Reply-To: <200803011858.14400.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org David Brownell wrote: > On Saturday 01 March 2008, Ned Forrester wrote: >> You can assign spi_device.chip_select=0 for all chips, and as >> long as you supply a unique >> spi_device->controller_data->pxa2xx_spi_chip.cs_control for each chip, >> chip select will work as intended. > > The SPI core would reject such an atrocity. :) Well, if you are sure, I suppose it must be somewhere. I could only find a check for chip->chip_select >= master->num_chipselect in spi_new_device(), but not any comparison between chp_select values of different chips. Probably I don't know where to find all the files of the SPI core. -- Ned Forrester nforrester-/d+BM93fTQY@public.gmane.org Oceanographic Systems Lab 508-289-2226 Applied Ocean Physics and Engineering Dept. Woods Hole Oceanographic Institution Woods Hole, MA 02543, USA http://www.whoi.edu/sbl/liteSite.do?litesiteid=7212 http://www.whoi.edu/hpb/Site.do?id=1532 http://www.whoi.edu/page.do?pid=10079 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/