Skip to content

Support spaces in reboot mode framework

Elliot Berman linux-arm-msm linux-devicetree linux-pm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/24 patches 4 repliesIn review
  2. v1 posting 1/24 patches 0 repliesSuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dt-bindings: power: reset: Convert reboot-mode to YAMLDocumentation/devicetree/bindings/power/reset/reboot-mode.txt Documentation/devicetree/bindings/power/reset/reboot-mode.yaml+47 -251 reply
2/4dt-bindings: power: reset: Add alternate reboot mode formatDocumentation/devicetree/bindings/power/reset/reboot-mode.yaml+17 -03 replies
3/4power: reset: Add support for reboot mode alternate propertiesdrivers/power/reset/reboot-mode.c+41 -10 replies
4/4arm64: dts: qcom: pm8150: Add reboot magicarch/arm64/boot/dts/qcom/pm8150.dtsi+5 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RESEND PATCH v1 0/4] Support spaces in reboot mode framework

Resending with updated recepients and cover subject.

PM8150 uses reboot-mode framework to set magic values for bootloader to read during next boot. dm-verity wants to use "dm-verity device corrupted" [1] as the restart command, however the reboot-mode framework does not support spaces in the command line as devicetree property names cannot have spaces. In order to support the PM8150 comamnds, this patch series adds two new optional array properties to reboot-mode framework: reboot-mode-names and reboot-mode-magic. The arrays supply the commands and magic values, respectively.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/md/dm-verity-target.c?h=v5.5#n255

Elliot Berman (4):
dt-bindings: power: reset: Convert reboot-mode to YAML
dt-bindings: power: reset: Add alternate reboot mode format
power: reset: Add support for reboot mode alternate properties
arm64: dts: qcom: pm8150: Add reboot magic

 .../bindings/power/reset/reboot-mode.txt           | 25 ---------
 .../bindings/power/reset/reboot-mode.yaml          | 64 ++++++++++++++++++++++
 arch/arm64/boot/dts/qcom/pm8150.dtsi               |  5 ++
 drivers/power/reset/reboot-mode.c                  | 42 +++++++++++++-
 4 files changed, 110 insertions(+), 26 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/power/reset/reboot-mode.txt
 create mode 100644 Documentation/devicetree/bindings/power/reset/reboot-mode.yaml
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project