From 7d66541b462a5b86ab051ce1a4ad5404496a991c Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Mon, 30 Oct 2017 18:30:03 -0700 Subject: lpc: Add and use lpc_resume_clear_masks Add a new LPC helper routine lpc_resume_clear_masks that can be used to clear SCI, SMI and wake masks upon resume from S3. This is done to mask the events until host explicitly unmasks them. It also ensures that these masks do not get reset on resume from S0ix where the host does not re-configure these masks. BUG=b:68669668 BRANCH=None TEST=Verified following: 1. make -j buildall 2. On resume from S0ix, SCI mask is not reset. 3. On resume from S3, SCI mask is reset and then set again by host request. Change-Id: I17a86bd60ef066b3716fb79ecce62f311eb45509 Signed-off-by: Furquan Shaikh Reviewed-on: https://chromium-review.googlesource.com/745533 Reviewed-by: Aaron Durbin --- power/intel_x86.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'power') diff --git a/power/intel_x86.c b/power/intel_x86.c index 6e9904ba43..a5f9754fc4 100644 --- a/power/intel_x86.c +++ b/power/intel_x86.c @@ -344,6 +344,8 @@ enum power_state common_intel_x86_power_handle_state(enum power_state state) /* Enable wireless */ wireless_set_state(WIRELESS_ON); + lpc_s3_resume_clear_masks(); + /* Call hooks now that rails are up */ hook_notify(HOOK_CHIPSET_RESUME); -- cgit v1.2.1