linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Feng Tang <feng.tang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Cc: David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>,
	"spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org"
	<spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>,
	Anatolij Gustschin <agust-ynQEQJNshbs@public.gmane.org>,
	"alan-VuQAYsv1563Yd54FQh9/CA@public.gmane.org"
	<alan-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Subject: Re: [PATCH] spi/mpc5121: register spi child devices of spi node
Date: Tue, 27 Jul 2010 15:27:12 +0800	[thread overview]
Message-ID: <20100727152712.20a9b35d@feng-i7> (raw)
In-Reply-To: <AANLkTikZ4MMqmM3jn8yh49kh5+qOh2nmaYDVBOYhbo-K-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Tue, 27 Jul 2010 15:00:29 +0800
Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org> wrote:

> On Tue, Jul 27, 2010 at 1:14 AM, Feng Tang <feng.tang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> wrote:
> > On Tue, 27 Jul 2010 14:28:57 +0800
> > David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org> wrote:
> >
> >> There are things wrong with the concept of this
> >> particular patch.  First, that it's mpc5121-only.
> >> Second, that it's not already handled as part of
> >> registering the platform's SPI devices.
> >>
> >>
> >
> > Hi David, Grant,
> >
> > This actually brings up another topic: currently
> > spi_register_board_info() has to be called before spi
> > controller(master) get inited. But in some case, to solve some
> > device dependency issue, some spi slave device need be delayed
> > registering, can we adjust it to make register_board_info() be
> > callable after spi controller is inited? Which makes spi bus like
> > general pci/usb bus, where devices/drivers have no registering
> > order limit.
> 
> Is spi_alloc_device()/spi_add_device() not suitable for your use-case?
> 
> g.

Yes, I've thought about that, but spi_alloc_device() is called when you
know which spi_master it is connecting to, while our platform need kind
of blind registering (just register something to spi-bus).

Thanks,
Feng

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/

  parent reply	other threads:[~2010-07-27  7:27 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-26 22:59 [PATCH] spi/mpc5121: register spi child devices of spi node Anatolij Gustschin
     [not found] ` <1280185178-5002-1-git-send-email-agust-ynQEQJNshbs@public.gmane.org>
2010-07-27  6:17   ` Baruch Siach
     [not found]     ` <20100727061744.GB22765-X57xyCW21FZ5l4KbKkTfamZHpeb/A1Y/@public.gmane.org>
2010-07-27  6:21       ` Grant Likely
2010-07-27  6:28       ` David Brownell
     [not found]         ` <298403.16600.qm-g47maUHHHF9+W+z1sZEpBPu2YVrzzGjVVpNB7YpNyf8@public.gmane.org>
2010-07-27  6:37           ` Grant Likely
     [not found]             ` <AANLkTik9GYDGi3jnMdPdyOa6sFv4bo_+4b-RWMq7nW6x-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-27  6:47               ` David Brownell
2010-07-27 13:39               ` [PATCH] of/spi: call of_register_spi_devices() from spi core code Anatolij Gustschin
     [not found]                 ` <1280237967-2460-1-git-send-email-agust-ynQEQJNshbs@public.gmane.org>
2010-07-27 17:40                   ` Grant Likely
     [not found]                     ` <AANLkTimG+QLksWVbQ63F=Bc1h-9946J1RO0qSavBAegO-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-27 20:35                       ` [PATCH v2] " Anatolij Gustschin
2010-07-27  7:14           ` [PATCH] spi/mpc5121: register spi child devices of spi node Feng Tang
2010-07-27  7:00             ` Grant Likely
     [not found]               ` <AANLkTikZ4MMqmM3jn8yh49kh5+qOh2nmaYDVBOYhbo-K-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-27  7:27                 ` Feng Tang [this message]
2010-07-27  7:18                   ` David Brownell
2010-07-27  7:07             ` David Brownell
     [not found]               ` <793633.1143.qm-4JhmkcZgSkk/JfqJOfUXs/u2YVrzzGjVVpNB7YpNyf8@public.gmane.org>
2010-07-27  7:33                 ` Feng Tang
2010-07-27  7:27                   ` David Brownell
     [not found]                     ` <200077.42951.qm-g47maUHHHF8P4eY3Ra60wvu2YVrzzGjVVpNB7YpNyf8@public.gmane.org>
2010-07-27  7:52                       ` Feng Tang
2010-07-27  7:44                         ` David Brownell
     [not found]                           ` <395617.66036.qm-g47maUHHHF/6X00i2u5GFvu2YVrzzGjVVpNB7YpNyf8@public.gmane.org>
2010-07-27  8:07                             ` Feng Tang

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=20100727152712.20a9b35d@feng-i7 \
    --to=feng.tang-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=agust-ynQEQJNshbs@public.gmane.org \
    --cc=alan-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
    --cc=david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org \
    --cc=grant.likely-s3s/WqlpOiPyB63q8FvJNQ@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).