devicetree-compiler.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] livetree: Add only new data to fixup nodes instead of complete regeneration
@ 2025-08-18 10:35 Uwe Kleine-König
  2025-08-18 10:35 ` [PATCH v3 1/2] livetree: Simplify append_to_property() 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
  0 siblings, 2 replies; 9+ messages in thread
From: Uwe Kleine-König @ 2025-08-18 10:35 UTC (permalink / raw)
  To: devicetree-compiler; +Cc: David Gibson

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-08-20 11:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-18 10:35 [PATCH v3 0/2] livetree: Add only new data to fixup nodes instead of complete regeneration Uwe Kleine-König
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).