Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2002481ybf; Sun, 1 Mar 2020 23:39:00 -0800 (PST) X-Google-Smtp-Source: APXvYqzdLMKapyRttB+MsnYhW8HGXjLtCDMN97OZo0rLjaDN4DFHrFz9+3A+++n/6Z61Ldf6E19W X-Received: by 2002:a54:4816:: with SMTP id j22mr10572748oij.179.1583134740448; Sun, 01 Mar 2020 23:39:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583134740; cv=none; d=google.com; s=arc-20160816; b=sBAnyo4N+K/IpHnQpPYcpVW5/XH5a+2RbZWSbnXWpro/pC+2oegYskB6H0yCNsxUwK ttWMK45ykjFRBkxK2YhZRP2JVstGYRne87xFyCZvnI7MjJdsN4XsEuOdxsUQIgc/0fbY wM8QYYZGSQ2SbDVLqo1J2UBBhkEyk/J5NtdvfzQ5+niZCPlwecDtBnPRp/UTeVpwrOHh +myt4lR6bUnB1CU2fR8KhY1MhYblLeKbPhwBUUgO84aj6APxRq1E4+YOBiiqoIKj2C0D K7YI8yIftW4u/8+al+dghBdDmkqZc8N/kgJxYm1vNuaWbwKyxXEQHxu9NpVlBOkRM40h 4hDA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AzEcMPzKLnnOWbjhaH73Q8bDAZR8DY+u8H46NXy6Ozs=; b=Gg/00OoR3NO7h1klt78vMQJkSr5rsRB36P3zdWzjSp30ZqQpoCjK1LA0q/9S85dvwR yXMA8pwCqIPAMN3YtNhVKGJbAU4fNGXNZWx8jDY6vipqQ/w4qbuljVbbg9GKnwPHYAEB kBepEK7W/CDF9DA/c7ipeYjwupm2BAJ4K5TAYkmIkoZo9/ct0OgmCq/VgGQaQdyZE3bK yrK/hTKsCG+vTcJrBKICfThvkFioNJoqnMY3z0TONJLkLhXSL1+fgPScvwnXh04UYWH8 6bPqLugBCa+9lrCbCwNO5is8Df8WQ367LBcCtYd9lwGezmyFBAHCvCVHa3pX+JSOfqet JsnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f0c995f+; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f24si2394162otl.300.2020.03.01.23.38.47; Sun, 01 Mar 2020 23:39: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=@kernel.org header.s=default header.b=f0c995f+; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727117AbgCBHiT (ORCPT + 99 others); Mon, 2 Mar 2020 02:38:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:44752 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726874AbgCBHiQ (ORCPT ); Mon, 2 Mar 2020 02:38:16 -0500 Received: from mail.kernel.org (ip5f5ad4e9.dynamic.kabel-deutschland.de [95.90.212.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 73812246C2; Mon, 2 Mar 2020 07:38:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583134694; bh=4eNStRkuUGNNVk6etOXpQBq5Qk+WOYvFVm7Jt3wI6kw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f0c995f+hbAfvxnVZ2D7JqheOs8Lvlvc75bZudFN5q/3sBDxrKXFbql0QVEGExBrr nDZAj1V1RLdJm816GhGh3UUAFXxIv+YIJvPjGIifvC+ZjT51j5tMawIUlvXvQFduGI R7ODty7X0xtKYzYjA1ARyLJJfDqfOC5DSXmQhNYc= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1j8feV-0003Vi-TS; Mon, 02 Mar 2020 08:38:11 +0100 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , Rob Herring , devicetree@vger.kernel.org, Mauro Carvalho Chehab Subject: [PATCH 05/12] docs: dt: convert changesets to ReST Date: Mon, 2 Mar 2020 08:38:00 +0100 Message-Id: X-Mailer: git-send-email 2.21.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mauro Carvalho Chehab - Add a SPDX header; - Add a document title; - Some whitespace fixes and new line breaks; - Add it to devicetree/index.rst. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Mauro Carvalho Chehab --- .../{changesets.txt => changesets.rst} | 24 ++++++++++++------- Documentation/devicetree/index.rst | 1 + 2 files changed, 16 insertions(+), 9 deletions(-) rename Documentation/devicetree/{changesets.txt => changesets.rst} (59%) diff --git a/Documentation/devicetree/changesets.txt b/Documentation/devicetree/changesets.rst similarity index 59% rename from Documentation/devicetree/changesets.txt rename to Documentation/devicetree/changesets.rst index cb488eeb6353..c7fd8cd6a270 100644 --- a/Documentation/devicetree/changesets.txt +++ b/Documentation/devicetree/changesets.rst @@ -1,3 +1,9 @@ +.. SPDX-License-Identifier: GPL-2.0 + +============= +DT Changesets +============= + A DT changeset is a method which allows one to apply changes in the live tree in such a way that either the full set of changes will be applied, or none of them will be. If an error occurs partway @@ -15,17 +21,17 @@ The sequence of a changeset is as follows. 1. of_changeset_init() - initializes a changeset 2. A number of DT tree change calls, of_changeset_attach_node(), -of_changeset_detach_node(), of_changeset_add_property(), -of_changeset_remove_property, of_changeset_update_property() to prepare -a set of changes. No changes to the active tree are made at this point. -All the change operations are recorded in the of_changeset 'entries' -list. + of_changeset_detach_node(), of_changeset_add_property(), + of_changeset_remove_property, of_changeset_update_property() to prepare + a set of changes. No changes to the active tree are made at this point. + All the change operations are recorded in the of_changeset 'entries' + list. 3. of_changeset_apply() - Apply the changes to the tree. Either the -entire changeset will get applied, or if there is an error the tree will -be restored to the previous state. The core ensures proper serialization -through locking. An unlocked version __of_changeset_apply is available, -if needed. + entire changeset will get applied, or if there is an error the tree will + be restored to the previous state. The core ensures proper serialization + through locking. An unlocked version __of_changeset_apply is available, + if needed. If a successfully applied changeset needs to be removed, it can be done with of_changeset_revert(). diff --git a/Documentation/devicetree/index.rst b/Documentation/devicetree/index.rst index 6b4daf252375..64c78c3ffea6 100644 --- a/Documentation/devicetree/index.rst +++ b/Documentation/devicetree/index.rst @@ -10,3 +10,4 @@ Open Firmware and Device Tree usage-model writing-schema booting-without-of + changesets -- 2.21.1