--- zzzz-none-000/linux-5.15.111/drivers/acpi/acpica/evrgnini.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/drivers/acpi/acpica/evrgnini.c 2024-02-07 10:22:36.000000000 +0000 @@ -517,6 +517,26 @@ handler_obj = obj_desc->common_notify.handler; break; +#ifdef CONFIG_ACPI_MXL_LEGACY_BIOS_SUPPORT + case ACPI_TYPE_METHOD: + /* + * If we are executing module level code, the original + * Node's object was replaced by this Method object and we + * saved the handler in the method object. + * + * Note: Only used for the legacy MLC support. Will + * be removed in the future. + * + * See acpi_ns_exec_module_code + */ + if (obj_desc->method. + info_flags & ACPI_METHOD_MODULE_LEVEL) { + handler_obj = + obj_desc->method.dispatch.handler; + } + break; +#endif + default: /* Ignore other objects */