From: Frank Rowand <frowand.list@gmail.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Rob Herring <robh+dt@kernel.org>,
Pantelis Antoniou <pantelis.antoniou@konsulko.com>,
Pantelis Antoniou <panto@antoniou-consulting.com>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 0/2] of: change overlay apply input data from EDT to FDT
Date: Mon, 29 Jan 2018 16:22:50 -0800 [thread overview]
Message-ID: <df065acc-2479-2513-ac3d-63d065d2ffa1@gmail.com> (raw)
In-Reply-To: <CAMuHMdWrhgvLv6syjFxfN42ah7pkO9Ye9SJYDTCwRMQCFrJAeg@mail.gmail.com>
On 01/29/18 06:08, Geert Uytterhoeven wrote:
> Hi Frank,
>
> On Mon, Jan 29, 2018 at 3:53 AM, <frowand.list@gmail.com> wrote:
>> From: Frank Rowand <frank.rowand@sony.com>
>>
>> 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
>
next prev parent reply other threads:[~2018-01-30 0:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-29 2:53 [PATCH 0/2] of: change overlay apply input data from EDT to FDT frowand.list
2018-01-29 2:53 ` [PATCH 1/2] " frowand.list
2018-01-29 3:21 ` Masahiro Yamada
2018-01-29 8:12 ` Frank Rowand
2018-01-29 14:42 ` Rob Herring
2018-01-29 15:05 ` Geert Uytterhoeven
2018-01-30 0:13 ` Frank Rowand
2018-01-30 0:01 ` Frank Rowand
2018-02-05 6:07 ` Rob Herring
2018-01-29 2:53 ` [PATCH 2/2] of: convert unittest overlay devicetree source to sugar syntax frowand.list
2018-01-29 10:37 ` Geert Uytterhoeven
2018-01-30 0:14 ` Frank Rowand
2018-01-29 14:08 ` [PATCH 0/2] of: change overlay apply input data from EDT to FDT Geert Uytterhoeven
2018-01-30 0:22 ` Frank Rowand [this message]
2018-01-30 0:35 ` Frank Rowand
2018-01-30 16:28 ` Alan Tull
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=df065acc-2479-2513-ac3d-63d065d2ffa1@gmail.com \
--to=frowand.list@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pantelis.antoniou@konsulko.com \
--cc=panto@antoniou-consulting.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox