Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752508Ab2KLNBt (ORCPT ); Mon, 12 Nov 2012 08:01:49 -0500 Received: from mail-da0-f46.google.com ([209.85.210.46]:34096 "EHLO mail-da0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751467Ab2KLNBr (ORCPT ); Mon, 12 Nov 2012 08:01:47 -0500 MIME-Version: 1.0 In-Reply-To: References: <02FF5400-9F97-4B8A-AEF0-267B01C8099F@antoniou-consulting.com> <5ED17D42-07B8-4D4F-B54F-82B4CC60584C@antoniou-consulting.com> <509A3595.7050600@ti.com> From: Grant Likely Date: Mon, 12 Nov 2012 13:01:27 +0000 X-Google-Sender-Auth: jwZD6yCAW9I66Ra1qD_ft3vTNtc Message-ID: Subject: Re: [RFC] Device Tree Overlays Proposal (Was Re: capebus moving omap_devices to mach-omap2) To: Pantelis Antoniou Cc: Benoit Cousson , Rob Herring , Deepak Saxena , Benjamin Herrenschmidt , Scott Wood , Tony Lindgren , Russ Dill , Felipe Balbi , linux-kernel , Koen Kooi , Matt Porter , linux-omap@vger.kernel.org, Kevin Hilman , Paul Walmsley , devicetree-discuss@lists.ozlabs.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1722 Lines: 40 On Mon, Nov 12, 2012 at 11:34 AM, Pantelis Antoniou wrote: > Hi Grant, > > On Nov 9, 2012, at 10:33 PM, Grant Likely wrote: > >> On Wed, Nov 7, 2012 at 11:02 AM, Pantelis Antoniou >> wrote: >>> On Nov 7, 2012, at 11:19 AM, Benoit Cousson wrote: >>>> Maybe some extra version match table can just be passed during the board machine_init >>>> >>>> of_platform_populate(NULL, omap_dt_match_table, NULL, NULL, panda_version_match_table); >>>> >>> >>> Would we need explicit of_platform_populate calls if we have node modification notifiers? >>> In that case the notifier would pick it up automatically, and can do the per >>> version matching internally. >> >> There still needs to be something to register "everything below this >> node is interesting" which is exactly what of_platform_populate() does >> now. I see the notifiers being used by the of_platform_populate >> backend to know when nodes have been created (or destroyed). >> >> g. > > I see. So of_platform_populate could just register the notifier and > not do the tree walk itself. Perhaps the name is a bit misleading then? Kind of, yes. of_platform_populate() would still have the same effect that it does now except that it would also pay attention to additions and removals from the DT nodes it is interested in. This would work cleanly enough for node additions/removals, but it wouldn't process changes to properties on existing nodes. g. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/