Skip to content

Commit 0dda885

Browse files
acpibobrafaeljw
authored andcommitted
ACPICA: Revert "Parser: Fix for SuperName method invocation"
ACPICA commit eade8f78f2aa21e8eabc3380a5728db47273bcf1 Revert commit ae90fbf (ACPICA: Parser: Fix for SuperName method invocation). Support for method invocations as part of super_name will be removed from the ACPI specification, since no AML interpreter supports it. Fixes: ae90fbf (ACPICA: Parser: Fix for SuperName method invocation) Link: acpica/acpica@eade8f78 Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent f6cede5 commit 0dda885

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

drivers/acpi/acpica/psargs.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,7 @@ acpi_ps_get_next_namepath(struct acpi_walk_state *walk_state,
269269
*/
270270
if (ACPI_SUCCESS(status) &&
271271
possible_method_call && (node->type == ACPI_TYPE_METHOD)) {
272-
if (GET_CURRENT_ARG_TYPE(walk_state->arg_types) ==
273-
ARGP_SUPERNAME) {
272+
if (walk_state->opcode == AML_UNLOAD_OP) {
274273
/*
275274
* acpi_ps_get_next_namestring has increased the AML pointer,
276275
* so we need to restore the saved AML pointer for method call.
@@ -697,7 +696,7 @@ static union acpi_parse_object *acpi_ps_get_next_field(struct acpi_parse_state
697696
*
698697
* PARAMETERS: walk_state - Current state
699698
* parser_state - Current parser state object
700-
* arg_type - The parser argument type (ARGP_*)
699+
* arg_type - The argument type (AML_*_ARG)
701700
* return_arg - Where the next arg is returned
702701
*
703702
* RETURN: Status, and an op object containing the next argument.
@@ -817,9 +816,9 @@ acpi_ps_get_next_arg(struct acpi_walk_state *walk_state,
817816
return_ACPI_STATUS(AE_NO_MEMORY);
818817
}
819818

820-
/* super_name allows argument to be a method call */
819+
/* To support super_name arg of Unload */
821820

822-
if (arg_type == ARGP_SUPERNAME) {
821+
if (walk_state->opcode == AML_UNLOAD_OP) {
823822
status =
824823
acpi_ps_get_next_namepath(walk_state,
825824
parser_state, arg,

0 commit comments

Comments
 (0)