From: Jan Kiszka Subject: Re: [PATCH v7 2/5] of: change overlay apply input data from unflattened to FDT Date: Wed, 25 Apr 2018 07:38:02 +0200 Message-ID: References: <1520122673-11003-1-git-send-email-frowand.list@gmail.com> <1520122673-11003-3-git-send-email-frowand.list@gmail.com> <09e3db63-cbf9-52a2-ee77-520979f17fea@web.de> <7bbf615b-3cdd-6bb4-6918-33e48de4225d@gmail.com> <7bbb9472-9c96-6012-68e6-4ec2773c7732@gmail.com> <4422f58a-ca7c-16e6-e0df-63faea50f553@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Sender: jailhouse-dev@googlegroups.com In-Reply-To: Content-Language: en-US List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Alan Tull Cc: Frank Rowand , Rob Herring , Pantelis Antoniou , Pantelis Antoniou , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , Geert Uytterhoeven , Laurent Pinchart , Jailhouse List-Id: devicetree@vger.kernel.org On 2018-04-24 20:26, Alan Tull wrote: > On Tue, Apr 24, 2018 at 11:08 AM, Alan Tull wrote: >> On Tue, Apr 24, 2018 at 12:29 AM, Jan Kiszka wrote: >>> >>> We have drivers/fpga/of-fpga-region.c in-tree, and that does not seem to >>> store any pointers to objects, rather consumes them in-place. And I >>> would consider it fair to impose such a limitation on the notifier >>> interface. >> >> The FPGA code was written assuming that overlays could be removed. > > To be more specific, drivers/fpga/of-fpga-region.c currently saves a > pointer to the overlay and uses it only during the pre-apply > notification. Even more exactly: You are saving a reference during pre-apply and freeing that one again on the corresponding post-remove. That is what I would have expected as normal usage of the notification API as well. Jan