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>
This commit is contained in:
Alexey Starikovskiy 2006-12-07 18:42:16 +03:00 committed by Len Brown
parent d91df1aaa9
commit 5d57a6a55e
1 changed files with 3 additions and 0 deletions

View 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");