Created
April 28, 2017 00:42
-
-
Save dsd/f50a63c9f31779436bd280c76253e37c to your computer and use it in GitHub Desktop.
ACPI DSDT EC probe debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c | |
index c24235d8fb52..10bc96ffa937 100644 | |
--- a/drivers/acpi/ec.c | |
+++ b/drivers/acpi/ec.c | |
@@ -1355,11 +1355,15 @@ ec_parse_device(acpi_handle handle, u32 Level, void *context, void **retval) | |
unsigned long long tmp = 0; | |
struct acpi_ec *ec = context; | |
+ status = acpi_evaluate_integer(handle, METHOD_NAME__STA, NULL, &tmp); | |
+ pr_err("ec_parse_device: _STA status %d val %lld\n", status, tmp); | |
+ | |
/* clear addr values, ec_parse_io_ports depend on it */ | |
ec->command_addr = ec->data_addr = 0; | |
status = acpi_walk_resources(handle, METHOD_NAME__CRS, | |
ec_parse_io_ports, ec); | |
+ pr_err("ec_parse_device: _CRS status %d, command %lx data %lx\n", status, ec->command_addr, ec->data_addr); | |
if (ACPI_FAILURE(status)) | |
return status; | |
@@ -1678,6 +1682,7 @@ int __init acpi_ec_dsdt_probe(void) | |
* At this point, the namespace is initialized, so start to find | |
* the namespace objects. | |
*/ | |
+ pr_err("acpi_ec_dsdt_probe: search for DSDT EC\n"); | |
status = acpi_get_devices(ec_device_ids[0].id, | |
ec_parse_device, ec, NULL); | |
if (ACPI_FAILURE(status) || !ec->handle) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment