]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/chrome: cros_ec_lpc: Add a new quirk for ACPI id
authorBen Walsh <ben@jubnut.com>
Wed, 5 Jun 2024 06:33:49 +0000 (07:33 +0100)
committerTzung-Bi Shih <tzungbi@kernel.org>
Thu, 6 Jun 2024 03:11:51 +0000 (03:11 +0000)
commit040159e0912c31fe959d8671f9700bda105ab63a
treee398299f5538c44f5ce53ea251662e48e78edfd2
parent60c7df66450e3a7821a8d68496c20c95de6a15c5
platform/chrome: cros_ec_lpc: Add a new quirk for ACPI id

Framework Laptops' ACPI exposes the EC with id "PNP0C09". But
"PNP0C09" is part of the ACPI standard; there are lots of computers
with EC chips with this id, and most of them don't support the cros_ec
protocol.

The driver could find the ACPI device by having "PNP0C09" in the
acpi_match_table, but this would match devices which don't support the
cros_ec protocol. Instead, add a new quirk "CROS_EC_LPC_QUIRK_ACPI_ID"
which allows the id to be specified. This quirk is applied after the
DMI check shows that the device is supported.

Tested-by: Dustin L. Howett <dustin@howett.net>
Signed-off-by: Ben Walsh <ben@jubnut.com>
Link: https://lore.kernel.org/r/20240605063351.14836-4-ben@jubnut.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_ec_lpc.c