From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.247]) by ozlabs.org (Postfix) with ESMTP id BD196DE5EB for ; Wed, 6 Aug 2008 23:31:57 +1000 (EST) Received: by hs-out-0708.google.com with SMTP id z77so241626hsz.9 for ; Wed, 06 Aug 2008 06:31:55 -0700 (PDT) Message-ID: Date: Wed, 6 Aug 2008 07:31:55 -0600 From: "Grant Likely" Sender: glikely@secretlab.ca To: "Paul Mackerras" Subject: Re: [RFC/PATCH 2/3] of: add of_lookup_stdout() utility function In-Reply-To: <18585.31504.836857.829592@cargo.ozlabs.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <20080806055214.30717.86092.stgit@trillian.secretlab.ca> <20080806060239.30717.79273.stgit@trillian.secretlab.ca> <20080805.233205.201125898.davem@davemloft.net> <18585.31504.836857.829592@cargo.ozlabs.ibm.com> Cc: devicetree-discuss@ozlabs.org, miltonm@bga.com, linuxppc-dev@ozlabs.org, David Miller List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Aug 6, 2008 at 4:21 AM, Paul Mackerras wrote: > David Miller writes: > >> On sparc platforms this is obtained differently. We obtain the 32-bit >> instance value of "/chosen/stdout" and convert that into a prom device >> node path using "instance-to-path". > > That's actually exactly what we do too, the linux,stdout-path property > is just a cache of the result of that process. The difference is that > we have to do it early on while we still have OF around, while you can > do it later. It's not what we do with flattened device trees blobs though. In the flattened tree we're not using a /chosen/stdout property, just the linux,stdout-path one. The question that remains is; should there be? Should the dt blobs use /chosen/stdout also? (I'm not familiar enough with real OF to know the answer. I'm assuming that an instance value is not the same as a phandle). g. > > Paul. > -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.