diff options
author | Alexey Starikovskiy <alexey.y.starikovskiy@intel.com> | 2006-12-07 18:42:16 +0300 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-12-08 02:56:05 -0500 |
commit | 5d57a6a55ec0bdcb952dbcd3f8ffcde8a3ee9413 (patch) | |
tree | fcbb94a24bb39679cd2aa21e3a1d01dbd538df0c /drivers/acpi/ec.c | |
parent | d91df1aaa9e4c06f8ea10d4935888c4f1976ef56 (diff) | |
download | kernel_samsung_crespo-5d57a6a55ec0bdcb952dbcd3f8ffcde8a3ee9413.zip kernel_samsung_crespo-5d57a6a55ec0bdcb952dbcd3f8ffcde8a3ee9413.tar.gz kernel_samsung_crespo-5d57a6a55ec0bdcb952dbcd3f8ffcde8a3ee9413.tar.bz2 |
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>
Diffstat (limited to 'drivers/acpi/ec.c')
-rw-r--r-- | drivers/acpi/ec.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ 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"); |