summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/gaia_power.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/gaia_power.c b/common/gaia_power.c
index c0ae8cc8c6..bf060f9327 100644
--- a/common/gaia_power.c
+++ b/common/gaia_power.c
@@ -239,6 +239,13 @@ int gaia_power_init(void)
int chipset_in_state(int state_mask)
{
+ /*
+ * TODO(rongchang): fix suspend signal
+ * gaia_suspend_event() doesn't work. get ap_suspended
+ * again.
+ */
+ ap_suspended = !gpio_get_level(GPIO_SUSPEND_L);
+
/* If AP is off, match any off state for now */
if ((state_mask & CHIPSET_STATE_ANY_OFF) && !ap_on)
return 1;