All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
To: Ned Forrester <nforrester-/d+BM93fTQY@public.gmane.org>
Cc: spi-devel
	<spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: SPI Framework chip select
Date: Sat, 1 Mar 2008 12:37:50 -0800	[thread overview]
Message-ID: <200803011237.51349.david-b@pacbell.net> (raw)
In-Reply-To: <47C88793.1050205-/d+BM93fTQY@public.gmane.org>

On Friday 29 February 2008, Ned Forrester wrote:
> David Brownell wrote:

> > The chipselect number is always useful when the SPI bus has more
> > than one slave; it's how the slaves are distinguished.
> 
> Ahh... Here is a place where pxa2xx-spi departs from the SPI framework
> by choice.  That driver never uses spi_device.chip_select

Not directly.  Indirectly, since each chip_select is associated
with a unique pxa2xx_spi_chip.cs_control().  The chipselect number
(and signal) still distinguishes chips from each other.


> I suppose that it could alternatively been implemented by storing the
> cs_control pointers in an array during setup(), and then using the index
> in spi_device.chip_select to access the various functions.  Either way
> seems to work.

Right.  The pxa2xx_spi driver could use any scheme to manage the
chipselect signals, so long as each number maps to a unique signal.

- Dave

-------------------------------------------------------------------------
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/

  parent reply	other threads:[~2008-03-01 20:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-29 18:52 SPI Framework chip select Ned Forrester
     [not found] ` <47C85451.1030809-/d+BM93fTQY@public.gmane.org>
2008-02-29 20:04   ` David Brownell
     [not found]     ` <200802291204.33911.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-02-29 20:53       ` Ned Forrester
     [not found]         ` <47C870D5.7000109-/d+BM93fTQY@public.gmane.org>
2008-02-29 21:38           ` David Brownell
     [not found]             ` <200802291338.55149.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-02-29 22:30               ` Ned Forrester
     [not found]                 ` <47C88793.1050205-/d+BM93fTQY@public.gmane.org>
2008-03-01 20:37                   ` David Brownell [this message]
     [not found]                     ` <200803011237.51349.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-03-02  1:14                       ` Ned Forrester
     [not found]                         ` <47C9FF5E.5060503-/d+BM93fTQY@public.gmane.org>
2008-03-02  2:58                           ` David Brownell
     [not found]                             ` <200803011858.14400.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-03-02 14:08                               ` Ned Forrester

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200803011237.51349.david-b@pacbell.net \
    --to=david-b-ybekhbn/0ldr7s880joybq@public.gmane.org \
    --cc=nforrester-/d+BM93fTQY@public.gmane.org \
    --cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.