Skip to content

of: remove kbasename() from core

[email protected] linux-devicetree lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v16 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- update patch 2/2 one-line description and full description
- no longer remove kbasename from resolver.c
- add_changeset_node(): add back kbasename() when comparing nodes in the livetree against nodes in the overlay
- add_changeset_node(): add header comments to document assumptions and behavior, and to explain why kbasename() is used

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2of: unittest: clean up changeset testdrivers/of/unittest.c+36 -61 reply
2/2of: overlay: do not include path in full_name of added nodesdrivers/of/dynamic.c drivers/of/of_private.h drivers/of/overlay.c +1 more+30 -180 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] of: remove kbasename() from core

From: Frank Rowand <[email protected]>

(One line description of patch 0/2 is now misleading, but leaving intact to make it easier to find v1. One line description of other patches updated as they will be part of the git commit record.)

Struct device_node full_name no longer includes the full path name.

Fix some broken overlay code that was not updated to reflect this.

Clean up the unittest changeset test that calls into this overlay code.

Version 1 of this patch removed kbasename() for other parts of core devicetree code. But Geert kindly pointed out that a devicetree created from Open Firmware (instead from an FDT) could still contain a full path in the struct device_node full_path field. This version (v2) of the patch leaves kbasename() in place where needed.

Changes since v1:
- update patch 2/2 one-line description and full description
- no longer remove kbasename from resolver.c
- add_changeset_node(): add back kbasename() when comparing nodes in the livetree against nodes in the overlay
- add_changeset_node(): add header comments to document assumptions and behavior, and to explain why kbasename() is used

Frank Rowand (2):
of: unittest: clean up changeset test
of: overlay: do not include path in full_name of added nodes

 drivers/of/dynamic.c    | 21 ++++++++++-----------
 drivers/of/of_private.h |  3 ++-
 drivers/of/overlay.c    | 18 +++++++++++++++---
 drivers/of/unittest.c   | 48 +++++++++++++++++++++++++++++++++++++++---------
 4 files changed, 66 insertions(+), 24 deletions(-)
Signature · 1 line
Frank Rowand <[email protected]>