public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <me@felipebalbi.com>
To: Felipe Contreras <felipe.contreras@gmail.com>
Cc: me@felipebalbi.com, linux-omap@vger.kernel.org,
	Tony Lindgren <tony@atomide.com>,
	Hiroshi DOYU <hiroshi.doyu@gmail.com>
Subject: Re: mailbox_mach dependency problem
Date: Sun, 2 May 2010 18:59:04 +0300	[thread overview]
Message-ID: <20100502155903.GA2246@gandalf> (raw)
In-Reply-To: <v2k94a0d4531005020557w60b0ca34q3703ddf39d0d82aa@mail.gmail.com>

Hi,

On Sun, May 02, 2010 at 03:57:42PM +0300, Felipe Contreras wrote:
> Indeed, that was my understanding, but the mailbox doesn't seem to be
> designed that way. Apparently the driver has an internal linked list
> of mailboxes, and the platform device registers a bunch of them.
> Effectively they need each other.

you could make it the other way around. For each registered
platform_device you instantiate one mailbox and add it to the list on
the fly, you would probably like to use a list_head for that also
instead of having your own list implementation.

if you do that, you leave the mbox "instantiation" up to the
platform_device code. You would simply register several omap-mbox with a
different id for each mbox you need. Then the name could be sent using a
well-defined platform_data. Just a suggestion.

-- 
balbi

  reply	other threads:[~2010-05-02 15:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-01 14:47 mailbox_mach dependency problem Felipe Contreras
2010-05-01 17:33 ` Felipe Balbi
2010-05-01 23:08   ` Felipe Contreras
2010-05-02  7:13     ` Felipe Balbi
2010-05-02 12:57       ` Felipe Contreras
2010-05-02 15:59         ` Felipe Balbi [this message]
2010-05-03  0:16           ` Felipe Contreras

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=20100502155903.GA2246@gandalf \
    --to=me@felipebalbi.com \
    --cc=felipe.contreras@gmail.com \
    --cc=hiroshi.doyu@gmail.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.com \
    /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