Received: by 10.223.176.5 with SMTP id f5csp3621600wra; Mon, 29 Jan 2018 16:24:00 -0800 (PST) X-Google-Smtp-Source: AH8x226Yha7OSyl8y1ixjzZjwvc4uiurQCGJZN5lrVOhm8BY0pxBDtb0KEvYUyY4sCNf5j1lgRTx X-Received: by 2002:a17:902:42c3:: with SMTP id h61-v6mr23384511pld.269.1517271840468; Mon, 29 Jan 2018 16:24:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517271840; cv=none; d=google.com; s=arc-20160816; b=jFe4l+Tba0fzajK+7DsWZq6oJeEqxI0Lp3o/qFoWzEhwK8q7lO0311zxCfdXZucxUp afM/QZqWauNS3AHNsh3igk96WSjzRKWTFSHoZq97a9P9MniRiHGyMAX/xrB6wNdbpXPX lNCoNtLyJAB81wgZF0gvSfttkkQvrax5aRivZ0Y6iS2K98QMoE5W3toiEfjpqf7+pTfc fV82mLvBOzFm5y+n/JA1yQouJRHi9Lh39Tu4hHkjJ/b46Lf6rRTaPicf/xZGAgRXLLuY oAMgO84Sco9r6zYD+AIOXDsuO/rESDiGp4AzvYWsZ+ZKhGCNKoLw7h7wzwqTI4iILRB2 jDLg== 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:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=tNcj0e84bau7fWhPAeU3suA6tmVvF6ZAigXqt6VxoBc=; b=KEgcAAZg1b6AAiPkeVzeBzVl7mw1wqAnN6AHGMsHAqH6d5btnuqe2iKDcpwm5Y7Qic xLF7jnBJF7YF+enWfMKFgpTI2yPH+K+num+jUUu0TUBstabfDTsKbJQaN56kwipDkmJK zVshvN2yOCH+HfNF1uTRZbW2GP8Lha12g5dXuinPL0hJANjlGzSJATotmNoAaEOS9SNS eSQxC99v5PSmRMF1fBeOjn2yZA912X5fEPJPGE9CPrbZF/WmS2Y1lzX9Fjfd6f2dx9gn M9fUNMInJ2/8afsrAWGFBFkjKrHDY9lJDbam4t4qGaynvn2rGn/JL/FjGF498vFVN2HY wuOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bMBmzYLx; 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 g11si255049pfd.1.2018.01.29.16.23.45; Mon, 29 Jan 2018 16:24:00 -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=bMBmzYLx; 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 S1752221AbeA3AW5 (ORCPT + 99 others); Mon, 29 Jan 2018 19:22:57 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:37106 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752156AbeA3AWz (ORCPT ); Mon, 29 Jan 2018 19:22:55 -0500 Received: by mail-pf0-f194.google.com with SMTP id p1so6996286pfh.4; Mon, 29 Jan 2018 16:22:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=tNcj0e84bau7fWhPAeU3suA6tmVvF6ZAigXqt6VxoBc=; b=bMBmzYLxl8nsjD/KpynkkuTKP4SR9SrmLfXi0kerFogN7B4byLUyVJuIBKOp2xRrPd qS0bOaEQHPlJP0fu5j2Nv6pFIb6oasxeVu5pjgKQKmqcJCBbAsxc7/myTwLTjVXOfNRr Yjb08x7SiYQQ3OYhhv/Gv+8DAt/Y7P3E/fsq9SWc2tclM/Tb1BXZHzpz0snt7pyi0ByN glFl7P4BohBXyFXoxe2gCVzpllxuF6AOKslEll9HKlS0IdsKj2yj7W78my3PCovnZROk OAlq+JMPuhv41UEFqszKIhWKJQE/RpnMwfZQGlXF0Nj99wVz38iXJBggqphR2vu1zVl+ cQxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=tNcj0e84bau7fWhPAeU3suA6tmVvF6ZAigXqt6VxoBc=; b=OHrsau8YgLb2vz5tp/hyH///yevCG46mlHczPGPBLyQWBaE7HC/O8sXxaTB+VtKC1N aIev5a2Z3pu9gqgs2WhFnUEry4kzr8vHUgDVgH5GtLGatJGI7ukfa/uQk/WYnjHeFnQ3 Uix2LOlMjd/fqFVKZ7XxIa4MoxCETRxrn1szg1uO1LtEnCfMfd/2Q3FdDTQiOTZXos51 rWhRFlZkY/WaCLApGaGNAIQyOYPDqnMUdprPMLXuyzLRX3CAnoiYzQZrI3Wbhp+ctlLR RLFM8hsL5JqW16BeamnwR3tNdpxAUM+0c4Tf77RCH+ApI/E8YYFjuSd5nGtG96bTZFTS gqXg== X-Gm-Message-State: AKwxytdNc9vb+yyzYTYkQwurdThleaGaM/IzNBaCreYoKkz3rwHKFgX0 VYssXv7mFj2wWYXyQow123I= X-Received: by 10.99.137.195 with SMTP id v186mr22893020pgd.25.1517271774850; Mon, 29 Jan 2018 16:22:54 -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 p14sm32417790pff.108.2018.01.29.16.22.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jan 2018 16:22:54 -0800 (PST) Subject: Re: [PATCH 0/2] of: change overlay apply input data from EDT to FDT To: Geert Uytterhoeven 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> From: Frank Rowand Message-ID: Date: Mon, 29 Jan 2018 16:22:50 -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 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 >