From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: devicetree-compiler@vger.kernel.org
Cc: David Gibson <david@gibson.dropbear.id.au>
Subject: [PATCH v3 0/2] livetree: Add only new data to fixup nodes instead of complete regeneration
Date: Mon, 18 Aug 2025 12:35:44 +0200 [thread overview]
Message-ID: <cover.1755512759.git.u.kleine-koenig@baylibre.com> (raw)
Hello,
here comes v3 of my effort to fix the fallout of commit 915daadbb62d
("Start with empty __local_fixups__ and __fixups__ nodes") before trying
to restore phandle information from __fixups__ and __local_fixups__ when
compiling from dtb to dts.
Changes since v2[1]:
- Don't add data to malformed properties
- Make check for for property being a string in
append_unique_str_to_property() more robust.
I didn't add a specific error message pointing out malformed
properties because it's hard to only emit the first problem and also to
only emit each property once. (Well, it's not really hard, but needs
considerable restructuring of the affected functions that makes them
less intuitive.)
Best regards
Uwe
[1] https://lore.kernel.org/devicetree-compiler/cover.1755264521.git.u.kleine-koenig@baylibre.com
Uwe Kleine-König (2):
livetree: Simplify append_to_property()
livetree: Add only new data to fixup nodes instead of complete
regeneration
livetree.c | 137 ++++++++++++++++++++++++++++------------
tests/retain-fixups.dts | 29 +++++++++
tests/run_tests.sh | 5 ++
3 files changed, 131 insertions(+), 40 deletions(-)
create mode 100644 tests/retain-fixups.dts
base-commit: 84d9dd2fcbc865a35d7f04d9b465b05ef286d281
--
2.50.1
next reply other threads:[~2025-08-18 10:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-18 10:35 Uwe Kleine-König [this message]
2025-08-18 10:35 ` [PATCH v3 1/2] livetree: Simplify append_to_property() Uwe Kleine-König
2025-08-18 10:38 ` Uwe Kleine-König
2025-08-18 23:25 ` David Gibson
2025-08-19 5:35 ` Uwe Kleine-König
2025-08-19 6:17 ` David Gibson
2025-08-19 11:24 ` Uwe Kleine-König
2025-08-18 10:35 ` [PATCH v3 2/2] livetree: Add only new data to fixup nodes instead of complete regeneration Uwe Kleine-König
2025-08-20 11:38 ` David Gibson
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=cover.1755512759.git.u.kleine-koenig@baylibre.com \
--to=u.kleine-koenig@baylibre.com \
--cc=david@gibson.dropbear.id.au \
--cc=devicetree-compiler@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.