From: Sylvain Munaut <tnt@246tNt.com>
To: John Rigby <jcrigby@gmail.com>
Cc: linuxppc <linuxppc-dev@ozlabs.org>
Subject: Re: publishing OF platform devices
Date: Thu, 29 Mar 2007 23:26:39 +0200 [thread overview]
Message-ID: <460C2F0F.3050808@246tNt.com> (raw)
In-Reply-To: <4b73d43f0703291420v620b871fp97cb34941b1e7a85@mail.gmail.com>
John Rigby wrote:
> I have a question about the "right" way to publish platform
> devices via of_platform_bus_probe.
>
> On 5200 platforms it gets called from
> mpc52xx_declare_of_platform_devices which is registered as the
> machdep_calls init routine.
>
It's called by machdep calls so that it's only called if the platform is
detected ...
> On other platforms it is called via a device_initcall
>
That will always be called which is bad.
Because if you have a kernel will multiple platform support built in, it
will
be called everytime, even if it's not running on the good platform.
> Also I noticed that some 83xx platforms don't call
> of_platform_bus_probe at all. Thats ok because most of those devices
> are register various routines in fsl_soc.c. The one I have not
> figured out yet is spi, I don't see anyone registering mpc83xx_spi?
>
On theses I have no idea ...
Sylvain
next prev parent reply other threads:[~2007-03-29 21:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-29 21:20 publishing OF platform devices John Rigby
2007-03-29 21:26 ` Sylvain Munaut [this message]
2007-03-29 21:56 ` Kim Phillips
2007-03-29 21:57 ` Arnd Bergmann
2007-03-29 22:07 ` Benjamin Herrenschmidt
2007-03-29 22:18 ` Arnd Bergmann
2007-03-29 22:25 ` Benjamin Herrenschmidt
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=460C2F0F.3050808@246tNt.com \
--to=tnt@246tnt.com \
--cc=jcrigby@gmail.com \
--cc=linuxppc-dev@ozlabs.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.