From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752500AbdLEBPT (ORCPT ); Mon, 4 Dec 2017 20:15:19 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35361 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751546AbdLEBPI (ORCPT ); Mon, 4 Dec 2017 20:15:08 -0500 X-Google-Smtp-Source: AGs4zMbZWo4e2AItnDkQKEeYAdMUgSHI7WZnf6wBBCQjEZ/eX3Ea4+DVG/RnHpS7jMZieTAlhY5e6g== Subject: Re: [PATCH 0/2] of: dynamic: restrict overlay by targets To: Alan Tull , Moritz Fischer , Rob Herring , Pantelis Antoniou Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org References: <20171204191357.3211-1-atull@kernel.org> From: Frank Rowand Message-ID: Date: Mon, 4 Dec 2017 20:14:52 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171204191357.3211-1-atull@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alan, In the RFC thread "of: Add whitelist", I did not understand the use case and asked you some questions (30 Nov 2017 07:46:36 -0500), that you seem to have overlooked (or my mail server failed to deliver your answer to me). Can you please answer that question so I can better understand this patch set is needed for. Thanks, Frank On 12/04/17 14:13, Alan Tull wrote: > Restrict which nodes are valid targets for a DT overlay. > > Add a flag bit to struct device_node allowing nodes to be marked as > valid target for overlays. > > A driver that is always intended to handle DT overlays can > enable overlays by calling a function for its DT node. > > For individual nodes that need to be opened up for a specific use, > adding the property "overlay-allowed" enables overlays targeting > that node. I'll need to document the DT property, not sure where > specifically. New file bindings/overlay.txt? > > This patchset differs from the RFC: > * Added a flag bit and got rid of the whitelist > * Renamed the functions that enable a node > * Added a DT property > > Alan Tull (2): > of: overlay: add flag enabling overlays and enable fpga-region > overlays > of: dynamic: add overlay-allowed DT property > > drivers/fpga/of-fpga-region.c | 4 ++++ > drivers/of/base.c | 4 ++-- > drivers/of/dynamic.c | 3 +++ > drivers/of/fdt.c | 3 +++ > drivers/of/of_private.h | 2 ++ > drivers/of/overlay.c | 26 ++++++++++++++++++++++++++ > include/linux/of.h | 19 +++++++++++++++++++ > 7 files changed, 59 insertions(+), 2 deletions(-) >