Skip to content
Snippets Groups Projects
Commit 8517934e authored by Alexey Starikovskiy's avatar Alexey Starikovskiy Committed by Len Brown
Browse files

ACPI: EC: Don't do transaction from GPE handler in poll mode.

parent 06cf7d3c
No related branches found
No related tags found
No related merge requests found
...@@ -581,9 +581,12 @@ static u32 acpi_ec_gpe_handler(void *data) ...@@ -581,9 +581,12 @@ static u32 acpi_ec_gpe_handler(void *data)
pr_debug(PREFIX "~~~> interrupt\n"); pr_debug(PREFIX "~~~> interrupt\n");
status = acpi_ec_read_status(ec); status = acpi_ec_read_status(ec);
gpe_transaction(ec, status); if (test_bit(EC_FLAGS_GPE_MODE, &ec->flags)) {
if (ec_transaction_done(ec) && (status & ACPI_EC_FLAG_IBF) == 0) gpe_transaction(ec, status);
wake_up(&ec->wait); if (ec_transaction_done(ec) &&
(status & ACPI_EC_FLAG_IBF) == 0)
wake_up(&ec->wait);
}
ec_check_sci(ec, status); ec_check_sci(ec, status);
if (!test_bit(EC_FLAGS_GPE_MODE, &ec->flags) && if (!test_bit(EC_FLAGS_GPE_MODE, &ec->flags) &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment