From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from de01egw02.freescale.net (de01egw02.freescale.net [192.88.165.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "de01egw02.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 7A9E3DE76A for ; Tue, 15 Jul 2008 04:53:45 +1000 (EST) Message-ID: <487BA0AF.10803@freescale.com> Date: Mon, 14 Jul 2008 13:53:35 -0500 From: Timur Tabi MIME-Version: 1.0 To: Timur Tabi , Grant Likely , Jon Smirl , linuxppc-dev@ozlabs.org, alsa-devel@alsa-project.org, liam.girdwood@wolfsonmicro.com Subject: Re: [alsa-devel] [PATCH v2 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers References: <20080712083929.15025.47682.stgit@trillian.secretlab.ca> <20080714134930.GC25448@sirena.org.uk> <9e4733910807140713r5739efedw81e65632006d101d@mail.gmail.com> <20080714150527.GD25448@sirena.org.uk> <487B7B71.9060606@freescale.com> <20080714165302.GG25448@sirena.org.uk> <20080714183632.GI25448@sirena.org.uk> <487B9D98.8010008@freescale.com> <20080714184929.GJ25448@sirena.org.uk> In-Reply-To: <20080714184929.GJ25448@sirena.org.uk> Content-Type: text/plain; charset=ISO-8859-1 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mark Brown wrote: >> The only problem with this is that the OF probing code in the kernel binds >> drivers to device tree nodes. So when a driver claims a node, no other driver >> will be probed with it. > >> So we can't have generic nodes that classify the motherboard and just let >> everyone get probed on it. > > My suggestion is that you change this for the root node. That's an interesting idea. > It's already > got the information required in there, it's just there's no way to use > it to load modules at the minute. Correct. > You could presumably read the > information out of the device tree using existing APIs to check you're > running on the right board once code is loaded? Yes. The driver <-> node binding is only for probing. Any driver can scan the entire tree at any time. -- Timur Tabi Linux kernel developer at Freescale