git: d5f0768e13f3 - main - acpi_ec: Interpret a relative ECDT's EC_ID as an absolute namepath
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Nov 2026 10:13:56 UTC
The branch main has been updated by rodrigo:
URL: https://cgit.FreeBSD.org/src/commit/?id=d5f0768e13f396337f01a62598a6b24bbfb84282
commit d5f0768e13f396337f01a62598a6b24bbfb84282
Author: Rodrigo Osorio <rodrigo@FreeBSD.org>
AuthorDate: 2026-10-12 14:20:19 +0000
Commit: Rodrigo Osorio <rodrigo@FreeBSD.org>
CommitDate: 2026-11-24 10:13:11 +0000
acpi_ec: Interpret a relative ECDT's EC_ID as an absolute namepath
This commit makes the Elan touchpad (ELAN06FA) on the Lenovo Thinkbook
14 6G attach at boot by resolving the ECDT's relative EC_ID path from
the namespace root.
The motherboard supports multiple touchpad models (Synaptics, Elan, ...)
As a result, the firmware defers the selection until runtime:
- touchpad device _INI method queries the embedded controller (EC),
- determines the actual model installed
- writes the correct _HID and I²C slave address
In acpi_ec_ecdt_probe(), the ECDT's EC_ID string is resolved with a NULL
scope. However ACPICA only accepts absolute paths in this context, while
the EC_ID provided by this machine's firmware is relative.
Although this is not specification-compliant, this change interprets
the relative EC_ID as an absolute namepath from the namespace root.
Reviewed By: olce
Approved by: olce
Differential Revision: https://reviews.freebsd.org/D60648
---
sys/dev/acpica/acpi_ec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c
index 8ee7bc54f304..b98d15d179db 100644
--- a/sys/dev/acpica/acpi_ec.c
+++ b/sys/dev/acpica/acpi_ec.c
@@ -298,7 +298,7 @@ acpi_ec_ecdt_probe(device_t parent)
}
/* Find and save the ACPI handle for this device. */
- status = AcpiGetHandle(NULL, ecdt->Id, &h);
+ status = AcpiGetHandle(ACPI_ROOT_OBJECT, ecdt->Id, &h);
if (ACPI_FAILURE(status)) {
device_delete_child(parent, child);
printf("%s: can't get handle\n", __func__);