diff options
Diffstat (limited to 'src/mainboard/google/link')
-rw-r--r-- | src/mainboard/google/link/smihandler.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mainboard/google/link/smihandler.c b/src/mainboard/google/link/smihandler.c index 719076b3f8..2f42b7da18 100644 --- a/src/mainboard/google/link/smihandler.c +++ b/src/mainboard/google/link/smihandler.c @@ -69,7 +69,8 @@ void mainboard_smi_sleep(u8 slp_typ) google_chromeec_set_sci_mask(0); /* Clear pending events that may trigger immediate wake */ - while (google_chromeec_get_event() != 0); + while (google_chromeec_get_event() != EC_HOST_EVENT_NONE) + ; /* Enable wake events */ google_chromeec_set_wake_mask(LINK_EC_S3_WAKE_EVENTS); @@ -81,13 +82,15 @@ int mainboard_smi_apmc(u8 apmc) case APM_CNT_ACPI_ENABLE: google_chromeec_set_smi_mask(0); /* Clear all pending events */ - while (google_chromeec_get_event() != 0); + while (google_chromeec_get_event() != EC_HOST_EVENT_NONE) + ; google_chromeec_set_sci_mask(LINK_EC_SCI_EVENTS); break; case APM_CNT_ACPI_DISABLE: google_chromeec_set_sci_mask(0); /* Clear all pending events */ - while (google_chromeec_get_event() != 0); + while (google_chromeec_get_event() != EC_HOST_EVENT_NONE) + ; google_chromeec_set_smi_mask(LINK_EC_SMI_EVENTS); break; } |