ACPI: ec: Enable EC GPE at beginning of transaction
authorAlexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Thu, 7 Dec 2006 15:42:16 +0000 (18:42 +0300)
committerLen Brown <len.brown@intel.com>
Fri, 8 Dec 2006 07:56:05 +0000 (02:56 -0500)
Temporary measure until resume sequence is right.

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/ec.c

index 348a19e..3ffe172 100644 (file)
@@ -290,6 +290,9 @@ static int acpi_ec_transaction(struct acpi_ec *ec, u8 command,
        }
        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");