devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] power: reset: gpio-poweroff: use sys-off handler API
@ 2023-10-06 13:04 Francesco Dolcini
  2023-10-06 13:04 ` [PATCH v2 3/4] dt-bindings: power: reset: gpio-poweroff: Add priority property Francesco Dolcini
  2023-10-13  2:03 ` [PATCH v2 0/4] power: reset: gpio-poweroff: use sys-off handler API Sebastian Reichel
  0 siblings, 2 replies; 4+ messages in thread
From: Francesco Dolcini @ 2023-10-06 13:04 UTC (permalink / raw)
  To: Sebastian Reichel, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Francesco Dolcini, linux-pm, devicetree, linux-kernel

From: Francesco Dolcini <francesco.dolcini@toradex.com>

Use the new sys-off handler API for gpio-poweroff. This allows us to have more
than one power-off handler and to have a priority for the handler. Also, add a
priority property so we can use gpio-poweroff even when registering another
poweroff handler or using the legacy pm_power_off method.

v1->v2:
 - Add $ref to restart-handler.yaml in gpio-poweroff.yaml

Stefan Eichenberger (4):
  power: reset: gpio-poweroff: use a struct to store the module
    variables
  power: reset: gpio-poweroff: use sys-off handler API
  dt-bindings: power: reset: gpio-poweroff: Add priority property
  power: reset: gpio-poweroff: make sys handler priority configurable

 .../bindings/power/reset/gpio-poweroff.yaml   |  6 ++
 drivers/power/reset/gpio-poweroff.c           | 82 ++++++++++---------
 2 files changed, 50 insertions(+), 38 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2023-10-13  2:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-06 13:04 [PATCH v2 0/4] power: reset: gpio-poweroff: use sys-off handler API Francesco Dolcini
2023-10-06 13:04 ` [PATCH v2 3/4] dt-bindings: power: reset: gpio-poweroff: Add priority property Francesco Dolcini
2023-10-09  8:54   ` Krzysztof Kozlowski
2023-10-13  2:03 ` [PATCH v2 0/4] power: reset: gpio-poweroff: use sys-off handler API Sebastian Reichel

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).