Subject: Re: How to get the firmware node into the device properties early?
To: Quentin Garnier <cube@cubidou.net>
From: Jachym Holecek <freza@dspfpga.com>
List: tech-kern
Date: 09/13/2006 14:13:05
# Quentin Garnier 2006-09-13:
> On Wed, Sep 13, 2006 at 01:21:01PM +0200, Jachym Holecek wrote:
> > # Martin Husemann 2006-09-12:
> > > I am looking for an easy way to retrieve the OpenFirmware node (phandle)
> > > of a struct device * I get passed in device_register(). Is there any magic
> > > way to store them in the device properties early?
> > 
> > Not that I'm aware of (besides something like you posted).
> > 
> > Maybe early MD code should be allowed to precreate device_t nodes
> > and let autoconfiguration proccess use them instead of creating
> > fresh ones. But this is kind of forward-thought, there's quite a
> > couple of things in our autoconf machinery that need to change
> > "device_t == ${foo}softc" being the most evil.
> 
> Ahem.  Not evil.  Intrusive, perhaps, but definitely not evil.

OK, my wording was too strong. I really meant "not nice" to the point
that it makes other good things harder/uglier than they should be.

	-- Jachym