]> git.ipfire.org Git - thirdparty/linux.git/commit
ACPI: EC: Ignore ECDT tables with an invalid ID string
authorArmin Wolf <W_Armin@gmx.de>
Thu, 29 May 2025 23:53:10 +0000 (01:53 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 10 Jun 2025 18:55:31 +0000 (20:55 +0200)
commit7a0d59f6a913a2bc7680c663b8cf1e45d1bdbf26
treefb7914ccd89c7b39ccecff3c24264421bfbe27a2
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
ACPI: EC: Ignore ECDT tables with an invalid ID string

On the MSI Modern 14 C5M the ECDT table contains invalid data:

UID : 00000000
 GPE Number : 00 /* Invalid, 03 would be correct */
   Namepath : "" /* Invalid, "\_SB.PCI0.SBRG.EC" would
 * be correct
 */

This slows down the EC access as the wrong GPE event is used for
communication. Additionally the ID string is invalid.

Ignore such faulty ECDT tables by verifying that the ID string has
a valid format.

Tested-by: glpnk@proton.me
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://patch.msgid.link/20250529235310.540530-1-W_Armin@gmx.de
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c