Skip to contentSkip to conversation

of: Move OF property and graph API from base.c to property.c

PATCH Superseded Sakari Ailus 3 participants 3 messages May 3, 2017 1 message not in the archive

Subsystems (2)

v3 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 of: Move OF property and graph API from base.c to property.c

base.c contains both core OF functions and increasingly other functionality such as accessing properties and graphs, including convenience functions. In the near future this would also include OF specific implementation of the fwnode property and graph APIs.

Create driver/of/property.c to contain procedures for accessing and interpreting device tree properties. The procedures are moved from drivers/of/base.c, with no changes other than copying only the includes required by the moved procedures.

---
Hi Rob and Frank,

This is a pre-dependency for further fwnode property cleanup. The patch appears to be slightly more conflict-prone than the rest of the patchset:

<URL:http://www.spinics.net/lists/linux-acpi/msg72647.html>

Would it be possible to merge it separately from the rest?

since v2:

- Also move of_property_read_u64_index() added by patch "drivers/of/base.c: Add of_property_read_u64_index" found in linux-next

 drivers/of/Makefile   |   2 +-
 drivers/of/base.c     | 733 ------------------------------------------------
 drivers/of/property.c | 763 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 764 insertions(+), 734 deletions(-)
 create mode 100644 drivers/of/property.c

Regards,
Sakari

drivers/of/Makefile +1 -1
index d7efd9d..97dc01c 100644
@@ -1,4 +1,4 @@
-obj-y = base.o device.o platform.o
+obj-y = base.o device.o platform.o property.o
 obj-$(CONFIG_OF_DYNAMIC) += dynamic.o
 obj-$(CONFIG_OF_FLATTREE) += fdt.o
 obj-$(CONFIG_OF_EARLY_FLATTREE) += fdt_address.o
drivers/of/base.c +0 -733

748 lines not on this page · raw message

drivers/of/property.c new file +763 -0

763 lines not on this page · raw message

Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 14 lines · Sakari Ailus

base.c contains both core OF functions and increasingly other functionality such as accessing properties and graphs, including convenience functions. In the near future this would also include OF specific implementation of the fwnode property and graph APIs.

Create driver/of/property.c to contain procedures for accessing and interpreting device tree properties. The procedures are moved from drivers/of/base.c, with no changes other than copying only the includes required by the moved procedures.

---
Hi Rob and Frank,

Quoted 6 lines

This is a pre-dependency for further fwnode property cleanup. The patch appears to be slightly more conflict-prone than the rest of the patchset:

<URL:http://www.spinics.net/lists/linux-acpi/msg72647.html>

Would it be possible to merge it separately from the rest?

Yes, but not now in the middle of the merge window. Maybe towards the end of the merge window for 4.12. Or it's not going to be until 4.13.

Rob

A message that is not in the archive (sent off-list or not yet received): CAL_JsqKOnhaHW=GihiuaM6m8TjmREKNJsJaAaW96bKYmy=2MeQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#3 lore raw
Quoted 2 lines · Rob Herring

Yes, but not now in the middle of the merge window. Maybe towards the end of the merge window for 4.12. Or it's not going to be until 4.13.

Ack. I'll repost the rest for review tomorrow.

Signature · 6 lines
Sakari Ailus
sakari.ailus-VuQAYsv1563Yd54FQh9/[email protected]
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html