cros_ec: Don't signal wake event for non-wake host events
authorShawn Nematbakhsh <shawnn@chromium.org>
Tue, 14 Feb 2017 19:58:02 +0000 (20:58 +0100)
committerBenson Leung <bleung@chromium.org>
Tue, 27 Jun 2017 16:19:15 +0000 (09:19 -0700)
commit29d99b966d60029a11d08b9b004cd84b21ce0d67
tree96d561541a90fa53de63670cf27eb6c1726b42ba
parentd4da97e59e1004aa1a15dd75469def20cd84ab99
cros_ec: Don't signal wake event for non-wake host events

The subset of wake-enabled host events is defined by the EC, but the EC
may still send non-wake host events if we're in the process of
suspending. Get the mask of wake-enabled host events from the EC and
filter out non-wake events to prevent spurious aborted suspend
attempts.

Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/mfd/cros_ec.c
drivers/platform/chrome/cros_ec_lpc.c
drivers/platform/chrome/cros_ec_proto.c
include/linux/mfd/cros_ec.h