ACPI / scan: Enable GPEs before scanning the namespace
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Aug 2017 22:34:23 +0000 (00:34 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Aug 2017 18:55:17 +0000 (20:55 +0200)
commiteb7f43c4adb4a789f99f53916182c3401b4e33c7
tree2b25281813ea9fc8139925bda15a2b26a7b8350b
parent1312b7e0caca44e7ff312bc2eaa888943384e3e1
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: Mika Westerberg <mika.westerberg@linux.intel.com>
Suggested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Lv Zheng <lv.zheng@intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/acpi/scan.c