Commit ed349a8a authored by Len Brown's avatar Len Brown

[ACPI] fix pnpacpi regression resulting from ACPICA 20051117

In ACPICA 20051117, acpi_walk_resources() started
sending ACPI_RESOURCE_TYPE_END_TAG to the callback
routine which wasn't prepared for it, causing
_CRS to fail and PnPACPI to not recognize any devices:

pnp: ACPI device : hid PNP0C02
pnp: PnPACPI: unknown resource type 7
pnp: PnPACPI: METHOD_NAME__CRS failure for PNP0c02
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 3173cdfe
...@@ -286,6 +286,12 @@ acpi_walk_resources(acpi_handle device_handle, ...@@ -286,6 +286,12 @@ acpi_walk_resources(acpi_handle device_handle,
break; break;
} }
/* end_tag indicates end-of-list */
if (resource->type == ACPI_RESOURCE_TYPE_END_TAG) {
break;
}
/* Invoke the user function, abort on any error returned */ /* Invoke the user function, abort on any error returned */
status = user_function(resource, context); status = user_function(resource, context);
...@@ -298,12 +304,6 @@ acpi_walk_resources(acpi_handle device_handle, ...@@ -298,12 +304,6 @@ acpi_walk_resources(acpi_handle device_handle,
break; break;
} }
/* end_tag indicates end-of-list */
if (resource->type == ACPI_RESOURCE_TYPE_END_TAG) {
break;
}
/* Get the next resource descriptor */ /* Get the next resource descriptor */
resource = resource =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment