[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: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
3173cdfe02
commit
ed349a8a0a
@ -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,
|
|||||||
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 =
|
||||||
|
Loading…
Reference in New Issue
Block a user