ACPI: ec: Enable EC GPE at beginning of transaction
Temporary measure until resume sequence is right.
Signed-off-by: Len Brown <len.brown@intel.com>
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index 348a19e..3ffe172 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -290,6 +290,9 @@
}
down(&ec->sem);
+ /* Make sure GPE is enabled before doing transaction */
+ acpi_enable_gpe(NULL, ec->gpe_bit, ACPI_NOT_ISR);
+
status = acpi_ec_wait(ec, ACPI_EC_EVENT_IBF_0);
if (status) {
printk(KERN_DEBUG PREFIX "read EC, IB not empty\n");