mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
power_button_x86: Don't inhibit power button in S0
Allow power button presses which turn the AP off. TEST=Manual on Samus. Boot system with depleted battery, hit power button at dev screen and verify AP powers off. BUG=None BRANCH=Samus Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Change-Id: I68c9b6c07520992ebba9dcbeccc60ebfb41ca112 Reviewed-on: https://chromium-review.googlesource.com/243710 Reviewed-by: Alec Berg <alecaberg@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
70afa3898c
commit
2033b8a2d6
@@ -121,7 +121,8 @@ static void set_pwrbtn_to_pch(int high)
|
||||
* is too low.
|
||||
*/
|
||||
#ifdef CONFIG_CHARGER
|
||||
if (!high && (charge_want_shutdown() || charge_prevent_power_on())) {
|
||||
if (chipset_in_state(CHIPSET_STATE_ANY_OFF) && !high &&
|
||||
(charge_want_shutdown() || charge_prevent_power_on())) {
|
||||
CPRINTS("PB PCH pwrbtn ignored due to battery level");
|
||||
high = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user