summaryrefslogtreecommitdiff
path: root/common/keyboard_scan.c
diff options
context:
space:
mode:
authorSue Chen <sue.chen@quanta.corp-partner.google.com>2020-10-26 09:07:39 +0800
committerCommit Bot <commit-bot@chromium.org>2020-11-02 02:30:12 +0000
commit5e58c9687bfe09c0e98ce5ece32944f9a9bf0a3d (patch)
tree4ac2923618d781a4da034b748808a496613aa8c4 /common/keyboard_scan.c
parent4170ffcb8ba7ba7bcefdcd7c4c8f21b8366576df (diff)
downloadchrome-ec-5e58c9687bfe09c0e98ce5ece32944f9a9bf0a3d.tar.gz
System: shutdown chipset before enter hibernate
Pressing Alt + h + Volume Up cannot enter hibernate on lazor. The DUT would boot up immediately. To ensure the KB hibernate successfully, the AP needs fully shutdown before hibernating. BUG=b:171731177 BRANCH=none TEST=Pressing Alt+h+VolumeUp can enter hibernate in S0, and can wake up by plugging AC, pressing power button. make buildall -j2 Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I3c09c0d339ebbaab33635a283fd57bac61ebf08f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2497371 Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'common/keyboard_scan.c')
-rw-r--r--common/keyboard_scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/keyboard_scan.c b/common/keyboard_scan.c
index eae7f90118..e5de132197 100644
--- a/common/keyboard_scan.c
+++ b/common/keyboard_scan.c
@@ -454,7 +454,7 @@ static int check_runtime_keys(const uint8_t *state)
} else if (state[KEYBOARD_COL_KEY_H] == KEYBOARD_MASK_KEY_H) {
/* H = hibernate */
CPRINTS("KB hibernate");
- system_hibernate(0, 0);
+ system_enter_hibernate(0, 0);
return 1;
}