Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1683478

[PATCH 0/3] of: overlay: load overlay symbols into live device tree

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From frowand.list@gmail.com
Newsgroups linux.kernel
Subject [PATCH 0/3] of: overlay: load overlay symbols into live device tree
Date Sat, 08 Jul 2017 02:30:02 +0200
Message-ID <u0LNf-3eS-3@gated-at.bofh.it> (permalink)
X-Original-To Rob Herring <robh+dt@kernel.org>, pantelis.antoniou@konsulko.com, Pantelis Antoniou <panto@antoniou-consulting.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=5jVTxlHStedgmYiYcUbrThlNxXPVp3UloxHWsOggbrM=; b=mQa5MIfdmpIIAR5vzwzgJSNmu9BHjI8TnnJuScOrSwAz1kXoXDRoJ2y1y6+j/ZxAsJ 8lwjvQXxthJCq6cllywNuAKoD2T/cwLvNDEbXjLDBmsFZPiiP5NlGE/C/2wQLX2bskP4 R7NLL5jWeAisTl7xN4fIHQhil5sOV12jVrGnn7wuGaMSIfdyGJB0IWtkWqXJZjdiK2Hg MXX624DuPiJBOOjgqdQbyk+hpHw7BdopTuMOfXE2m171mGx3e1RD9+ClFvbGjNwswKHm leVaVCcYNl7siy5zbFbKUcs94nMcKGLbn6+7DLvFgv465uwBm6bMywEIoJSyui5MtgLr LUnw==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5jVTxlHStedgmYiYcUbrThlNxXPVp3UloxHWsOggbrM=; b=Fhc0Nq52O8hU0kbhb7LPALnzfubsbPVTFIn3PnIe30+0dcl9m29andtYfSeT6pxQ1g 2/HYC/WEngFNubmiFurcm7SNG8HXRUBYNHXZq7X9hit+yrXr1G5C8deW8T+OK7cD9W4g qc/eDqq5fqXBOAEovUvZ9rPBDN8HeK2CoDyw4MEPYKRsZ9rfUh5icMoWCTsd3tF8BhUN K/Wu8/zjMHenuxRNPhfHC0r7RthIfENlcYxNpt12BhH5xfjhbfTIqaxLjlSwzilp/vev G15lZIXvhqp64/Twg2qwVQoXaJFMyClNJMIwYLspJkJZjkuKy46PqZo4NOfgD2LqPoK3 zZBw==
X-Gm-Message-State AIVw111UvzUwd4PzWYanUVLEx4eZNGGy9T8nZpVIf+Ru83EZVT8ZJJad f3RCG5BFbYBm+g==
X-Received by 10.101.88.130 with SMTP id d2mr3951871pgu.265.1499473739770; Fri, 07 Jul 2017 17:28:59 -0700 (PDT)
X-Mailer git-send-email 1.9.1
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 38
Organization linux.* mail to news gateway
X-Original-Cc devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
X-Original-Date Fri, 7 Jul 2017 17:28:42 -0700
X-Original-Message-ID <1499473725-13361-1-git-send-email-frowand.list@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1683478

Show key headers only | View raw


From: Frank Rowand <frank.rowand@sony.com>

Symbols in a loaded overlay are not currently available to subsequently
loaded overlays because the properties in the overlay's __symbols__
node are not loaded into the live device tree.

Patch 1 is unittests to test patches 2 and 3.

Patch 2 fixes a problem discovered while developing patch 3.  If
a node name in an overlay has a unit-address then the overlay
code does not correctly match the node name against an existing
node in the live tree.

Patch 3 adds the properties in an overlay's __symbol__ node to
the overlay changeset.

This patch set was created on top of v4.12, with Rob's pull request
for 4.13 added (https://lkml.org/lkml/2017/7/6/691).  Thus this
series should apply on 4.13-rc1 when that becomes available.  I will
re-test on 4.13-rc1.


Frank Rowand (3):
  of: overlay: add overlay unittest data for node names and symbols
  of: overlay: correctly apply overlay node with unit-address
  of: overlay: add overlay symbols to live device tree

 drivers/of/overlay.c                            | 136 ++++++++++++++++++++++--
 drivers/of/unittest-data/Makefile               |   3 +
 drivers/of/unittest-data/overlay.dts            |  19 +++-
 drivers/of/unittest-data/overlay_bad_symbol.dts |  22 ++++
 drivers/of/unittest-data/overlay_base.dts       |   7 ++
 drivers/of/unittest.c                           |   6 ++
 6 files changed, 182 insertions(+), 11 deletions(-)
 create mode 100644 drivers/of/unittest-data/overlay_bad_symbol.dts

-- 
Frank Rowand <frank.rowand@sony.com>

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] of: overlay: load overlay symbols into live device tree frowand.list@gmail.com - 2017-07-08 02:30 +0200
  [PATCH 1/3] of: overlay: add overlay unittest data for node names and symbols frowand.list@gmail.com - 2017-07-08 02:40 +0200

csiph-web