summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2019-09-18 15:32:45 +0300
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2019-09-18 18:48:36 +0300
commitab73141be9d799c6bac71398f0fbd95a55d4fabe (patch)
treefa4494ade011093aac89bdb8bff669721d5459c0 /Documentation
parentcd0060a616b965de788837d822ce0bc3a29b9ce3 (diff)
power: reset: gpio-poweroff: add force-mode
Property "force-mode" tells the driver to replace previously initialized power-off kernel hook and allows gpio-poweroff to probe and operate successfully in any case. Related-to: #42589 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt b/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt
index e62d53d844cc..e680925894c9 100644
--- a/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt
+++ b/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt
@@ -27,6 +27,9 @@ Optional properties:
it to an output when the power-off handler is called. If this optional
property is not specified, the GPIO is initialized as an output in its
inactive state.
+- force-mode: Force replacing pm_power_off kernel hook.
+ If this optional property is not specified, the driver will fail to
+ load if someone has registered the pm_power_off hook earlier.
Examples: