From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Subject: Re: [U-Boot] [PATCH v3 1/2] fdt: Add fdtdec_find_aliases() to deal with alias nodes Date: Sun, 22 Jan 2012 21:04:07 -0500 Message-ID: <4F1CC017.1090501@gmail.com> References: <1326824452-14786-1-git-send-email-sjg@chromium.org> <1326824452-14786-2-git-send-email-sjg@chromium.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1326824452-14786-2-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Simon Glass Cc: U-Boot Mailing List , Devicetree Discuss , Tom Warren , Jerry Van Baren List-Id: devicetree@vger.kernel.org On 01/17/2012 01:20 PM, Simon Glass wrote: > Stephen Warren pointed out that we should use nodes whether or not they > have an alias in the /aliases section. The aliases section specifies the > order so far as it can, but is not essential. Operating without alisses Nitpick: aliases > is useful when the enumerated order of nodes does not matter (admittedly > rare in U-Boot). > > This is considerably more complex, and it is important to keep this > complexity out of driver code. This patch creates a function > fdtdec_find_aliases() which returns an ordered list of node offsets > for a particular compatible ID, taking account of alias nodes. > > Signed-off-by: Simon Glass Acked-by: Gerald Van Baren Thanks, gvb