]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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 348a19e19b64920acc0650dd34f0a671e6c659aa..3ffe172d1a88abaddb68275cca07d5e499b48408 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");