diff options
author | Furquan Shaikh <furquan@chromium.org> | 2017-04-12 12:24:00 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-04-17 16:23:50 -0700 |
commit | c5332f6fe7d4d5197ac2154319f5e7dd4436d62a (patch) | |
tree | ef751084139cf01c1fa8b8dab08132900d5d4e91 /common | |
parent | 67fd976c36e2a72f32c6541b435eda12879f1657 (diff) | |
download | chrome-ec-c5332f6fe7d4d5197ac2154319f5e7dd4436d62a.tar.gz |
power_button_x86: Fix power button pulse enabling/disabling
BUG=b:37277943
BRANCH=None
TEST=Verified that wake from power button works in S3. Also, verified
that menu selection works fine with this change.
Change-Id: I8e644af3fb7fbc0147f1acb12b6df945815b5e73
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/475974
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/power_button_x86.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/power_button_x86.c b/common/power_button_x86.c index aa5f17150f..f9903b2782 100644 --- a/common/power_button_x86.c +++ b/common/power_button_x86.c @@ -113,7 +113,7 @@ static const char * const state_names[] = { static uint64_t tnext_state; /* - * Determines whether to execute initial SMI pulse (t0 stage) + * Determines whether to execute power button pulse (t0 stage) */ static int power_button_pulse_enabled = 1; @@ -466,7 +466,7 @@ static int hc_config_powerbtn_x86(struct host_cmd_handler_args *args) const struct ec_params_config_power_button *p = args->params; power_button_pulse_enabled = - p->flags & (1 << EC_POWER_BUTTON_ENABLE_SMI_PULSE); + !!(p->flags & EC_POWER_BUTTON_ENABLE_PULSE); return EC_SUCCESS; } |