platform/chrome: cros_ec_proto: Add LID and BATTERY to default mask
authorEvan Benn <evanbenn@chromium.org>
Wed, 9 Dec 2020 22:03:55 +0000 (22:03 +0000)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Wed, 20 Jan 2021 15:19:17 +0000 (16:19 +0100)
commit852405d8efcbca0e02f14592fb1d1dcd0d3fb508
treee6bd23f0225ccb7ad4287467666ce02a3e79fc9a
parent0944ea07baa748741563c8842122010fa9017d16
platform/chrome: cros_ec_proto: Add LID and BATTERY to default mask

After 'platform/chrome: cros_ec_proto: Use EC_HOST_EVENT_MASK not BIT'
some of the flags are not quite correct.
LID_CLOSED is used to suspend the device, so it makes sense to ignore that.
BATTERY events are also frequent and causing spurious wakes on elm/hana
mt8173 devices.

Fixes: c214e564acb2 ("platform/chrome: cros_ec_proto: ignore unnecessary wakeups on old ECs")
Signed-off-by: Evan Benn <evanbenn@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20201209220306.2.I3291bf83e4884c206b097ede34780e014fa3e265@changeid
drivers/platform/chrome/cros_ec_proto.c