linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
To: David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	"Hennerich,
	Michael"
	<Michael.Hennerich-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>,
	"device-drivers-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org"
	<device-drivers-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org>
Subject: Re: Spi slave devices with two chip selects, how best to handle?
Date: Fri, 26 Nov 2010 14:39:02 +0000	[thread overview]
Message-ID: <4CEFC686.30603@cam.ac.uk> (raw)
In-Reply-To: <301691.11173.qm-4JhmkcZgSkkHBU+L9ui1Svu2YVrzzGjVVpNB7YpNyf8@public.gmane.org>

On 11/26/10 04:19, David Brownell wrote:
> 
> 
> --- On Thu, 11/25/10, Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org> wrote:
> 
>>> as to be able to pair them up. Anyone have a better
>> idea or an example of
>>> what someone else has done in similar circumstances?
>>
>> Have a single driver private data structure that contains
>> and
>> registers 2 spi_device instances.  Have both
>> spi_device instances
>> point back at the same driver private data structure.
> 
> And consider having a chardev or blockdev to
> access (indirectly) both the read and write
> sides of the chip. using that driver-private
> structure.  ((and, tricky, making the linkage
> between the three devices visible through the
> driver model, if you can).
Thanks all.  This is looking complex enough that I'll probably
want to actually have the part or leave it to someone who does...

One for your list Michael (I can put suitable element in your
tracker if that is helpful?)

Jonathan

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev

  parent reply	other threads:[~2010-11-26 14:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-25 22:08 Spi slave devices with two chip selects, how best to handle? J.I. Cameron
     [not found] ` <Prayer.1.3.3.1011252208210.17045-rNEEB5iaIwQgWVoWv9+vLtDNj2e20MGE@public.gmane.org>
2010-11-26  4:02   ` Grant Likely
     [not found]     ` <AANLkTi=0tP4phH2=iZf7=R7iqazC2Vru+EB3B2M=sQN2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-26  4:19       ` David Brownell
     [not found]         ` <301691.11173.qm-4JhmkcZgSkkHBU+L9ui1Svu2YVrzzGjVVpNB7YpNyf8@public.gmane.org>
2010-11-26 14:39           ` Jonathan Cameron [this message]
     [not found]             ` <4CEFC686.30603-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
2010-11-29 12:16               ` Hennerich, Michael

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=4CEFC686.30603@cam.ac.uk \
    --to=jic23-kwpb1pkirijaa/9udqfwiw@public.gmane.org \
    --cc=Michael.Hennerich-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org \
    --cc=david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org \
    --cc=device-drivers-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).