From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756360AbcBXOyQ (ORCPT ); Wed, 24 Feb 2016 09:54:16 -0500 Received: from mail.kernel.org ([198.145.29.136]:41171 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753475AbcBXOyO convert rfc822-to-8bit (ORCPT ); Wed, 24 Feb 2016 09:54:14 -0500 MIME-Version: 1.0 In-Reply-To: <56CC3ED9.5000101@huawei.com> References: <1454641552-12576-1-git-send-email-zhaoshenglong@huawei.com> <1454641552-12576-17-git-send-email-zhaoshenglong@huawei.com> <56CC3ED9.5000101@huawei.com> From: Rob Herring Date: Wed, 24 Feb 2016 08:53:46 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 16/17] FDT: Add a helper to get specified name subnode To: Shannon Zhao Cc: "linux-arm-kernel@lists.infradead.org" , Ard Biesheuvel , Stefano Stabellini , david.vrabel@citrix.com, Catalin Marinas , Will Deacon , Mark Rutland , julien.grall@citrix.com, "xen-devel@lists.xen.org" , "devicetree@vger.kernel.org" , "linux-efi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Ian Campbell , Shannon Zhao , peter.huangpeng@huawei.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 23, 2016 at 5:13 AM, Shannon Zhao wrote: > > > On 2016/2/9 13:04, Rob Herring wrote: >> On Thu, Feb 4, 2016 at 9:05 PM, Shannon Zhao wrote: >>> From: Shannon Zhao >>> >>> Sometimes it needs to check if there is a node in FDT by full path. >> >> I'm confused. Are you searching by full path or... >> >>> Introduce this helper to get the specified name subnode if it exists. >> >> name of sub node? >> > get the offset of sub node by specified name. > >> Either way, fdt_subnode_offset or fdt_path_offset doesn't work? >> > Ah,right,both of them should work. Does it need to add a wrapper in > drivers/of/fdt.c for them or directly use them with the parameter > initial_boot_params? Add a wrapper in fdt.c. Rob