From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jon Smirl" Subject: Re: Board level compatibility matching Date: Thu, 31 Jul 2008 23:06:20 -0400 Message-ID: <9e4733910807312006l8e83d27qe1b5ca5f50b89e39@mail.gmail.com> References: <9e4733910807311349l5770a17ib2ab2535bcd2868a@mail.gmail.com> <20080731205251.GB29834@secretlab.ca> <9e4733910807311358k54b5c088l1023d354fd0ad28e@mail.gmail.com> <20080801024729.GA5008@yookeroo.seuss> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080801024729.GA5008-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org To: David Gibson , Grant Likely , devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org, Benjamin Herrenschmidt , linu List-Id: devicetree@vger.kernel.org On 7/31/08, David Gibson wrote: > On Thu, Jul 31, 2008 at 04:58:34PM -0400, Jon Smirl wrote: > > On 7/31/08, Grant Likely wrote: > > > On Thu, Jul 31, 2008 at 04:49:49PM -0400, Jon Smirl wrote: > > > > On 7/31/08, Grant Likely wrote: > > > > > This topic keeps coming up, so it is probably time to address it once > > > > > and for all. > > > > > > > > > > When it comes to machine level support in arch/powerpc, there seems to > > > > > me that there are two levels or machine support. > > > > > > > > > ...... > > > > > > > > > > Thoughts? > > > > > g. > > > > > > > > > > > > As part of this, how can we going to solve the problem with triggering > > > > the load of a board specific machine/fabric driver in a generic way? > > > > > > > > > That really is a separate problem. We *could* do this with a board > > > specific powerpc machine driver, but I don't think it is the best > > > solution. > > > > > > I'm still thinking that the drivers module_init() function could check > > > the top level board model property and decide whether or not to load > > > based on that. > > > > You're assuming the driver is compiled in. > > > > If the drivers are on initrd selection has to happen via the normal > > device/driver matching process. Search for a device in the alias table > > of the drive file. > > > This can still be done via the board platform code. The platform code > creates a platform device which the driver can later bind to. That is what I'm doing now. But it requires every board to add a file to arch/powerpc/platforms. Can we have some common code to make the fabric device? Can it be an OF device instead of a platform one? An OF device could be compatible with boardname-fabric, generic-fabric. That allows a stub fabric driver to always bind. > > > > -- > David Gibson | I'll have my music baroque, and my code > david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ > | _way_ _around_! > http://www.ozlabs.org/~dgibson > -- Jon Smirl jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org