]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPI: EC: Don't do transaction from GPE handler in poll mode.
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Tue, 11 Nov 2008 09:54:11 +0000 (12:54 +0300)
committerLen Brown <len.brown@intel.com>
Tue, 11 Nov 2008 23:35:58 +0000 (18:35 -0500)
Referencies: http://bugzilla.kernel.org/show_bug.cgi?id=12004

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

index ab84f99f136917f8d87153dc56356b2f40337cab..bd1af3e9e4ce2e2a8890934ef349c8ef18be8353 100644 (file)
@@ -581,9 +581,12 @@ static u32 acpi_ec_gpe_handler(void *data)
        pr_debug(PREFIX "~~~> interrupt\n");
        status = acpi_ec_read_status(ec);
 
-       gpe_transaction(ec, status);
-       if (ec_transaction_done(ec) && (status & ACPI_EC_FLAG_IBF) == 0)
-               wake_up(&ec->wait);
+       if (test_bit(EC_FLAGS_GPE_MODE, &ec->flags)) {
+               gpe_transaction(ec, status);
+               if (ec_transaction_done(ec) &&
+                   (status & ACPI_EC_FLAG_IBF) == 0)
+                       wake_up(&ec->wait);
+       }
 
        ec_check_sci(ec, status);
        if (!test_bit(EC_FLAGS_GPE_MODE, &ec->flags) &&