From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from de01egw01.freescale.net (de01egw01.freescale.net [192.88.165.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "de01egw01.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 40D96DDF1E for ; Thu, 19 Jul 2007 02:47:54 +1000 (EST) Message-ID: <469E4432.5050900@freescale.com> Date: Wed, 18 Jul 2007 11:47:46 -0500 From: Scott Wood MIME-Version: 1.0 To: Segher Boessenkool Subject: Re: [RFC][PATCH 6/8] Walnut DTS References: <1184161957.32199.52.camel@weaponx.rchland.ibm.com> <1184162389.32199.65.camel@weaponx.rchland.ibm.com> <4EAC985A-2F04-465D-AB69-C67807310D7B@kernel.crashing.org> <9696D7A991D0824DBA8DFAC74A9C5FA3030669AF@az33exm25.fsl.freescale.net> <28A3F6B9-512B-4D86-8E0D-A7680CCE2354@kernel.crashing.org> <1184622446.25235.89.camel@localhost.localdomain> <1184707558.25235.159.camel@localhost.localdomain> <20070717222507.GA4682@ld0162-tx32.am.freescale.net> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Cc: Yoder Stuart-B08248 , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Segher Boessenkool wrote: > Yes indeed. The problem with your suggested "obvious way" I said it was obvious, not obviously correct. :-) > is that you wouldn't get a unit address included if your > interrupt-map points (for some entry) at your device tree > parent, either. Not all that hypothetical. Ah, good point. My inclination would be to, rather than check how we got to the node, check whether it's the device's parent. If not, then the presence of #address-cells (other than zero for compatibility) is an error. Otherwise, #address-cells is used, and defaults are handled the same as with reg/ranges translation. -Scott