diff options
author | Benjamin Schwartz <bsschwar@google.com> | 2022-06-16 17:01:20 -0700 |
---|---|---|
committer | Benjamin Schwartz <bsschwar@google.com> | 2022-06-16 17:01:20 -0700 |
commit | 68312cf028f2dc1aa70dc107c0e44334189b0810 (patch) | |
tree | 3687133749da204ba63ec29fdc93a7c9e60105cc | |
parent | a39df56effa52998d291697bfe849bc6f47cea4f (diff) | |
download | reset-68312cf028f2dc1aa70dc107c0e44334189b0810.tar.gz |
power: reset: Move power key checking to TF-Aandroid-t-qpr1-beta-3_r0.5android-t-qpr1-beta-3.1_r0.1android-13.0.0_r0.60android-13.0.0_r0.55android-13.0.0_r0.50android-gs-pantah-5.10-t-qpr1-beta-3android-gs-pantah-5.10-android13-qpr1-beta-3android-gs-pantah-5.10-android13-qpr1
Bug: 235180273
Test: adb reboot -p and hold power key
Signed-off-by: Benjamin Schwartz <bsschwar@google.com>
Change-Id: I66c2d241ee510d8b28c750553ff46ec9d21c6bf1
-rw-r--r-- | exynos-gs201-reboot.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/exynos-gs201-reboot.c b/exynos-gs201-reboot.c index 4917058..bb658d0 100644 --- a/exynos-gs201-reboot.c +++ b/exynos-gs201-reboot.c @@ -18,9 +18,6 @@ #include <linux/mfd/samsung/s2mpg12.h> #include <linux/platform_device.h> #include <linux/reboot.h> -#if IS_ENABLED(CONFIG_GS_ACPM) -#include <soc/google/acpm_ipc_ctrl.h> -#endif #include <soc/google/exynos-el3_mon.h> #include "../../bms/google_bms.h" @@ -117,27 +114,6 @@ static int exynos_reboot_handler(struct notifier_block *nb, unsigned long mode, { exynos_reboot_parse(cmd); - if (mode != SYS_POWER_OFF) - return NOTIFY_DONE; - - while (1) { - /* wait for power button release */ - if (!pmic_read_pwrkey_status()) { -#if IS_ENABLED(CONFIG_GS_ACPM) - acpm_prepare_reboot(); -#endif - pr_info("ready to do power off.\n"); - break; - } else { - /* - * if power button is not released, - * wait and check TA again - */ - pr_info("PWR Key is not released.\n"); - } - mdelay(1000); - } - return NOTIFY_DONE; } @@ -148,10 +124,6 @@ static struct notifier_block exynos_reboot_nb = { static int exynos_restart_handler(struct notifier_block *this, unsigned long mode, void *cmd) { -#if IS_ENABLED(CONFIG_GS_ACPM) - acpm_prepare_reboot(); -#endif - pr_info("ready to do restart.\n"); return NOTIFY_DONE; |