From: Alexey Starikovskiy Date: Thu, 7 Dec 2006 15:42:16 +0000 (+0300) Subject: ACPI: ec: Enable EC GPE at beginning of transaction X-Git-Tag: v2.6.20-rc2~6^2~14^2~12 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d57a6a55ec0bdcb952dbcd3f8ffcde8a3ee9413;p=linux-2.6 ACPI: ec: Enable EC GPE at beginning of transaction Temporary measure until resume sequence is right. Signed-off-by: Len Brown --- diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 348a19e19b..3ffe172d1a 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -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");