Skip to content

poweroff-source DT property renaming

Romain Perier linux-arm-kernel linux-devicetree linux-pm lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 8 repliesIn review
  2. v42 patches 13 repliesSuperseded
  3. v32 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 of 4 patches6 repliesSuperseded
v14 of 10 patches15 repliesSuperseded

Changes in v5 from the cover letter

- Renamed the helper function to of_device_is_system_power_controller
- Removed changes in tps65910, as this commit will be removed from the mfd tree
- Updated doc

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2of: Rename "poweroff-source" property to "system-power-controller"Documentation/devicetree/bindings/power/power-controller.txt Documentation/devicetree/bindings/regulator/act8865-regulator.txt drivers/regulator/act8865-regulator.c +1 more+6 -67 replies
2/2dt-bindings: Update documentation for "system-power-controller" and fix misspellingsDocumentation/devicetree/bindings/power/power-controller.txt+10 -100 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJohan HovoldGrant Likely
1/2A-b A-b
2/2

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

Read the v5 thread

Cover letter [PATCH v5 0/2] poweroff-source DT property renaming

The goal of this serie is to rename the property "poweroff-source" to "system-power-controller". After discussions, it makes more sense to rename back to the old established property name. This patches serie reverts commit a4b4e0461ec5 ("of: Add standard property for poweroff capability").

Changes since v4:
- Renamed the helper function to of_device_is_system_power_controller
- Removed changes in tps65910, as this commit will be removed from the mfd tree
- Updated doc

Changes since v3:
- Move backward compatibility from of_is_system_power_controller to tps65910, as it was only required for this driver.

Changes since v2:
- of_is_system_power_controller is inline in of.h and only supports backward compatibility with device drivers which used this helper (which is tps65910)
- Quashed all changes into a single patch (except documentation)
- Add a separated commit to fix typos and mispellings in documentation

Changes since v1:

- The first patch defines "of_is_system_power_controller" which is compatible with both "vendor,system-power-controller" and "system-power-controller" properties. Also, It keeps the old helper function of_system_has_poweroff_source for source compatibility until everything is renamed (in this way, bisections are not broken and change is made "atomically" between each commit)

Note: the property "poweroff-source" itself is not used in dts files yet. Before this patch tps65910 was broken due to missing backward compatibility with "vendor,system-power-controller". As the old helper uses the new one, it works again.

- act8865 and tps65910 are ported to the new helper function
- The last commit removes the olf helper which was only used for source compatibility

Romain Perier (2):
of: Rename "poweroff-source" property to "system-power-controller"
dt-bindings: Update documentation for "system-power-controller" and
fix misspellings

 .../devicetree/bindings/power/power-controller.txt     | 18 ++++++++++++++++++
 Documentation/devicetree/bindings/power/poweroff.txt   | 18 ------------------
 .../bindings/regulator/act8865-regulator.txt           |  4 ++--
 drivers/regulator/act8865-regulator.c                  |  2 +-
 include/linux/of.h                                     |  6 +++---
 5 files changed, 24 insertions(+), 24 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/power/power-controller.txt
 delete mode 100644 Documentation/devicetree/bindings/power/poweroff.txt
Signature · 1 line
1.9.1