summaryrefslogtreecommitdiff
path: root/common/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/system.c')
-rw-r--r--common/system.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/common/system.c b/common/system.c
index fbf5895492..206f74181c 100644
--- a/common/system.c
+++ b/common/system.c
@@ -1070,9 +1070,14 @@ __maybe_unused static int command_hibernate(int argc, char **argv)
if (argc >= 3)
microseconds = strtoi(argv[2], NULL, 0);
- if (seconds || microseconds)
+ if (seconds || microseconds) {
+ if (IS_ENABLED(CONFIG_HIBERNATE_PSL)) {
+ ccprintf("Hibernating with timeout not supported "
+ "when PSL is enabled.\n");
+ return EC_ERROR_INVAL;
+ }
ccprintf("Hibernating for %d.%06d s\n", seconds, microseconds);
- else
+ } else
ccprintf("Hibernating until wake pin asserted.\n");
/*