Received: by 10.223.176.5 with SMTP id f5csp3631776wra; Mon, 29 Jan 2018 16:36:16 -0800 (PST) X-Google-Smtp-Source: AH8x2253/3AkeFsa58K8vFb0gXHr5OK1xnCtJw19+Uk6sre3WqKv640TAzbGCk+0DPFm8ohGFWsd X-Received: by 2002:a17:902:bd09:: with SMTP id p9-v6mr14709323pls.236.1517272576226; Mon, 29 Jan 2018 16:36:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517272576; cv=none; d=google.com; s=arc-20160816; b=HUa2vQ/PzwlJ4vTrQ6CWmGMNnqKbji9siaOiYE0a31wyIZ5BVgD175ABcvhEqwPJNq ixEh9lTj8tkqP744vwZgk0XXH7hgfGzRHFzENhYjR4CUbbC1QzbUfvV17FtlvVovWV7t KhkuRulEP/OURPBCUQsRD+llY+9mR1UDCH6XQLbmQkHuSiNjew44dOEw6hMsJh9iP6Oz eEJvidEemw+L0rp+Jgb8gc4luLltR+8jVyXJWb6RiNJUMMB0/6u6B67hQUsZaASTst76 xVG27urPIMHpeQIgeBHoXgtXvUQg43iXMX7GV21zwSR2sRtEYf8iKVaii3lGMpMeTegX saaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=8sbu6RNIMIKP7PAI/AJH+d6gvLtnbuMaPCxzlf3JAtg=; b=FMAUJh7H8akXXqKsTAtPjXtsLiDLxqTH9Qp9i/7r5pB1uFJ5GPMvAJq0tBHqJgS3Cp ZGBhR/deiCmrUMFFb4L7uxc37R8QoUTA9iAG0egrxl8cZerzavxGXl/gV+xRHZPiQ2ZG PjRlnPAubkCUIJ95rbSSBQyYaImXmN4rvXCCtrrqzUgqIYepBpP+cPf9p1uw42Hl1m6r 43KQJsvHP3p/JpFQg/svw17Fz9t4pUVyr6QOxZ4rOBQJTaq7QeLU1ny/7E1fjRakJx4A fpEk/jJ/3jDMvxaFQA4CPhRCOkGeINyCZKVCum03VEuanjo2/OvIhek8gLX5+k0c/Vgy Qg7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AeWWQBGx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a138si624681pfd.161.2018.01.29.16.36.01; Mon, 29 Jan 2018 16:36:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AeWWQBGx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752191AbeA3Afg (ORCPT + 99 others); Mon, 29 Jan 2018 19:35:36 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:38598 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751448AbeA3Afe (ORCPT ); Mon, 29 Jan 2018 19:35:34 -0500 Received: by mail-pf0-f193.google.com with SMTP id k19so7013910pfj.5; Mon, 29 Jan 2018 16:35:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=8sbu6RNIMIKP7PAI/AJH+d6gvLtnbuMaPCxzlf3JAtg=; b=AeWWQBGxceMMHZvpsiuMyZxR57NlZAUpYz7s4SwmfxGqRkhT5DNv2A8h6Pp6eF3ww4 ZxR8Z8msBhnLa/WMKELbevTe8d8gBhlLysQZl0C3cT2wVRVmRpPvLDd+HFVSRzfw6DU0 O8oMEi3BAXPy48PUdt21+sJjH8dBi6E7Wb7JZw78jBcMzYGAjrev3ZJqloipgciGzCO+ sXy3GqrXIr6xSsgjShgB3c3KJ06svuKYq5zAw6ljO3/Rn47yHYGN80MOXfOi5NonNTLj HyKfwDVOhoIq2Hep7+pXfpdzl/6qdiwBNlbph52+y+x3/h0X2cYvSbNjPmT2QhZ2sJxr 4RZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8sbu6RNIMIKP7PAI/AJH+d6gvLtnbuMaPCxzlf3JAtg=; b=M+/PAwdWBC5lkUh63+wgMUeyCNrgwtxhmrhO7Y/LPUKkZpW9ScBV8Q7T+uytC8ISeB WLDxCw64gV7+xux/FzhMzJ8F9NF5/scRQ6XP6/t4IGw6wxgiXOmQnvNIgidafcsKhQym ckUa8LpDdljsYL62yGvmd0CUh2OZfNF6QUS05dZC/5c71DvcxzLjFjSQu7qhDVYVm5VX Vbgnzd1IMBFqDp4D04kAZxnRHQllawU5hcGg9hSZVDsV8DIUqNcFsOKTO5HByL+44qCx NMqABaTZDpH+izojqgCuAvTnYlrjKDFwNxXHjU+8yuS88PgHxTuCQQfv9JGd4gzPK4Js GqTg== X-Gm-Message-State: AKwxytdoCwiWwspxWNWW+BzhBdiJUNh1Gx2kMpOTO2bWO2isWMTVW9FC a6JS+6zxEUJXzSu0223YPXo= X-Received: by 10.99.120.203 with SMTP id t194mr22528499pgc.39.1517272533532; Mon, 29 Jan 2018 16:35:33 -0800 (PST) Received: from [192.168.1.70] (c-73-93-215-6.hsd1.ca.comcast.net. [73.93.215.6]) by smtp.gmail.com with ESMTPSA id o1sm32934425pfa.101.2018.01.29.16.35.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jan 2018 16:35:32 -0800 (PST) Subject: Re: [PATCH 0/2] of: change overlay apply input data from EDT to FDT From: Frank Rowand To: Geert Uytterhoeven , Alan Tull Cc: Rob Herring , Pantelis Antoniou , Pantelis Antoniou , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List References: <1517194414-19932-1-git-send-email-frowand.list@gmail.com> Message-ID: Date: Mon, 29 Jan 2018 16:35:31 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alan, In this patch series one of the changes was to change some devicetree unittest overlay source to use the new sugar syntax to specify overlay nodes instead of hand coding the fragment nodes. One reviewer reminded me to update Documentation/ files that show the hand coding of overlay fragment nodes. One of those files is Documentation/devicetree/bindings/fpga/fpga-region.txt. I plan to submit a patch to update the example devicetree source to use the sugar syntax. There is one place where I can not make that change, which is the "Overlay DTS Format" section. In this section, the use of 'target-path="/path" is shown as one of two ways to specify the target of the fragment. The sugar syntax creates a fragment using the 'target=' form instead of 'target-path="/path"' form. With sugar syntax, there is no way to specify target-path. Is the target-path form needed by the fpga subsystem, or can this be removed? -Frank On 01/29/18 16:22, Frank Rowand wrote: > On 01/29/18 06:08, Geert Uytterhoeven wrote: >> Hi Frank, >> >> On Mon, Jan 29, 2018 at 3:53 AM, wrote: >>> From: Frank Rowand >>> >>> Move duplicating and unflattening of an overlay flattened devicetree >>> (FDT) into the overlay application code. To accomplish this, >>> of_overlay_apply() is replaced by of_overlay_fdt_apply(). >>> >>> The copy of the FDT (aka "duplicate FDT") now belongs to devicetree >>> code, which is thus responsible for freeing the duplicate FDT. The >>> caller of of_overlay_fdt_apply() remains responsible for freeing the >>> original FDT. >>> >>> The unflattened device tree (aka expanded device tree, EDT) now >>> belongs to devicetree code, which is thus responsible for freeing >>> the EDT. >>> >>> These ownership changes prevent early freeing of the duplicated FDT >>> or the EDT, which could result in use after free errors. >>> >>> These changes led to migrating some unittest overlay data into >>> their own devicetree source files, and then converting most of >>> them to use sugar syntax instead of hand coding fragments. >> >> Thanks for your series! >> >>> Frank Rowand (2): >>> of: change overlay apply input data from EDT to FDT >>> of: convert unittest overlay devicetree source to sugar syntax >> >> Do you plan to update Documentation/devicetree/overlay-notes.txt >> and Documentation/devicetree/bindings/fpga/fpga-region.txt, too? > > Thanks for the pointers. > > I will add updates to Documentation/devicetree/overlay-notes.txt in > this series. > > The changes to Documentation/devicetree/bindings/fpga/fpga-region.txt > are related to the relatively new sugar syntax in dtc, not to the > changes introduced by this patch series. I'll create a patch outside > this series to update this documentation. > > >> Gr{oetje,eeting}s, >> >> Geert >> >> -- >> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org >> >> In personal conversations with technical people, I call myself a hacker. But >> when I'm talking to journalists I just say "programmer" or something like that. >> -- Linus Torvalds >> > >