lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 8 Jan 2017 09:41:45 +0100
From:   Lukas Wunner <>
To:     Greg Kroah-Hartman <>,
Cc:     Andreas Noever <>,,,
        Chen Yu <>,
        "Rafael J. Wysocki" <>,
        Lee Jones <>
Subject: [PATCH v4 6/8] PM / sleep: Define constant for direct_complete

From: Chen Yu <>

The PM core introduced the ability to keep devices runtime suspended
during the entire system sleep process with commit aae4518b3124
("PM / sleep: Mechanism to avoid resuming runtime-suspended devices

Drivers opt in to this so-called "direct_complete" mechanism by
returning a positive value from their ->prepare hook.  Usually this is
achieved with a "return 1;" statement, which looks somewhat cryptic to
readers not intimately familiar with the PM core.

Improve clarity by defining a DPM_DIRECT_COMPLETE constant which drivers
may use instead.

Suggested-by: Rafael J. Wysocki <>
Acked-by: Mika Westerberg <>
Reviewed-by: Andy Shevchenko <>
Cc: Lee Jones <>
Signed-off-by: Chen Yu <>
[LW: separate this hunk out of mfd patch, add commit message]
Signed-off-by: Lukas Wunner <>
 include/linux/pm.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/linux/pm.h b/include/linux/pm.h
index f926af4..2d651a3 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -788,4 +788,11 @@ enum dpm_order {
+ * Return this from system suspend/hibernation ->prepare() callback to
+ * request the core to leave the device runtime-suspended during system
+ * suspend if possible.
+ */
 #endif /* _LINUX_PM_H */

Powered by blists - more mailing lists