diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-10-18 15:30:04 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-10-19 18:06:40 +0000 |
commit | 481ef27de14b289de03bead9911e2c2d7c92bc84 (patch) | |
tree | 6a3b0e982b9cfe5a9888c8ebeae060b0fb5fe760 | |
parent | e4ddf85bfc97a859913482fd6183640d69315cc6 (diff) | |
download | chrome-ec-481ef27de14b289de03bead9911e2c2d7c92bc84.tar.gz |
ec: Remove fake suspend from qcom.c
This was intended to be a short term solution for local testing during
bringup of trogdor. It is no longer needed.
BRANCH=None
BUG=b:148149387
TEST=None
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I2bca46c9a6e07caf13e72255b8a16d7dada3058c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3964547
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
-rw-r--r-- | power/qcom.c | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/power/qcom.c b/power/qcom.c index 418f2b3136..30374cd330 100644 --- a/power/qcom.c +++ b/power/qcom.c @@ -896,46 +896,10 @@ test_mockable void chipset_reset(enum chipset_shutdown_reason reason) task_wake(TASK_ID_CHIPSET); } -/* - * Flag to fake the suspend signal to 1 or 0, or -1 means not fake it. - * - * TODO(waihong): Remove this flag and debug command when the AP_SUSPEND - * signal is working. - */ -static int fake_suspend = -1; - -static int command_fake_suspend(int argc, const char **argv) -{ - int v; - - if (argc < 2) { - ccprintf("fake_suspend: %s\n", - fake_suspend == -1 ? "reset" : - (fake_suspend ? "on" : "off")); - return EC_SUCCESS; - } - - if (!strcasecmp(argv[1], "reset")) - fake_suspend = -1; - else if (parse_bool(argv[1], &v)) - fake_suspend = v; - else - return EC_ERROR_PARAM1; - - task_wake(TASK_ID_CHIPSET); - - return EC_SUCCESS; -} -DECLARE_CONSOLE_COMMAND(fakesuspend, command_fake_suspend, "on/off/reset", - "Fake the AP_SUSPEND signal"); - /* Get system sleep state through GPIOs */ static inline int chipset_get_sleep_signal(void) { - if (fake_suspend == -1) - return (power_get_signals() & IN_SUSPEND) == IN_SUSPEND; - else - return fake_suspend; + return (power_get_signals() & IN_SUSPEND) == IN_SUSPEND; } __override void power_chipset_handle_sleep_hang(enum sleep_hang_type hang_type) |