Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp709686ybz; Wed, 15 Apr 2020 17:13:41 -0700 (PDT) X-Google-Smtp-Source: APiQypJft4Gz1xaR5/h0UWMLKpR2DHk+hIe6EKelCpYqUQ80c0MbnYbowSMls6rGoWLlHCl7PuSj X-Received: by 2002:a50:fe8f:: with SMTP id d15mr28537391edt.64.1586996021003; Wed, 15 Apr 2020 17:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586996020; cv=none; d=google.com; s=arc-20160816; b=QfzoGw/E2+XxNBOeUQQKrtvNH+kcFwX+rEjtuH4WfHlGc/f7RL3Vn/zwVUXnjaqGzs AYVPq/9gh+nyaNY3rJMUEH1M4aMVjZDEGcHSHiJS+NeSIOfqRN4RFSgLLjYq/mD26Jox EYUdA4orVFyfjkgCMuZUgd+vR+mYfArVeFwxBoPnNt3x+sCKjGCJhTMg9Go4BwkzmHYp 1eh7nGDPs0zB16yoE0SSSiu4A7nrxKW9qdAR1r8rZFEl3GfCzFQ0xr9S5dqPpAmPXg6B Kq9zZNvfcDViqfl6a2aOWDopQrws1KJtphBXhVgO2eucdOxMSBrXORkQ5kF2MMUrsmAK j3Cw== 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=AgCFYVqapsKnUm9lHXz93y26labMsyJRphY6DwNdCDQ=; b=q6NWKFb9KwmA7hmqiAVvNR/eLvMTvmTSyeAmB+MBm0+qmMUD7WYUhRD0hW475tFfiC 2HlEng7PGgqRwxOxwpX9niTKIerKHeoH5UfDVpxI6rzNlwCAWxW2X4iOd90Wn3FRMQJ7 8gGCScbPaMJQ/PO7YpTk1jzg+oRGRQoEtfBHFD7vMuMA7KOq4wVw0g7AWrUoq2NGrrZO rSF/HM70ysKnBJ/4b0P/0XrGVjsin1JTzmiYnahcOftXe1c16HarPur6t/kUphin/7XG 0aYuNr9ueO7zhy1xWI8qyD/QNQBAh8RXw4J8oRExDeA1mek+PfKhF1EQAs5KM1NFy75y W0cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="UK/v4KpK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id c19si10657178ejr.215.2020.04.15.17.13.17; Wed, 15 Apr 2020 17:13:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="UK/v4KpK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2392341AbgDOOr1 (ORCPT + 99 others); Wed, 15 Apr 2020 10:47:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:39972 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2636787AbgDOOpa (ORCPT ); Wed, 15 Apr 2020 10:45:30 -0400 Received: from mail.kernel.org (ip5f5ad4d8.dynamic.kabel-deutschland.de [95.90.212.216]) (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 EED52214D8; Wed, 15 Apr 2020 14:45:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586961929; bh=oVpWH0qpmsIfqBvaqvZk4DhmzrNPI+GFYenh6pTu4+I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UK/v4KpK8hxPFvXSdUhaebc9I2OHm5j+drtz7PhkVfQefhI+b6yMY1RUUP7Mwv9JA +xWMBf0BxWsUiuXvr6FGW+37qOFR1619I9UhjaqsUmn4vnrP3lIFxWHksns7Liibqz FiL6AMJEyKPuEP+pnKXNbQt0DLRlyACu363Y5Bcw= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jOjI7-006kZV-8O; Wed, 15 Apr 2020 16:45:27 +0200 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 Subject: [PATCH v3 05/12] docs: dt: convert changesets to ReST Date: Wed, 15 Apr 2020 16:45:19 +0200 Message-Id: <6ae9724c28cef35f44f3d99d3907f0228a233e27.1586961793.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.25.2 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 - 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 --- .../{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.25.2