ACPI 2.0 / ECDT: Split EC_FLAGS_HANDLERS_INSTALLED
authorLv Zheng <lv.zheng@intel.com>
Thu, 24 Mar 2016 02:42:47 +0000 (10:42 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 9 Apr 2016 01:06:43 +0000 (03:06 +0200)
commit0e1affe41bdd7b1bef64c007d260e142bcaef220
tree5ba7a34f72803543ddd36996f256ff79dd544a44
parent9735a22799b9214d17d3c231fe377fc852f042e9
ACPI 2.0 / ECDT: Split EC_FLAGS_HANDLERS_INSTALLED

This patch splits EC_FLAGS_HANDLERS_INSTALLED so that address space handler
can be installed when it is not possible to install GPE handler during
early stage.
This patch also tunes address space handler installation, making it
happening earlier than GPE handler installation for the same purpose.

Since acpi_ec_start()/acpi_ec_stop() will be entered multiple times after
applying this change, it is also required to protect acpi_enable_gpe()/
acpi_disable_gpe() invocations.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=112911
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Tested-by: Chris Bainbridge <chris.bainbridge@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c