提交 eb7f43c4 编写于 作者: R Rafael J. Wysocki

ACPI / scan: Enable GPEs before scanning the namespace

On some systems the platform firmware expects GPEs to be enabled
before the enumeration of devices and if that expectation is not
met, the systems in question may not boot in some situations.

For this reason, change the initialization ordering of the ACPI
subsystem to make it enable GPEs before scanning the namespace
for the first time in order to enumerate devices.
Reported-by: NMika Westerberg <mika.westerberg@linux.intel.com>
Suggested-by: NMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: NLv Zheng <lv.zheng@intel.com>
Tested-by: NMika Westerberg <mika.westerberg@linux.intel.com>
上级 1312b7e0
...@@ -2058,6 +2058,9 @@ int __init acpi_scan_init(void) ...@@ -2058,6 +2058,9 @@ int __init acpi_scan_init(void)
acpi_get_spcr_uart_addr(); acpi_get_spcr_uart_addr();
} }
acpi_gpe_apply_masked_gpes();
acpi_update_all_gpes();
mutex_lock(&acpi_scan_lock); mutex_lock(&acpi_scan_lock);
/* /*
* Enumerate devices in the ACPI namespace. * Enumerate devices in the ACPI namespace.
...@@ -2082,9 +2085,6 @@ int __init acpi_scan_init(void) ...@@ -2082,9 +2085,6 @@ int __init acpi_scan_init(void)
} }
} }
acpi_gpe_apply_masked_gpes();
acpi_update_all_gpes();
acpi_scan_initialized = true; acpi_scan_initialized = true;
out: out:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册