linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* on the topic of of_device resources...
@ 2008-05-05  7:59 David Miller
  2008-05-05  8:26 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2008-05-05  7:59 UTC (permalink / raw)
  To: linuxppc-dev


Since it came to my attention due to the build error fix
I just had to fix, I figured I'd mention some things.

Right now, powerpc and sparc differ in how they resolve
interrupts and resources.

Powerpc uses an on-demand model, whereas Sparc pre-resolves
everything at bootup when parsing the OF tree.

Unfortunately they operate on differing objects too, otherwise I could
provide routines to match the interfaces that powerpc OF drivers want
:-/

Powerpc drivers want device_node objects, whereas sparc roots all
driver usable objects under of_platform_bus using of_device objects
(which point to the device_node if the driver needs that).

Inside of the of_device is where we hang the fully resolved resources
and interrupts.

I'd like to see consolidation in this area, and in return I'll be
compiling all of your PPC_OF devices in my allmodconfig builds on
sparc :-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-05  8:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-05  7:59 on the topic of of_device resources David Miller
2008-05-05  8:26 ` Benjamin Herrenschmidt
2008-05-05  8:44   ` David Miller
2008-05-05  8:55     ` Benjamin Herrenschmidt

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).