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.
Showing the changes to include/linux/platform_data (1 of 2 files). Show all
Unified · Split
| @@ -41,6 +41,11 @@ · 40 unmodified lines | ||
| 41 | 41 | #define EC_MAX_REQUEST_OVERHEAD 1 |
| 42 | 42 | #define EC_MAX_RESPONSE_OVERHEAD 32 |
| 43 | 43 | |
| 44 | +/* | |
| 45 | + * ACPI notify value for MKBP host event. | |
| 46 | + */ | |
| 47 | +#define ACPI_NOTIFY_CROS_EC_MKBP 0x80 | |
| 48 | + | |
| 44 | 49 | /* |
| 45 | 50 | * EC panic is not covered by the standard (0-F) ACPI notify values. |
| 46 | 51 | * Arbitrarily choosing B0 to notify ec panic, which is in the 84-BF |