]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/chrome: cros_ec_lpc: Only check for events on MKBP notifies
authorRob Barnes <robbarnes@google.com>
Wed, 18 Dec 2024 01:57:59 +0000 (01:57 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Mon, 30 Dec 2024 01:31:05 +0000 (01:31 +0000)
commitfb1e493426d4da77a1d192fffa4dc55fc4ad5741
tree9b743e288f0a7bcf0afba8de30bd4c42769a36b4
parent6fcbc55a6afb21ccfaa4de1426b22a5e25331506
platform/chrome: cros_ec_lpc: Only check for events on MKBP notifies

Only check EC for MKBP events when the ACPI notify value indicates the
notify is due to an MKBP host event. This reduces unnecessary queries to
the EC.

Notify value 0x80 is reserved for devices specific notifies. It is used
by many devices to indicate various events. It's only used by cros_ec
for MKBP events.

Signed-off-by: Rob Barnes <robbarnes@google.com>
Link: https://lore.kernel.org/r/20241218015759.3558830-1-robbarnes@google.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_ec_lpc.c
include/linux/platform_data/cros_ec_proto.h