linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESEND PATCH v1 0/4] Support spaces in reboot mode framework
@ 2020-08-18 18:54 Elliot Berman
  2020-08-18 18:54 ` [RESEND PATCH v1 1/4] dt-bindings: power: reset: Convert reboot-mode to YAML Elliot Berman
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Elliot Berman @ 2020-08-18 18:54 UTC (permalink / raw)
  To: Sebastian Reichel, Andy Yan, Bjorn Andersson, Andy Gross, Rob Herring
  Cc: Elliot Berman, linux-pm, linux-arm-msm, devicetree, linux-kernel,
	Trilok Soni, Prasad Sodagudi

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

-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-08-26 18:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-18 18:54 [RESEND PATCH v1 0/4] Support spaces in reboot mode framework Elliot Berman
2020-08-18 18:54 ` [RESEND PATCH v1 1/4] dt-bindings: power: reset: Convert reboot-mode to YAML Elliot Berman
2020-08-25 16:21   ` Sebastian Reichel
2020-08-18 18:54 ` [RESEND PATCH v1 2/4] dt-bindings: power: reset: Add alternate reboot mode format Elliot Berman
2020-08-25 16:23   ` Sebastian Reichel
2020-08-25 21:25   ` Rob Herring
2020-08-26 18:39     ` Elliot Berman
2020-08-18 18:54 ` [RESEND PATCH v1 3/4] power: reset: Add support for reboot mode alternate properties Elliot Berman
2020-08-18 18:54 ` [RESEND PATCH v1 4/4] arm64: dts: qcom: pm8150: Add reboot magic Elliot Berman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).