Skip to content

Fwnode property API fixes for OF, pset and ACPI

Sakari Ailus linux-acpi linux-devicetree 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 of 3 patches 1 replyIn review
  2. v13 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Make prop const. pset_prop_get() returns const struct property_entry * now in __fwnode_property_read_string_array().

- Make fwnode_property_read_string_array() behave as of_property_read_string_array() does in terms of the return value.

2 of 3 patches are in this archive. The cover letter announces 3.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3device property: fwnode_property_read_string_array() may return -EILSEQdrivers/base/property.c+1 -10 replies
2/3device property: Fix reading pset strings using array access functionsdrivers/base/property.c+25 -71 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMika Westerberg
SeriesR-b
1/3R-b
2/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] Fwnode property API fixes for OF, pset and ACPI

Hi folks,

Here are three patches that fix a few issues in the fwnode property API implementation. They were formerly a part of a larger patchset "Move firmware specific code to firmware specific locations" here:

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

The v1 (previous version) of the set is also available here:

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

These patches apply cleanly on v4.11-rc1 and linux-next with or without the ACPI graph support patchset I've sent a moment ago.

changes since v1.1:

- Move fixes to fwnode_property_read_string_array() return value fixes to respective implementations of those functions, rather than working around them in the fwnode property interface functions.

- fwnode_property_read_string_array() now may return fewer strings than requested also on ACPI in order to make behaviour of fwnode_property_read_string_array() fully consistent.

changes since v1:

- Make prop const. pset_prop_get() returns const struct property_entry * now in __fwnode_property_read_string_array().

- Make fwnode_property_read_string_array() behave as of_property_read_string_array() does in terms of the return value.

Sakari Ailus (3):
device property: fwnode_property_read_string_array() may return
-EILSEQ
device property: Fix reading pset strings using array access functions device property: fwnode_property_read_string_array() returns nr of
strings

 drivers/acpi/property.c | 22 +++++++++++++++++-----
 drivers/base/property.c | 46 ++++++++++++++++++++++++++++++++--------------
 2 files changed, 49 insertions(+), 19 deletions(-)
Signature · 2 lines
Kind regards,
Sakari